wx.makePhoneCall({
phoneNumber: e.target.dataset.tel,
fail: ()=> {
console.log(“调用失败”)
wx.showModal({
title: ‘调用电话失败’,
content: ‘小程序官方正在解决这个问题,请手动拨打电话:’+e.target.dataset.tel+",已将号码复制到粘贴板",
success: function(res) {
wx.setClipboardData({
data: e.target.dataset.tel
})
}
})
}
})