phoneCall: function (e) {
wx.makePhoneCall({
phoneNumber: e.currentTarget.dataset.replyPhone,
success: function () {
console.log("成功拨打电话")
},
})
}
拨号方法
页面
data-reply-phone="4008738699" bindtap="phoneCall"
需要加上这两个属性
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
网友评论