Commit 07f3149e authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 9ebd2a08
...@@ -173,53 +173,53 @@ ...@@ -173,53 +173,53 @@
navigateTo(`/pagesA/vipPay/vipPay`) navigateTo(`/pagesA/vipPay/vipPay`)
}, },
handlePhone() { handlePhone() {
if (this.corpid != '' && this.curl != '') { // if (this.corpid != '' && this.curl != '') {
wx.openCustomerServiceChat({ // wx.openCustomerServiceChat({
extInfo: { // extInfo: {
url: this.curl // url: this.curl
}, // },
corpId: this.corpid, // corpId: this.corpid,
success(res) {}, // success(res) {},
fail(e) { // fail(e) {
console.log(e) // console.log(e)
} // }
}) // })
} else { // } else {
let that = this // let that = this
// 联系我们 // // 联系我们
this.post({ // this.post({
url: '/vedio/customerServiceNumbers', // url: '/vedio/customerServiceNumbers',
showLoading: false, // showLoading: false,
success: ({ // success: ({
data // data
}) => { // }) => {
let datas = data.customerServiceNumbers.split(',') // let datas = data.customerServiceNumbers.split(',')
that.corpid = datas[0] // that.corpid = datas[0]
that.curl = datas[1] // that.curl = datas[1]
wx.openCustomerServiceChat({ // wx.openCustomerServiceChat({
extInfo: { // extInfo: {
url: that.curl // url: that.curl
}, // },
corpId: that.corpid, // corpId: that.corpid,
success(res) {}, // success(res) {},
fail(e) { // fail(e) {
console.log(e) // console.log(e)
} // }
}) // })
} // }
}); // });
} // }
// wx.makePhoneCall({ wx.makePhoneCall({
// phoneNumber: '4000969950', phoneNumber: '4000969950',
// success: function(res) { success: function(res) {
// console.log('拨打电话成功!'); console.log('拨打电话成功!');
// }, },
// fail: function(res) { fail: function(res) {
// console.log('拨打电话失败!'); console.log('拨打电话失败!');
// } }
// }) })
}, },
paySuccess(largeType) { paySuccess(largeType) {
// largeType=vip 开通vip // 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