|
@@ -3,7 +3,7 @@
|
|
|
* @Author: 欧阳承珺
|
|
|
* @LastEditors: 欧阳承珺
|
|
|
* @Date: 2022-10-17 15:19:11
|
|
|
- * @LastEditTime: 2022-11-16 09:27:17
|
|
|
+ * @LastEditTime: 2022-11-16 11:38:50
|
|
|
-->
|
|
|
<template>
|
|
|
<div class="h-80px flex relative z-3 justify-between px-[10%] border-b-1 border-b-[#f0f0f0] border-b-solid">
|
|
@@ -32,28 +32,28 @@
|
|
|
<div class="px-24px pt-24px min-w-300px">
|
|
|
<div class="flex pb-22px cursor-pointer" style="border-bottom: 1px solid #f0f0f0;">
|
|
|
<a href="/members/me/expenses">
|
|
|
- <img v-if="userInfo?.memberInfo?.subscriberType === 1" class="w-64px rounded-1/2" src="http://user-file.17pdf.com/avatars/2020/11/16/0577b907be980556bdafa23fb0be0732-jpg.jpg" >
|
|
|
+ <img v-if="userInfo?.subscriberType === 1" class="w-64px rounded-1/2" src="http://user-file.17pdf.com/avatars/2020/11/16/0577b907be980556bdafa23fb0be0732-jpg.jpg" >
|
|
|
<img v-else class="w-64px rounded-1/2" src="http://user-file.17pdf.com/avatars/2018/01/02/f183029426a996325853fa244e7df661-jpg.jpg" >
|
|
|
</a>
|
|
|
<div class="pl-20px">
|
|
|
- <p class="mt-15px mb-10px text-[#333]">{{userInfo?.memberInfo?.name}}</p>
|
|
|
- <p class="text-[#999]">{{userInfo?.memberInfo?.email || userInfo?.memberInfo?.phone}}</p>
|
|
|
+ <p class="mt-15px mb-10px text-[#333]">{{userInfo?.name}}</p>
|
|
|
+ <p class="text-[#999]">{{userInfo?.email || userInfo?.phone}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="flex py-14px mt-20px justify-between">
|
|
|
<div>
|
|
|
- <p v-if="userInfo?.memberInfo?.subscriberType === 1" class="text-18px text-[#333] leading-24px">17会员</p>
|
|
|
+ <p v-if="userInfo?.subscriberType === 1" class="text-18px text-[#333] leading-24px">17会员</p>
|
|
|
<p v-else class="text-18px text-[#333] leading-24px">免费用户</p>
|
|
|
- <p v-if="userInfo?.memberInfo?.subscriberType === 1" class="text-12px text-[#999] leading-17px">剩余<span class="text-bg-$btn-color-primary">{{userInfo?.memberInfo?.day}}</span>天到期</p>
|
|
|
+ <p v-if="userInfo?.subscriberType === 1" class="text-12px text-[#999] leading-17px">剩余<span class="text-bg-$btn-color-primary">{{userInfo?.day}}</span>天到期</p>
|
|
|
<p v-else class="text-12px text-[#999] leading-17px">订阅会员免费格式转换</p>
|
|
|
</div>
|
|
|
<button class="btn-renew" @click="$router.push('/pricing')">
|
|
|
- {{userInfo?.memberInfo?.subscriberType === 1 ? '续费' : '订阅会员'}}
|
|
|
+ {{userInfo?.subscriberType === 1 ? '续费' : '订阅会员'}}
|
|
|
</button>
|
|
|
</div>
|
|
|
<div class="flex py-14px my-8px justify-between" style="border-bottom: 1px solid #f0f0f0;">
|
|
|
<div>
|
|
|
- <p class="text-18px text-[#333] leading-24px"><span class="text-500 text-bg-$btn-color-primary text-22px leading-18px tracking-1px">{{userInfo?.memberInfo?.points}}</span><span class="text-14px text-[rgba(0,0,0,0.8)] leading-18px">/{{userInfo?.memberInfo?.totalPoints}}</span></p>
|
|
|
+ <p class="text-18px text-[#333] leading-24px"><span class="text-500 text-bg-$btn-color-primary text-22px leading-18px tracking-1px">{{userInfo?.points}}</span><span class="text-14px text-[rgba(0,0,0,0.8)] leading-18px">/{{userInfo?.totalPoints}}</span></p>
|
|
|
<p class="text-12px text-[#999] leading-17px">转换券</p>
|
|
|
</div>
|
|
|
<button class="btn-recharge" @click="handlerOpenLogin('ticket')">充值</button>
|
|
@@ -66,7 +66,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <img slot="reference" class="w-36px h-36px rounded-full mt-23px mr-0 md-0 ml-90px cursor-pointer" :src="userInfo?.memberInfo?.subscriberType === 1 ? 'https://user-file.17pdf.com/avatars/2020/11/16/0577b907be980556bdafa23fb0be0732-jpg.jpg' : 'http://user-file.17pdf.com/avatars/2018/01/02/f183029426a996325853fa244e7df661-jpg.jpg'" @click="$router.push('/members/me/expenses')" />
|
|
|
+ <img slot="reference" class="w-36px h-36px rounded-full mt-23px mr-0 md-0 ml-90px cursor-pointer" :src="userInfo?.subscriberType === 1 ? 'https://user-file.17pdf.com/avatars/2020/11/16/0577b907be980556bdafa23fb0be0732-jpg.jpg' : 'http://user-file.17pdf.com/avatars/2018/01/02/f183029426a996325853fa244e7df661-jpg.jpg'" @click="$router.push('/members/me/expenses')" />
|
|
|
</el-popover>
|
|
|
</client-only>
|
|
|
</div>
|
|
@@ -166,7 +166,6 @@ export default {
|
|
|
},
|
|
|
handlerLogout() {
|
|
|
localStorage.removeItem('token')
|
|
|
- localStorage.removeItem('userInfo')
|
|
|
this.$store.commit('setUser', {})
|
|
|
removeToken('Token')
|
|
|
this.$store.commit('DEL_TOKEN', '')
|