|
@@ -25,6 +25,16 @@ Page({
|
|
|
this.setData({
|
|
|
...wx.getStorageSync('loginMsg')
|
|
|
})
|
|
|
+ wx.getUserProfile({
|
|
|
+ desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
|
|
|
+ success: (res) => {
|
|
|
+ console.log("用户信息",res)
|
|
|
+ /* this.setData({
|
|
|
+ userInfo: res.userInfo,
|
|
|
+ hasUserInfo: true
|
|
|
+ }) */
|
|
|
+ }
|
|
|
+ })
|
|
|
this.allowOrNot()
|
|
|
},
|
|
|
/* 微信登录 */
|
|
@@ -86,8 +96,7 @@ Page({
|
|
|
/* 改变密码输入框类型 */
|
|
|
changePasswordType() {
|
|
|
this.setData({
|
|
|
- inputType: this.data.inputType == "text" ? 'password' : 'text',
|
|
|
- focus: true
|
|
|
+ inputType: this.data.inputType == "text" ? 'password' : 'text'
|
|
|
})
|
|
|
},
|
|
|
/* 授权 */
|