Commit 3fc36797 authored by leiqingsong's avatar leiqingsong

设置添加我的邀请码

parent daaefe4d
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<van-cell center title="头像"> <van-cell center title="头像">
<img class="avatar-img" :src="imageBaseUrl + avatar" alt="头像" /> <img class="avatar-img" :src="imageBaseUrl + avatar" alt="头像" />
</van-cell> </van-cell>
<van-cell title="我的邀请码" :value="myInviteCode" />
</van-cell-group> </van-cell-group>
<van-cell-group> <van-cell-group>
<van-cell <van-cell
...@@ -73,6 +74,7 @@ export default { ...@@ -73,6 +74,7 @@ export default {
name: "Settings", name: "Settings",
data() { data() {
return { return {
myInviteCode: "",
downAppUrl: "", downAppUrl: "",
needUpdate: false, needUpdate: false,
updateBtn: "关闭", updateBtn: "关闭",
...@@ -144,6 +146,7 @@ export default { ...@@ -144,6 +146,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.myInviteCode = res.inviteCode;
this.inviteeCode = this.inviteeCode =
res.beInvitedCode == 1 res.beInvitedCode == 1
? "请填写推荐人邀请码" ? "请填写推荐人邀请码"
......
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