浏览代码

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

guessPrice
=chenming 5 年前
父节点
当前提交
8608270237
共有 2 个文件被更改,包括 10 次插入8 次删除
  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 查看文件

// } // }
console.log(app.globalData.userInfoData); console.log(app.globalData.userInfoData);
if (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 查看文件

"ignore": [] "ignore": []
}, },
"setting": { "setting": {
"urlCheck": true,
"urlCheck": false,
"es6": true, "es6": true,
"postcss": true, "postcss": true,
"minified": true, "minified": true,

正在加载...
取消
保存