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">
<view class="per_mes_user" :style="hasVipType2?'width: 170rpx;':''"> <view class="per_mes_user" :style="hasVipType2?'width: 170rpx;':''">
<view style="display: flex; align-items: center; flex-direction: column"> <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> 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> class="per_mes_img color_shandow"></image>
</view> </view>
<view class="user_vip_box" v-if="hasVipType1 || hasVipType2"> <view class="user_vip_box" v-if="hasVipType1 || hasVipType2">
@@ -273,7 +273,9 @@ export default {
}) })
.then((res) => { .then((res) => {
if (res.code == 0) { 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.hasVipType1 = this.vipList.some(item => item.type === 1);
this.hasVipType2 = this.vipList.some(item => item.type === 2); this.hasVipType2 = this.vipList.some(item => item.type === 2);

View File

@@ -34,13 +34,16 @@
> >
<template slot="labelSlot" slot-scope="slotProps"> <template slot="labelSlot" slot-scope="slotProps">
<view class="label_content AC_List"> <view class="label_content AC_List">
<view style=" display: flex; align-items: center; justify-content: space-between;">
<view class="left"> <view class="left">
<view class="title">{{ slotProps.row.orderType }}</view> <view class="title" v-if="slotProps.row.orderType=='购买商品'&&slotProps.row.productName">{{ slotProps.row.orderType }} <br/> {{ slotProps.row.productName }}</view>
<view class="title" v-else>{{ slotProps.row.orderType }}</view>
</view> </view>
<view class="right Hot"> <view class="right Hot">
<text v-if="slotProps.row.changeAmount > 0">+</text> <text v-if="slotProps.row.changeAmount > 0">+</text>
<text>{{ slotProps.row.changeAmount }}</text> <text>{{ slotProps.row.changeAmount }}</text>
</view> </view>
</view>
<view class="AC_mark" v-if="slotProps.row.remark">{{slotProps.row.remark}}</view> <view class="AC_mark" v-if="slotProps.row.remark">{{slotProps.row.remark}}</view>
<view class="AC_time">{{ slotProps.row.createTime }}</view> <view class="AC_time">{{ slotProps.row.createTime }}</view>
</view> </view>
@@ -195,16 +198,18 @@ export default {
.AC_List { .AC_List {
overflow: hidden; overflow: hidden;
.left { .left {
width: calc(100% - 220rpx) !important; width: calc(100% - 140rpx) !important;
font-weight: 700; font-weight: 700;
float: left; float: left;
color: #333; color: #333;
font-size: 32rpx; font-size: 32rpx;
line-height: 60rpx; line-height: 60rpx;
.title{
line-height: 48rpx;
}
} }
.right { .right {
display: block; display: block;
width: 200rpx !important;
float: right; float: right;
text-align: right; text-align: right;
font-size: 32rpx; font-size: 32rpx;
@@ -212,9 +217,6 @@ export default {
color: #333; color: #333;
} }
// border-bottom: 1px solid #eee;
// padding: 40rpx 10rpx;
.AC_title { .AC_title {
font-size: 32rpx; font-size: 32rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
@@ -230,10 +232,7 @@ export default {
width: 100%; width: 100%;
font-size: 28rpx; font-size: 28rpx;
margin-top: 20rpx; margin-top: 20rpx;
margin-bottom: 15rpx;
// white-space: nowrap;
color: #888; color: #888;
float: left;
} }
.AC_time { .AC_time {