From e8bc813d11c25bb2ff32fc70e7247821122b7176 Mon Sep 17 00:00:00 2001 From: xuan Date: Tue, 27 Sep 2022 16:51:42 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E7=99=BB=E5=BD=95=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2):=20=E5=BF=98=E8=AE=B0=E5=AF=86=E7=A0=81=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=8F=90=E7=A4=BA=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.tsx | 4 ++-- src/pages/login/index.tsx | 7 +++++-- src/pages/user/index.tsx | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index f32362a..8c2e0cf 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -75,8 +75,8 @@ export default () => { setHasMore(true) setRefresherTriggeredStatus(true) } - - const onj = JSON.parse(Taro.getStorageSync('userInfo')) + + const onj = JSON.parse(Taro.getStorageSync('userInfo') || '{}') const [search, setSearchObj] = useState({ modeId: 0, goodsId: null, diff --git a/src/pages/login/index.tsx b/src/pages/login/index.tsx index 3f938aa..a52e195 100644 --- a/src/pages/login/index.tsx +++ b/src/pages/login/index.tsx @@ -75,7 +75,10 @@ const Login: FC = () => { alert.error('登陆失败') } } - + // 处理忘记密码的逻辑 + const handleForgetPwd = () => { + Taro.showToast({ title: '联系客服:0757-86834274', icon: 'none' }) + } return ( @@ -108,7 +111,7 @@ const Login: FC = () => { 记住密码 - + 忘记密码? diff --git a/src/pages/user/index.tsx b/src/pages/user/index.tsx index eafcd8a..8b8e229 100644 --- a/src/pages/user/index.tsx +++ b/src/pages/user/index.tsx @@ -128,10 +128,10 @@ const UserInfo: FC = () => { - + - {userInfo.userInfo.user_name} + {userInfo.userInfo?.user_name} {userInfo.userInfo.user_code}