Commit 4423737a authored by leiqingsong's avatar leiqingsong

修改设置

parent 1f64bf62
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
{{ RankIndex > 9 ? RankIndex : "0" + RankIndex }} {{ RankIndex > 9 ? RankIndex : "0" + RankIndex }}
</span> </span>
<div style="flex:1"> <div style="flex:1">
<img class="avatar" src="@/assets/images/avatar.png" alt="用户头像" /> <img class="avatar" :src="imgBaseUrl + prizeVos.headImage" alt="用户头像" />
</div> </div>
<span class="userName" style="flex:2;text-align:center">{{ <span class="userName" style="flex:2;text-align:center">{{
prizeVos.userId prizeVos.userId
...@@ -26,6 +26,14 @@ export default { ...@@ -26,6 +26,14 @@ export default {
prizeVos: { prizeVos: {
type: Object type: Object
} }
},
data() {
return {
imgBaseUrl: ""
}
},
created() {
this.imgBaseUrl = process.env.VUE_APP_BASE_URL
} }
}; };
</script> </script>
......
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
methods: { methods: {
getUser() { getUser() {
const params = { const params = {
userId: JSON.parse(localStorage.getItem('user').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 => {
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
fillInviteCode(params).then(); fillInviteCode(params).then();
}, },
fillInviterCode() { fillInviterCode() {
if (this.inviteeCode === "未填写" || this.inviteeCode == "1") { if (this.inviteeCode === "请填写推荐人邀请码" || this.inviteeCode == "1") {
this.inviteeCodeDialog = true; this.inviteeCodeDialog = true;
this.fillCode = ""; this.fillCode = "";
} }
......
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