拨打电话。
OBJECT 参数说明
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
phoneNumber | String | 是 | 需要拨打的电话号码 |
success | Function | 否 | 接口调用成功的回调 |
fail | Function | 否 | 接口调用失败的回调函数 |
complete | Function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
<view class="" @click="handePhone">
联系电话:18329446555(点击拨打)
</view>
methods: {
handePhone() {
uni.makePhoneCall({
phoneNumber: '18329446555',
success: (res) => {
console.log('res: ', res)
},
fail: (err) => {
console.log('err: ', err)
}
})
}
}
原文地址:https://blog.csdn.net/weixin_47075554/article/details/135823713
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_61869.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!