Commit 1f64bf62 authored by leiqingsong's avatar leiqingsong

修改设置页

parent e7e373e7
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
methods: { methods: {
getUser() { getUser() {
const params = { const params = {
userId: this.$userId userId: JSON.parse(localStorage.getItem('user').userId)
}; };
console.log("setting-userId", params); console.log("setting-userId", params);
getUserInfo2(params).then(res => { getUserInfo2(params).then(res => {
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
localStorage.setItem("user", JSON.stringify(res)); localStorage.setItem("user", JSON.stringify(res));
this.$nextTick(() => { this.$nextTick(() => {
this.userName = res.userId; this.userName = res.userId;
this.inviteeCode = res.beInvitedCode; this.inviteeCode = res.beInvitedCode == 1 ? '请填写推荐人邀请码' : res.beInvitedCode;
this.avatar = res.headImage; this.avatar = res.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