From d2d931ed676406dbd9f6d4714591db586fe88d8d Mon Sep 17 00:00:00 2001 From: hu-qi Date: Sat, 22 Jun 2024 07:08:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E6=9C=AA=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=97=B6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 884 +++++------ pages/product/product.vue | 3138 +++++++++++++++++++------------------ pages/public/login.vue | 2 +- utils/requestUtil.js | 5 +- 4 files changed, 2026 insertions(+), 2003 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 4e7a33a..0428bb2 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,442 +1,444 @@ - - - - - \ No newline at end of file diff --git a/pages/product/product.vue b/pages/product/product.vue index 272abb3..9201975 100644 --- a/pages/product/product.vue +++ b/pages/product/product.vue @@ -1,1560 +1,1580 @@ - - - - - \ No newline at end of file diff --git a/pages/public/login.vue b/pages/public/login.vue index cf2050c..1526fbc 100644 --- a/pages/public/login.vue +++ b/pages/public/login.vue @@ -72,7 +72,7 @@ // 是否同意隐私策略 isRead: false, // 是否显示验证码输入 - isShowCode: true, + isShowCode: false, // 登录中禁用按钮 isLogining: false, // 传给验证码输入组件 diff --git a/utils/requestUtil.js b/utils/requestUtil.js index 5b60bfd..9b1ae31 100644 --- a/utils/requestUtil.js +++ b/utils/requestUtil.js @@ -3,6 +3,7 @@ import { API_BASE_URL, API_USER_URL, } from '@/utils/appConfig.js'; +import store from '@/store/index.js'; const http = new Request() @@ -58,7 +59,7 @@ http.interceptor.response((response) => { uni.showToast({ title: res.message, duration: 1500, - icon: 'error' + icon: 'none' }) //401未登录处理 if (res.code === 401) { @@ -77,7 +78,7 @@ http.interceptor.response((response) => { } } }); - uni.setStorageSync('token', '') + store.commit('logout') } return Promise.reject(response); } else {