有关密码框都加上小眼睛控制密码显隐

This commit is contained in:
姚亚男
2021-10-22 11:09:47 +08:00
parent 8a819d829e
commit dcc0e8b1fa
12 changed files with 181 additions and 88 deletions
+6 -5
View File
@@ -127,10 +127,6 @@ Page({
// 请求短信登录start
UserApi.codeLogin(params).then(res => {
if (res.success) {
wx.setStorage({
key: 'userInfo',
data: res.result.userInfo
})
// 第一次登录系统,需要设置密码
if(res.message === "updatePassword") {
// 存临时token
@@ -138,9 +134,10 @@ Page({
key: 'token-temp',
data: res.result.token
})
let userInfo = JSON.stringify(res.result.userInfo)
// 跳转设置密码页
wx.navigateTo({
url: '../setPassword/setPassword',
url: `../setPassword/setPassword?userInfo=${userInfo}`,
})
}else{
// 存token和userInfo
@@ -148,6 +145,10 @@ Page({
key: 'X-Access-Token',
data: res.result.token
})
wx.setStorage({
key: 'userInfo',
data: res.result.userInfo
})
// 绑定微信
this.wxBindPhone()
// 跳转首页