html
<button class="tel" style="width:300px;background-color: white;font-weight:normal" hover-class="none" bindtap="onL"></button>
css
freeTell:function(){
wx.makePhoneCall({
phoneNumber: '100086',
})
},
onL:function(){
var that=this
wx.showModal({
title: '提示',
content: '请致电10086',
success: function (res) {
if (res.confirm) {//这里是点击了确定以后
console.log('用户点击确定')
that.freeTell();
} else {//这里是点击了取消以后
console.log('用户点击取消')
}
}
})
},