From 6084cd5a5b9c1edec59fa2957b4b8454903e1075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Sun, 12 Apr 2026 11:44:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(passport):=20=E4=BC=98=E5=8C=96=E5=B7=B2?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=94=A8=E6=88=B7=E5=8A=A0=E5=85=A5=E6=97=B6?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E5=8B=BE=E9=80=89=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 已登录用户点击「确认加入」时不再强制勾选协议 - 移除 handleConfirmJoin 中对协议勾选的检查 - 未注册用户仍需勾选协议后才能授权手机号 - 确保登录状态异常时有提示信息显示 --- .workbuddy/expert-history.json | 2 +- .workbuddy/memory/2026-04-12.md | 11 +++++++++++ src/passport/invite/index.tsx | 5 +---- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.workbuddy/expert-history.json b/.workbuddy/expert-history.json index df259eb..b964434 100644 --- a/.workbuddy/expert-history.json +++ b/.workbuddy/expert-history.json @@ -35,5 +35,5 @@ } ] }, - "lastUpdated": 1775965240928 + "lastUpdated": 1775965435808 } \ No newline at end of file diff --git a/.workbuddy/memory/2026-04-12.md b/.workbuddy/memory/2026-04-12.md index 5bcf90a..04b8e12 100644 --- a/.workbuddy/memory/2026-04-12.md +++ b/.workbuddy/memory/2026-04-12.md @@ -82,3 +82,14 @@ doJoinApp(wxCode: string, accessToken: string) ### 文件修改 - `src/passport/invite/index.tsx` - 按钮区分两种类型,已登录用普通 onClick + +--- + +## 优化:已登录用户不强制勾选协议 + +### 改动 +- 已登录用户点击「确认加入」时,不再检查 `agreementChecked` +- 未注册用户仍需勾选协议后才能授权手机号 + +### 文件修改 +- `src/passport/invite/index.tsx` - `handleConfirmJoin` 移除协议检查 diff --git a/src/passport/invite/index.tsx b/src/passport/invite/index.tsx index cf082c9..4331051 100644 --- a/src/passport/invite/index.tsx +++ b/src/passport/invite/index.tsx @@ -130,12 +130,9 @@ const InvitePage: React.FC = () => { /** * 已登录用户:点击「确认加入」 * 不弹手机号授权,直接用 wx.login() 获取 code 调加入接口 + * 不强制要求勾选协议 */ const handleConfirmJoin = async () => { - if (!agreementChecked) { - Taro.showToast({ title: '请先同意服务协议和隐私政策', icon: 'none' }); - return; - } const accessToken = Taro.getStorageSync('access_token'); if (!accessToken) { Taro.showToast({ title: '登录状态异常,请刷新重试', icon: 'none' });