From 6bb8ca73d360734186a63457afc9e2bb5a36ee95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E5=BE=88=E5=B7=AE=E5=95=A6?= <17633066053@163.com> Date: Thu, 25 Aug 2022 12:46:52 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mine/set/editionIntro.vue | 2 +- pages/mine/set/setUp.vue | 10 ++++++++-- pages/order/afterSales/afterSales.vue | 1 + pages/order/afterSales/afterSalesDetail.vue | 6 ------ pages/tabbar/home/template/tpl_banner.vue | 2 +- pages/tabbar/home/template/tpl_promotions_detail.vue | 4 +++- utils/request.js | 1 + 7 files changed, 15 insertions(+), 11 deletions(-) diff --git a/pages/mine/set/editionIntro.vue b/pages/mine/set/editionIntro.vue index 8109206..4e90bdd 100644 --- a/pages/mine/set/editionIntro.vue +++ b/pages/mine/set/editionIntro.vue @@ -29,7 +29,7 @@ 《{{config.name}}用户协议》 - CopyRight @{{config.name}} + CopyRight ©{{config.name}} diff --git a/pages/mine/set/setUp.vue b/pages/mine/set/setUp.vue index 176cd23..df48137 100644 --- a/pages/mine/set/setUp.vue +++ b/pages/mine/set/setUp.vue @@ -65,8 +65,14 @@ export default { * 清除缓存重新登录 */ async confirm() { - await logout(); - this.clear(); + try{ + await logout(); + this.clear(); + }catch(e){ + //TODO handle the exception + this.clear(); + } + }, /** diff --git a/pages/order/afterSales/afterSales.vue b/pages/order/afterSales/afterSales.vue index 15b41c4..9fcdac3 100644 --- a/pages/order/afterSales/afterSales.vue +++ b/pages/order/afterSales/afterSales.vue @@ -125,6 +125,7 @@
- +
diff --git a/pages/tabbar/home/template/tpl_promotions_detail.vue b/pages/tabbar/home/template/tpl_promotions_detail.vue index 0939658..bc146cc 100644 --- a/pages/tabbar/home/template/tpl_promotions_detail.vue +++ b/pages/tabbar/home/template/tpl_promotions_detail.vue @@ -39,8 +39,10 @@ :key="_index" >
- diff --git a/utils/request.js b/utils/request.js index 3cb42cc..e7b0ccc 100644 --- a/utils/request.js +++ b/utils/request.js @@ -121,6 +121,7 @@ http.interceptors.response.use( if (!isRefreshing) { console.log('旧token',token) isRefreshing = true; + storage.setAccessToken('') let oldRefreshToken = storage.getRefreshToken(); //调用刷新token的接口 return refreshTokenFn(oldRefreshToken) From f281011a4770a8b8e3d78f2585bb57739d319404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E5=BE=88=E5=B7=AE=E5=95=A6?= <17633066053@163.com> Date: Thu, 25 Aug 2022 18:25:45 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E5=88=86=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/m-share/index.vue | 22 ++++++++++++++++------ main.js | 3 +++ pages/product/goods.vue | 10 +--------- 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/components/m-share/index.vue b/components/m-share/index.vue index 449ea4b..0f8d394 100644 --- a/components/m-share/index.vue +++ b/components/m-share/index.vue @@ -8,7 +8,7 @@ - +
- +
@@ -125,13 +125,14 @@ export default { getFloorData().then((res) => { if (res.data.success) { this.pageData = JSON.parse(res.data.result.pageData); + console.log(this.pageData); } }); - }, - // 是否有网络链接 - isConnected(val){ - val ? this.init() : '' - }, + }, + // 是否有网络链接 + isConnected(val) { + val ? this.init() : ""; + }, /** * TODO 扫码功能后续还会后续增加