美文网首页
小程序手机直接拨号api

小程序手机直接拨号api

作者: L_18a7 | 来源:发表于2018-07-16 10:07 被阅读0次

phoneCall: function (e) {
wx.makePhoneCall({
phoneNumber: e.currentTarget.dataset.replyPhone,
success: function () {
console.log("成功拨打电话")
},
})
}
拨号方法

页面
data-reply-phone="4008738699" bindtap="phoneCall"
需要加上这两个属性

相关文章

网友评论

      本文标题:小程序手机直接拨号api

      本文链接:https://www.haomeiwen.com/subject/gapvpftx.html