master
chen 2022-04-29 19:14:21 +08:00
parent 36d85ca05a
commit b5a5f02fde
26 changed files with 63 additions and 22 deletions

View File

@ -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', {

View File

@ -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=>{})

View File

@ -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,6 +61,23 @@ 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;

View File

@ -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)
} }

View File

@ -475,6 +475,7 @@
} }
}) })
} }
uni.hideToast();
},1000) },1000)
setTimeout(()=>{ setTimeout(()=>{
this.dataList = this.zanArr; this.dataList = this.zanArr;

View File

@ -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

View File

@ -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