Commit cd0fc2be authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 8ffc4803
...@@ -171,38 +171,38 @@ ...@@ -171,38 +171,38 @@
}, },
handlePhone() { handlePhone() {
// 联系我们 // 联系我们
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(',')
let corpid = datas[0] // let corpid = datas[0]
let curl = datas[1] // let curl = datas[1]
// wx.openCustomerServiceChat({
// extInfo: {
// url: curl
// },
// corpId: corpid,
// success(res) {},
// fail(e) {
// console.log(e)
// }
// })
// }
// });
wx.openCustomerServiceChat({ wx.makePhoneCall({
extInfo: { phoneNumber: '4000969950',
url: curl success: function(res) {
console.log('拨打电话成功!');
}, },
corpId: corpid, fail: function(res) {
success(res) {}, console.log('拨打电话失败!');
fail(e) {
console.log(e)
} }
}) })
}
});
// wx.makePhoneCall({
// phoneNumber: '4000969950',
// success: function(res) {
// console.log('拨打电话成功!');
// },
// fail: function(res) {
// 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