|
@@ -3,11 +3,11 @@
|
|
|
<view class="vipBox">
|
|
|
<view class="avatar">
|
|
|
<img :src="getUserAvatar(baseInfo?.avatar, baseInfo?.sex)" alt="" class="img-box" :class="{'img-box-atc': userInfo?.vipExpireDate}">
|
|
|
- <image v-if="userInfo?.vipExpireDate" src="/static/svg/vip.svg" class="vipIcon"></image>
|
|
|
+ <image v-if="new Date().getTime() < userInfo?.vipExpireDate" src="/static/svg/vip.svg" class="vipIcon"></image>
|
|
|
</view>
|
|
|
<view class="nameBox">
|
|
|
<view class="name font-weight-bold font-size-16">{{ baseInfo?.name || userInfo?.phone }}</view>
|
|
|
- <view class="vipInfo font-size-14" v-if="remaining">
|
|
|
+ <view class="vipInfo font-size-14" v-if="new Date().getTime() < userInfo?.vipExpireDate">
|
|
|
{{ pName }}
|
|
|
<view>将于{{ remaining }}后过期</view>
|
|
|
</view>
|
|
@@ -390,7 +390,7 @@ const getMemberList = async () => {
|
|
|
// memberList.value = data
|
|
|
let vipFlagIndex = null
|
|
|
const list = data.map((item, index) => {
|
|
|
- if (+item.id === +userInfo.value?.vipFlag) {
|
|
|
+ if (new Date().getTime() < userInfo.value?.vipExpireDate && +item.id === +userInfo.value?.vipFlag) {
|
|
|
vipFlagIndex = index // 低于当前套餐的(套餐)不展示
|
|
|
}
|
|
|
if (item.recommend) {
|