1.页面内容
<view class='list' bindtap='call' data-id="{{phone}}">
<text class='tti'>客服电话</text>
</view>
2.js处理
call:function(e){
var id = e.currentTarget.dataset.id;
wx.makePhoneCall({
phoneNumber: id, //
success: function () {
console.log("拨打电话成功!")
},
fail: function () {
console.log("拨打电话失败!")
}
})
},