Commit d34fd719 by 梁建民

bug

parent 8d7825fb
Showing with 12 additions and 4 deletions
......@@ -62,11 +62,19 @@ Page({
}, (res) => {
if (res.errcode === 0) {
// 未企业认证的时候优先读取微信头像
this.setData({
userInfo: res.data,
headPic: res.data.avatar
});
if (res.data.avatar == '') {
this.setData({
headPic: res.data.wechat_oauth.oauth_head
});
} else {
this.setData({
headPic: res.data.avatar
});
}
this.setData({
userInfo: res.data
})
}
}, 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