var res = uni.getSystemInfoSync();
if (res.platform == 'ios') {
uni.makePhoneCall({
phoneNumber: '187****1234',
});
} else {
uni.showActionSheet({
itemList: ['187****1234', '呼叫'],
success: function(res) {
console.log(res);
if (res.tapIndex == 1) {
uni.makePhoneCall({
phoneNumber: '187****1234',
})
}
}
})
}
uniapp app端拨打电话
于 2022-01-17 15:44:39 首次发布
