Pārlūkot izejas kodu

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

guessPrice
=chenming pirms 5 gadiem
vecāks
revīzija
8608270237
2 mainītis faili ar 10 papildinājumiem un 8 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt