bug修改,登录等页面重画
This commit is contained in:
@@ -29,11 +29,6 @@ Page({
|
||||
},
|
||||
clearrepeatval(){
|
||||
this.data.valsNew = []
|
||||
wx.showToast({
|
||||
title: '禁止复制粘贴请手动输入',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
this.setData({
|
||||
newPassword: ''
|
||||
})
|
||||
@@ -41,11 +36,6 @@ Page({
|
||||
},
|
||||
clearrepeatvalVerify(){
|
||||
this.data.valsVerify = []
|
||||
wx.showToast({
|
||||
title: '禁止复制粘贴请手动输入',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
this.setData({
|
||||
verifyPassword: ''
|
||||
})
|
||||
@@ -155,13 +145,14 @@ Page({
|
||||
verifyPassword: encrypt(this.data.rsaPublicKey, e.detail.value.verifyPassword), // 确认密码
|
||||
rsaPublicKey: this.data.rsaPublicKey
|
||||
}
|
||||
// 请求短信登录start
|
||||
// 请求登录start
|
||||
UserApi.setPassword(params).then(res => {
|
||||
console.log(res)
|
||||
if (res.success) {
|
||||
// 成功设置密码,跳转首页
|
||||
wx.setStorage({
|
||||
key: 'X-Access-Token',
|
||||
data: that.data.password
|
||||
data: this.data.password
|
||||
})
|
||||
wx.setStorage({
|
||||
key: 'userInfo',
|
||||
@@ -195,7 +186,7 @@ Page({
|
||||
})
|
||||
},
|
||||
onLoad(options){
|
||||
// this.data.userInfo = JSON.parse(options.userInfo)
|
||||
this.data.userInfo = JSON.parse(options.userInfo)
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
|
||||
Reference in New Issue
Block a user