官网地址:
https://uniapp.dcloud.io/api/system/phone?id=makephonecall
注:手机号格式必须是string类型,不能为number类型,否则小程序上会调用失败,h5上不会报错
uni.makePhoneCall({
phoneNumber:‘40088888888’,//手机号
// 成功回调
success: (res) => {
console.log('调用成功!')
},
// 失败回调
fail: (res) => {
console.log(res);
}
});