mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 21:19:37 +08:00
加入帐号密码缓存
This commit is contained in:
parent
03dceb3292
commit
94a010f938
@ -92,12 +92,30 @@ Page({
|
|||||||
} else {
|
} else {
|
||||||
newDate.setDate(newDate.getDate() + 14)
|
newDate.setDate(newDate.getDate() + 14)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wx.getStorage({
|
||||||
|
key: 'DEP_USERNAME',
|
||||||
|
success(res) {
|
||||||
|
_this.setData({
|
||||||
|
username: res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
})
|
||||||
|
wx.getStorage({
|
||||||
|
key: 'DEP_PWD',
|
||||||
|
success(res) {
|
||||||
|
_this.setData({
|
||||||
|
pwd: res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
})
|
||||||
_this.setData({
|
_this.setData({
|
||||||
userDetail,
|
userDetail,
|
||||||
maxDate: newDate.getTime()
|
maxDate: newDate.getTime(),
|
||||||
})
|
})
|
||||||
// 展示模块
|
// 展示模块
|
||||||
_this.visibleBlock()
|
_this.visibleBlock()
|
||||||
|
|
||||||
},
|
},
|
||||||
// 跳转会议预约页面
|
// 跳转会议预约页面
|
||||||
goRes(e) {
|
goRes(e) {
|
||||||
@ -225,6 +243,12 @@ Page({
|
|||||||
message: '认证失败!',
|
message: '认证失败!',
|
||||||
top: 50
|
top: 50
|
||||||
})
|
})
|
||||||
|
wx.removeStorage({
|
||||||
|
key: 'DEP_USERNAME',
|
||||||
|
})
|
||||||
|
wx.removeStorage({
|
||||||
|
key: 'DEP_PWD',
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
// 认证通过
|
// 认证通过
|
||||||
Notify({
|
Notify({
|
||||||
@ -232,10 +256,18 @@ Page({
|
|||||||
message: '认证通过!',
|
message: '认证通过!',
|
||||||
top: 50
|
top: 50
|
||||||
})
|
})
|
||||||
|
wx.setStorage({
|
||||||
|
key: "DEP_USERNAME",
|
||||||
|
data: uName
|
||||||
|
})
|
||||||
|
wx.setStorage({
|
||||||
|
key: "DEP_PWD",
|
||||||
|
data: pwd
|
||||||
|
})
|
||||||
_this.setData({
|
_this.setData({
|
||||||
['menuList[0].visible']: true,
|
['menuList[0].visible']: true,
|
||||||
username: '',
|
username: uName,
|
||||||
pwd: '',
|
pwd: pwd,
|
||||||
showLogin: false,
|
showLogin: false,
|
||||||
depName: res.data.orgName,
|
depName: res.data.orgName,
|
||||||
depId: res.data.orgId,
|
depId: res.data.orgId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user