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