Commit f79cac42 authored by leiqingsong's avatar leiqingsong

Merge branch 'dev_lqs' into 'master'

修改

See merge request !56
parents 7295a855 68d4bc01
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
// } // }
// localStorage.setItem('user', JSON.stringify(user)); // localStorage.setItem('user', JSON.stringify(user));
console.log("和App开始交互"); console.log("和App开始交互");
// showBottomBar(); showBottomBar(false);
getAuthToken() getAuthToken()
.then(res => { .then(res => {
console.log("获取token成功", res); console.log("获取token成功", res);
......
...@@ -72,9 +72,11 @@ export default { ...@@ -72,9 +72,11 @@ export default {
}; };
getUserInfo2(params).then(res => { getUserInfo2(params).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.inviteeCode = res.data.inviteCode;
this.avatar = "http://8.131.244.76:81" + res.data.headImage;
localStorage.setItem("user", JSON.stringify(res.data)); localStorage.setItem("user", JSON.stringify(res.data));
this.$nextTick(() => {
this.inviteeCode = res.data.inviteCode;
this.avatar = "http://8.131.244.76:81" + res.data.headImage;
})
} }
}); });
}, },
......
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 to comment