微信小程序拨打电话
先看官方文档
给需要的view加上事件 bindtap="callPhone"
加上:
callPhone: function () { let that = this wx.makePhoneCall({ phoneNumber: that.data.wxcode.user.phone //需要拨打的电话号码 }) }
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
先看官方文档
给需要的view加上事件 bindtap="callPhone"
加上:
callPhone: function () { let that = this wx.makePhoneCall({ phoneNumber: that.data.wxcode.user.phone //需要拨打的电话号码 }) }
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。