Browse Source

修复个人中心微信登录问题

guessPrice
=chenming 5 years ago
parent
commit
8608270237
2 changed files with 10 additions and 8 deletions
  1. +9
    -7
      496_dongfengqichen/pages/myCenter/myCenter.js
  2. +1
    -1
      496_dongfengqichen/project.config.json

+ 9
- 7
496_dongfengqichen/pages/myCenter/myCenter.js View File

@@ -283,13 +283,15 @@ Page({
// }
console.log(app.globalData.userInfoData);
if (app.globalData.userInfoData) {
this.data.userData.avatarUrl = app.globalData.userInfoData.avatarUrl;
this.data.userData.nickName = app.globalData.userInfoData.nickName;
this.data.userData.userLevel = app.globalData.userInfoData.userLevel;
this.setData({
isLogin: true,
userData: this.data.userData
})
if (app.globalData.userInfoData.avatarUrl){
this.data.userData.avatarUrl = app.globalData.userInfoData.avatarUrl;
this.data.userData.nickName = app.globalData.userInfoData.nickName;
this.data.userData.userLevel = app.globalData.userInfoData.userLevel;
this.setData({
isLogin: true,
userData: this.data.userData
})
}
}
},
/**

+ 1
- 1
496_dongfengqichen/project.config.json View File

@@ -4,7 +4,7 @@
"ignore": []
},
"setting": {
"urlCheck": true,
"urlCheck": false,
"es6": true,
"postcss": true,
"minified": true,

Loading…
Cancel
Save