bindcall: function (e) {
var that = this;
wx.vibrateShort();
console.info(e);
var tel = e.currentTarget.dataset.tel;
wx.showActionSheet({
itemList: ['拨打电话', '复制电话'],
success(res) {
console.log(res.tapIndex)
if (res.tapIndex == 0) {
wx.makePhoneCall({
phoneNumber: tel
})
} else if (res.tapIndex == 1) {
wx.setClipboardData({
data: tel,
success(res) {
wx.getClipboardData({
success(res) {
wx.showToast({
title: '复制成功',
icon: 'none'
})
}
})
}
})
}
},
fail(res) {
}
})
},


相关推荐