This commit is contained in:
liushiwei
2023-10-11 11:29:40 +08:00
parent 3fa8425d18
commit 64edc19257
4 changed files with 105 additions and 3 deletions

View File

@@ -6,6 +6,12 @@
<span>v{{ version }}</span>
</div>
<div class="admin-right">
<el-tooltip class="item" effect="dark" content="金币信息" placement="top">
<div class="left" @click="toActive">
<div :style="{marginLeft: '0px'}">{{ $store.state.userInfo.coin }}</div>
<span style="margin-right: 10px;"><img src="../assets/coin.png" width="30"/></span>
</div>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="用户激活" placement="top">
<div class="left" @click="toActive">
<span>会员信息:</span>
@@ -21,6 +27,7 @@
<!-- <el-dropdown-item command="phone">修改手机</el-dropdown-item> -->
<el-dropdown-item command="pwd">修改密码</el-dropdown-item>
<el-dropdown-item command="message">消息推送</el-dropdown-item>
<el-dropdown-item command="coin">金币流水</el-dropdown-item>
<el-dropdown-item command="logout">退出登录</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
@@ -116,7 +123,7 @@ import AiPayment from "@/components/AiPayment.vue";
code: ''
},
version: '',
vipType: ["体验会员","月会员","半年会员","年会员","年会员多店通用"]
vipType: ["体验会员","月会员","半年会员","年会员","多店通用年会员"]
}
},
computed: {
@@ -125,9 +132,9 @@ import AiPayment from "@/components/AiPayment.vue";
return '未激活';
} else if (this.$store.state.userInfo.flag == 1) {
if (this.$store.state.userInfo.type != 4) {
return `(${this.$store.state.userInfo.mallName})` + this.vipType[this.$store.state.userInfo.type] + '/有效期至' + this.$store.state.userInfo.expireTime;
return `(${this.$store.state.userInfo.mallName})` + this.vipType[this.$store.state.userInfo.type];
} else {
return this.vipType[this.$store.state.userInfo.type] + '/有效期至' + this.$store.state.userInfo.expireTime
return this.vipType[this.$store.state.userInfo.type]
}
} else {
@@ -160,6 +167,8 @@ import AiPayment from "@/components/AiPayment.vue";
this.$router.push('changePwd')
} else if (e === 'message') {
this.$router.push('message')
} else if (e === 'coin') {
this.$router.push('coinFlow')
}
},
handleClose() {