🐞 fix(登录页面): 忘记密码显示提示框
This commit is contained in:
parent
37d9f85c82
commit
e8bc813d11
@ -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,
|
||||
|
@ -75,7 +75,10 @@ const Login: FC = () => {
|
||||
alert.error('登陆失败')
|
||||
}
|
||||
}
|
||||
|
||||
// 处理忘记密码的逻辑
|
||||
const handleForgetPwd = () => {
|
||||
Taro.showToast({ title: '联系客服:0757-86834274', icon: 'none' })
|
||||
}
|
||||
|
||||
return (
|
||||
<View className={styles.login}>
|
||||
@ -108,7 +111,7 @@ const Login: FC = () => {
|
||||
记住密码
|
||||
</MCheckbox>
|
||||
</View>
|
||||
<View className={styles['login-option']}>
|
||||
<View className={styles['login-option']} onClick={handleForgetPwd}>
|
||||
<Text className={styles.isForgetPwd}>忘记密码?</Text>
|
||||
</View>
|
||||
</View>
|
||||
|
@ -128,10 +128,10 @@ const UserInfo: FC = () => {
|
||||
<LayoutBlock circle>
|
||||
<View className={styles.topBar}>
|
||||
<View className={styles.left}>
|
||||
<UserAvatar src={userInfo.userInfo.avatar_url} />
|
||||
<UserAvatar src={userInfo.userInfo?.avatar_url} />
|
||||
</View>
|
||||
<View className={styles.middle}>
|
||||
<Text className={styles.username}>{userInfo.userInfo.user_name}</Text>
|
||||
<Text className={styles.username}>{userInfo.userInfo?.user_name}</Text>
|
||||
<Text className={styles.userno}>{userInfo.userInfo.user_code}</Text>
|
||||
</View>
|
||||
<View className={styles.right}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user