From ba754bb885e4ed88bd863dbc6234074e42dc2c5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E5=B9=B3=E8=89=BA?= <52643018@qq.com> Date: Wed, 29 Sep 2021 10:28:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=A4=E6=96=AD=E7=BA=BF?= =?UTF-8?q?=E4=B8=8B=E6=89=AB=E7=A0=81=E4=BB=98=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E9=A1=B5=E8=A7=84=E6=A0=BC?= =?UTF-8?q?=EF=BC=8C=E5=95=86=E5=AE=B6=E4=B8=AD=E5=BF=83=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=80=81=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/config.js | 2 +- pages/business/center/center.vue | 8 +++- pages/business/payment/wait.vue | 4 +- pages/shop/goodsdetail.vue | 79 ++++++++++++++++++++++++-------- pages/user/member/code.vue | 2 +- 5 files changed, 70 insertions(+), 25 deletions(-) diff --git a/common/js/config.js b/common/js/config.js index 4279dca..0d601a8 100644 --- a/common/js/config.js +++ b/common/js/config.js @@ -16,7 +16,7 @@ export default { //https://demo-guojiang-ec-api.guojiang.club/ baseUrl: process.env.NODE_ENV === 'development' ? - 'http://192.168.3.81/' : 'https://v3-ec-admin-dev.guojiang.club/', // 运行时自动替换变量 + 'http://192.168.3.165/' : 'https://v3-ec-admin-dev.guojiang.club/', // 运行时自动替换变量 }, PACKAGES: { activity: false, diff --git a/pages/business/center/center.vue b/pages/business/center/center.vue index 4654813..08391fe 100644 --- a/pages/business/center/center.vue +++ b/pages/business/center/center.vue @@ -128,7 +128,13 @@ } }).then(res => { console.log("getStoreCenter", res); - this.detail = res.data.data; + if(res.data.code == 200){ + this.detail = res.data.data; + }else{ + this.$msg('您的状态异常,请重新登录').then(() => { + this.$url('/pages/business/login/login', {type: 'redirect'}); + }) + } }) }, // 扫一扫 diff --git a/pages/business/payment/wait.vue b/pages/business/payment/wait.vue index 2ac300b..2d99e48 100644 --- a/pages/business/payment/wait.vue +++ b/pages/business/payment/wait.vue @@ -63,12 +63,12 @@ token: token } }).then(res => { - if(this.$isRight(res.data.data)){ + if(this.$isRight(res.data.data) && res.data.data.status == 2){ let url = '/pages/business/payment/paystate'; url += '?payState=1'; url += '&amount='+ this.amount; this.$url(url, {type: 'redirect'}); - }else if(this.overtime){ + }else if(this.overtime || (res.data.data && res.data.data.status == 3)){ let url = '/pages/business/payment/paystate'; url += '?payState=0'; this.$url(url, {type: 'redirect'}); diff --git a/pages/shop/goodsdetail.vue b/pages/shop/goodsdetail.vue index 7177f0d..ea357fc 100644 --- a/pages/shop/goodsdetail.vue +++ b/pages/shop/goodsdetail.vue @@ -10,9 +10,11 @@ 距离结束还剩余 - -