master
parent
36d85ca05a
commit
b5a5f02fde
|
@ -34,6 +34,11 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
lianK() { //客服
|
lianK() { //客服
|
||||||
|
// wx.openCustomerServiceChat({
|
||||||
|
// extInfo: {url: `https://work.weixin.qq.com/kfid/kfcb3bba5b57d9a42ba?enc_scene=ENC616HXDjLYNcmsR49PBE75UERg8Ncv3dygpYjfnh3XVvA&scene_param=${uni.getStorageSync('openid')}`},
|
||||||
|
// corpId: 'ww1f86f258d4ff5817',
|
||||||
|
// success(res) {}
|
||||||
|
// })
|
||||||
this.$requst.post('user/rand-bind-service').then(res => {})
|
this.$requst.post('user/rand-bind-service').then(res => {})
|
||||||
this.$toolAll.tools.closeTimer() //清空埋点倒计时
|
this.$toolAll.tools.closeTimer() //清空埋点倒计时
|
||||||
this.$requst.post('user/record', {
|
this.$requst.post('user/record', {
|
||||||
|
|
|
@ -40,6 +40,11 @@
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
lianK(){
|
lianK(){
|
||||||
|
// wx.openCustomerServiceChat({
|
||||||
|
// extInfo: {url: `https://work.weixin.qq.com/kfid/kfcb3bba5b57d9a42ba?enc_scene=ENC616HXDjLYNcmsR49PBE75UERg8Ncv3dygpYjfnh3XVvA&scene_param=${uni.getStorageSync('openid')}`},
|
||||||
|
// corpId: 'ww1f86f258d4ff5817',
|
||||||
|
// success(res) {}
|
||||||
|
// })
|
||||||
this.$requst.post('user/rand-bind-service').then(res=>{})
|
this.$requst.post('user/rand-bind-service').then(res=>{})
|
||||||
this.$toolAll.tools.closeTimer()//清空埋点倒计时
|
this.$toolAll.tools.closeTimer()//清空埋点倒计时
|
||||||
this.$requst.post('user/record',{type:'other',action:'ask',id:this.nid}).then(res=>{},error=>{})
|
this.$requst.post('user/record',{type:'other',action:'ask',id:this.nid}).then(res=>{},error=>{})
|
||||||
|
|
|
@ -28,8 +28,9 @@ const goLogin = () => {
|
||||||
// },1000)
|
// },1000)
|
||||||
}
|
}
|
||||||
// 请求错误处理
|
// 请求错误处理
|
||||||
|
let errorFlag = true;
|
||||||
const checkError = (e) => {
|
const checkError = (e) => {
|
||||||
// console.error("----接口错误----", e)
|
console.log(e,'接口错误');
|
||||||
if (e.data) {
|
if (e.data) {
|
||||||
if (e.data.code) {
|
if (e.data.code) {
|
||||||
switch (Number(e.data.code)) {
|
switch (Number(e.data.code)) {
|
||||||
|
@ -60,7 +61,24 @@ const checkError = (e) => {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
if(e.errMsg=="request:fail 对应的服务器证书无效。" || e.errno==600001) {
|
||||||
|
if(errorFlag) {
|
||||||
|
errorFlag = false;
|
||||||
|
uni.showModal({
|
||||||
|
title:'服务器证书无效',
|
||||||
|
confirmText:'确定',
|
||||||
|
showCancel:false,
|
||||||
|
success:(e)=> {
|
||||||
|
if(e.confirm) {
|
||||||
|
// 退出小程序
|
||||||
|
wx.exitMiniProgram();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
let flag = true;
|
let flag = true;
|
||||||
// 封装请求
|
// 封装请求
|
||||||
|
|
|
@ -202,7 +202,9 @@
|
||||||
if(this.total!=this.dataList.length){
|
if(this.total!=this.dataList.length){
|
||||||
this.page++
|
this.page++
|
||||||
if(this.ccurrent==0){
|
if(this.ccurrent==0){
|
||||||
this.checkCate(this.category_id)//调用自主预约列表事件
|
if(this.cateListTwo[this.newCurrent].title!='热门商品') {
|
||||||
|
this.checkCate(this.category_id)//调用分类列表事件
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.otherEv(this.cateList[this.ccurrent].children[this.newCurrent].id)
|
this.otherEv(this.cateList[this.ccurrent].children[this.newCurrent].id)
|
||||||
}
|
}
|
||||||
|
|
|
@ -475,6 +475,7 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
uni.hideToast();
|
||||||
},1000)
|
},1000)
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.dataList = this.zanArr;
|
this.dataList = this.zanArr;
|
||||||
|
|
|
@ -188,6 +188,11 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
lianK(){//客服
|
lianK(){//客服
|
||||||
|
// wx.openCustomerServiceChat({
|
||||||
|
// extInfo: {url: `https://work.weixin.qq.com/kfid/kfcb3bba5b57d9a42ba?enc_scene=ENC616HXDjLYNcmsR49PBE75UERg8Ncv3dygpYjfnh3XVvA&scene_param=${uni.getStorageSync('openid')}`},
|
||||||
|
// corpId: 'ww1f86f258d4ff5817',
|
||||||
|
// success(res) {}
|
||||||
|
// })
|
||||||
this.$toolAll.tools.closeTimer()//清空埋点倒计时
|
this.$toolAll.tools.closeTimer()//清空埋点倒计时
|
||||||
this.$requst.post('user/record',{type:'other',action:'ask',id:0}).then(res=>{},error=>{})
|
this.$requst.post('user/record',{type:'other',action:'ask',id:0}).then(res=>{},error=>{})
|
||||||
// 调用tools.js中的种植埋点事件
|
// 调用tools.js中的种植埋点事件
|
||||||
|
|
|
@ -641,6 +641,11 @@
|
||||||
this.skuDetail = this.allRes.sku[index];
|
this.skuDetail = this.allRes.sku[index];
|
||||||
},
|
},
|
||||||
lianK(){//客服
|
lianK(){//客服
|
||||||
|
// wx.openCustomerServiceChat({
|
||||||
|
// extInfo: {url: `https://work.weixin.qq.com/kfid/kfcb3bba5b57d9a42ba?enc_scene=ENC616HXDjLYNcmsR49PBE75UERg8Ncv3dygpYjfnh3XVvA&scene_param=${uni.getStorageSync('openid')}`},
|
||||||
|
// corpId: 'ww1f86f258d4ff5817',
|
||||||
|
// success(res) {}
|
||||||
|
// })
|
||||||
this.$requst.post('user/rand-bind-service').then(res=>{})
|
this.$requst.post('user/rand-bind-service').then(res=>{})
|
||||||
this.$toolAll.tools.closeTimer()//清空埋点倒计时
|
this.$toolAll.tools.closeTimer()//清空埋点倒计时
|
||||||
this.$requst.post('user/record',{type:'other',action:'ask',id:0}).then(res=>{},error=>{})
|
this.$requst.post('user/record',{type:'other',action:'ask',id:0}).then(res=>{},error=>{})
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue