From e99986c52ad555448af1920b8dff694a2e2813b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Sun, 8 Feb 2026 12:29:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=A1=E6=A0=B8=E4=B8=8D?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.config.json | 2 +- src/login_pages/index/index.scss | 17 +++++++++++++++++ src/login_pages/index/index.tsx | 9 +++++++++ src/services/loginService.ts | 2 +- 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/project.config.json b/project.config.json index 839e034..15d90c1 100644 --- a/project.config.json +++ b/project.config.json @@ -2,7 +2,7 @@ "miniprogramRoot": "dist/", "projectname": "playBallTogether", "description": "playBallTogether", - "appid": "wx915ecf6c01bea4ec", + "appid": "wx815b533167eb7b53", "setting": { "urlCheck": true, "es6": true, diff --git a/src/login_pages/index/index.scss b/src/login_pages/index/index.scss index b70f97d..9cc5987 100644 --- a/src/login_pages/index/index.scss +++ b/src/login_pages/index/index.scss @@ -9,6 +9,23 @@ } +.link_button +{ + display: flex; + align-items: center; + justify-content: center; + gap: 12px; + height: 52px; + border-radius: 16px; + border: none; + position: relative; + font-size: 16px; + + .button_text { + color: #fff; + } +} + // 背景图片和渐变覆盖层 .background_image { position: absolute; diff --git a/src/login_pages/index/index.tsx b/src/login_pages/index/index.tsx index ef2eda6..d5c85e3 100644 --- a/src/login_pages/index/index.tsx +++ b/src/login_pages/index/index.tsx @@ -155,6 +155,11 @@ const LoginPage: React.FC = () => { e.stopPropagation(); }; + // 返回首页 + const handle_return_home = () => { + Taro.navigateTo({ url: "/main_pages/index" }); + }; + return ( @@ -211,6 +216,10 @@ const LoginPage: React.FC = () => { 手机号快捷登录 + + 返回首页 + + {/* 用户协议复选框 */} diff --git a/src/services/loginService.ts b/src/services/loginService.ts index cae9d8e..7e91eab 100644 --- a/src/services/loginService.ts +++ b/src/services/loginService.ts @@ -263,7 +263,7 @@ export const save_login_state = (token: string, user_info: WechatUserInfo) => { export const clear_login_state = () => { try { // 使用 tokenManager 清除令牌 - tokenManager.clearTokens(); + // tokenManager.clearTokens(); // 清除其他登录状态 Taro.removeStorageSync("user_info");