소스 검색

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

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 파일 보기

@@ -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 파일 보기

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

Loading…
취소
저장