From f3acd0e41b644a493414d7f1c417ef325898382d Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Wed, 26 Oct 2022 18:42:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- src/common/http.interceptor.js | 12 ++++++------ src/pages/otherPage/jjrent.vue | 23 ++++++++++++++++------- src/pages/otherPage/jjrentVisit.vue | 15 +++++++-------- src/pages/otherPage/rent.vue | 4 ++-- src/pages/tabs/index.vue | 8 +++++--- src/pages/tabs/login.vue | 6 +++--- 7 files changed, 40 insertions(+), 30 deletions(-) diff --git a/.env.production b/.env.production index 6f6e14c..92b14ed 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,3 @@ VUE_APP_MODE=production -VUE_APP_SERVER=https://xingao.quhouse.com +VUE_APP_SERVER=https://erpx.2weisou.com/sjjy url1=https://chh.quhouse.com diff --git a/src/common/http.interceptor.js b/src/common/http.interceptor.js index 8be1547..931767b 100644 --- a/src/common/http.interceptor.js +++ b/src/common/http.interceptor.js @@ -39,12 +39,12 @@ const install = (Vue, vm) => { Vue.prototype.$u.http.interceptor.response = (res) => { if (res.data.ErrNo == '0000') { return res.data; - } else if (res.data.ErrNo == '0005') { - // uni.showToast({ - // title: res.data.ErrMsg || '未登录', - // icon: "none", - // duration: 3000 - // }) + } else if (res.data.ErrNo == '0005'|| res.data.ErrNo == '0002') { + uni.showToast({ + title: res.data.ErrMsg || '未登录', + icon: "none", + duration: 3000 + }) uni.navigateTo({ url: '/pages/tabs/login' }); diff --git a/src/pages/otherPage/jjrent.vue b/src/pages/otherPage/jjrent.vue index 47d34ce..dd6eb7c 100644 --- a/src/pages/otherPage/jjrent.vue +++ b/src/pages/otherPage/jjrent.vue @@ -8,7 +8,7 @@ - + {{item.address}} @@ -24,7 +24,7 @@ - +