vip显示规则
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user