vip显示规则

This commit is contained in:
liuyuan
2025-03-06 11:14:46 +08:00
parent 4566c2e696
commit 7c635e82a5
2 changed files with 21 additions and 20 deletions

View File

@@ -9,9 +9,9 @@
<view class="per_mes">
<view class="per_mes_user" :style="hasVipType2?'width: 170rpx;':''">
<view style="display: flex; align-items: center; flex-direction: column">
<image @click="goUserInfo" :src="userMes.avatar" v-if="userMes.avatar != null"
<image @click="goUserInfo" :src="userMes.avatar" v-if="userMes.avatar&&userMes.avatar!=''"
class="per_mes_img color_shandow"></image>
<image src="../../static/logo.png" v-if="userMes.avatar == null"
<image src="../../static/logo.png" v-if="userMes.avatar == null||userMes.avatar == ''"
class="per_mes_img color_shandow"></image>
</view>
<view class="user_vip_box" v-if="hasVipType1 || hasVipType2">
@@ -273,7 +273,9 @@ export default {
})
.then((res) => {
if (res.code == 0) {
this.vipList = res.list;
//this.vipList = res.list;
this.vipList = res.list.filter(item => ![1, 4, 5, 6].includes(item.type));
//展示svip
this.hasVipType1 = this.vipList.some(item => item.type === 1);
this.hasVipType2 = this.vipList.some(item => item.type === 2);