Commit 07f3149e authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 9ebd2a08
......@@ -173,53 +173,53 @@
navigateTo(`/pagesA/vipPay/vipPay`)
},
handlePhone() {
if (this.corpid != '' && this.curl != '') {
wx.openCustomerServiceChat({
extInfo: {
url: this.curl
},
corpId: this.corpid,
success(res) {},
fail(e) {
console.log(e)
}
})
} else {
let that = this
// 联系我们
this.post({
url: '/vedio/customerServiceNumbers',
showLoading: false,
success: ({
data
}) => {
let datas = data.customerServiceNumbers.split(',')
that.corpid = datas[0]
that.curl = datas[1]
// if (this.corpid != '' && this.curl != '') {
// wx.openCustomerServiceChat({
// extInfo: {
// url: this.curl
// },
// corpId: this.corpid,
// success(res) {},
// fail(e) {
// console.log(e)
// }
// })
// } else {
// let that = this
// // 联系我们
// this.post({
// url: '/vedio/customerServiceNumbers',
// showLoading: false,
// success: ({
// data
// }) => {
// let datas = data.customerServiceNumbers.split(',')
// that.corpid = datas[0]
// that.curl = datas[1]
wx.openCustomerServiceChat({
extInfo: {
url: that.curl
},
corpId: that.corpid,
success(res) {},
fail(e) {
console.log(e)
}
})
}
});
}
// wx.openCustomerServiceChat({
// extInfo: {
// url: that.curl
// },
// corpId: that.corpid,
// success(res) {},
// fail(e) {
// console.log(e)
// }
// })
// }
// });
// }
// wx.makePhoneCall({
// phoneNumber: '4000969950',
// success: function(res) {
// console.log('拨打电话成功!');
// },
// fail: function(res) {
// console.log('拨打电话失败!');
// }
// })
wx.makePhoneCall({
phoneNumber: '4000969950',
success: function(res) {
console.log('拨打电话成功!');
},
fail: function(res) {
console.log('拨打电话失败!');
}
})
},
paySuccess(largeType) {
// largeType=vip 开通vip
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment