Commit d34fd719 by 梁建民

bug

parent 8d7825fb
Showing with 12 additions and 4 deletions
...@@ -62,11 +62,19 @@ Page({ ...@@ -62,11 +62,19 @@ Page({
}, (res) => { }, (res) => {
if (res.errcode === 0) { if (res.errcode === 0) {
// 未企业认证的时候优先读取微信头像 // 未企业认证的时候优先读取微信头像
this.setData({ if (res.data.avatar == '') {
userInfo: res.data, this.setData({
headPic: res.data.avatar headPic: res.data.wechat_oauth.oauth_head
}); });
} else {
this.setData({
headPic: res.data.avatar
});
}
this.setData({
userInfo: res.data
})
} }
}, true); }, true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment