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 @@ 距离结束还剩余 - -