vip显示规则
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -34,15 +34,18 @@
|
|||||||
>
|
>
|
||||||
<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 class="left">
|
<view style=" display: flex; align-items: center; justify-content: space-between;">
|
||||||
<view class="title">{{ slotProps.row.orderType }}</view>
|
<view class="left">
|
||||||
</view>
|
<view class="title" v-if="slotProps.row.orderType=='购买商品'&&slotProps.row.productName">{{ slotProps.row.orderType }} <br/> {{ slotProps.row.productName }}</view>
|
||||||
<view class="right Hot">
|
<view class="title" v-else>{{ slotProps.row.orderType }}</view>
|
||||||
<text v-if="slotProps.row.changeAmount > 0">+</text>
|
</view>
|
||||||
<text>{{ slotProps.row.changeAmount }}</text>
|
<view class="right Hot">
|
||||||
</view>
|
<text v-if="slotProps.row.changeAmount > 0">+</text>
|
||||||
<view class="AC_mark" v-if="slotProps.row.remark">{{slotProps.row.remark}}</view>
|
<text>{{ slotProps.row.changeAmount }}</text>
|
||||||
<view class="AC_time">{{ slotProps.row.createTime }}</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="AC_mark" v-if="slotProps.row.remark">{{slotProps.row.remark}}</view>
|
||||||
|
<view class="AC_time">{{ slotProps.row.createTime }}</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</common-list>
|
</common-list>
|
||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user