内部外部标签

This commit is contained in:
liuye
2023-06-14 17:47:59 +08:00
parent 002a25d20c
commit b1da8095ac

View File

@@ -44,11 +44,15 @@
</AiTopFixed>
<div class="user-list" v-if="list.length">
<div class="item" v-for="(item, index) in list" :key="index" @click="toDetail(item)">
<div class="flex-left">
<img :src="item.toUserAvatar" alt="" v-if="currentTabs == 1">
<p v-if="currentTabs == 1">{{item.toUserName}}</p>
<img src="./img/group-img.png" alt="" v-if="currentTabs != 1">
<p v-if="currentTabs != 1">{{item.roomName}}</p>
</div>
<div class="flex-right" :class="`type`+item.roomType" v-if="currentTabs == 1 && item.roomType > 0">{{item.roomType == 1 ? '内部' : '外部'}}</div>
<div class="flex-right" :class="`type`+item.toUserType" v-if="currentTabs != 1 && item.toUserType > 0">{{item.toUserType == 1 ? '内部' : '外部'}}</div>
</div>
</div>
<AiEmpty v-else/>
</div>
@@ -195,8 +199,30 @@ export default {
border-top: 1px solid #eee;
background-color: #fff;
.item {
padding: 24px 0 0 32px;
padding: 24px 32px 0 32px;
display: flex;
justify-content: space-between;
.flex-left {
padding-right: 8px;
box-sizing: border-box;
}
.flex-right {
font-size: 12px;
margin-top: 26px;
width: 56px;
height: 28px;
line-height: 28px;
text-align: center;
border-radius: 4px;
}
.type1 {
background-color: #EAF4FF;
color: #267EF0;
}
.type2 {
background-color: #FDEEE1;
color: #FB7D29;
}
img {
width: 80px;
height: 80px;
@@ -213,6 +239,8 @@ export default {
color: #333;
letter-spacing: 0.3px;
border-bottom: 1px solid #eee;
display: inline-block;
vertical-align: top;
}
}
.item:nth-last-child(1) {