内部外部标签
This commit is contained in:
@@ -44,11 +44,15 @@
|
|||||||
</AiTopFixed>
|
</AiTopFixed>
|
||||||
<div class="user-list" v-if="list.length">
|
<div class="user-list" v-if="list.length">
|
||||||
<div class="item" v-for="(item, index) in list" :key="index" @click="toDetail(item)">
|
<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">
|
<img :src="item.toUserAvatar" alt="" v-if="currentTabs == 1">
|
||||||
<p v-if="currentTabs == 1">{{item.toUserName}}</p>
|
<p v-if="currentTabs == 1">{{item.toUserName}}</p>
|
||||||
<img src="./img/group-img.png" alt="" v-if="currentTabs != 1">
|
<img src="./img/group-img.png" alt="" v-if="currentTabs != 1">
|
||||||
<p v-if="currentTabs != 1">{{item.roomName}}</p>
|
<p v-if="currentTabs != 1">{{item.roomName}}</p>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
<AiEmpty v-else/>
|
<AiEmpty v-else/>
|
||||||
</div>
|
</div>
|
||||||
@@ -195,8 +199,30 @@ export default {
|
|||||||
border-top: 1px solid #eee;
|
border-top: 1px solid #eee;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
.item {
|
.item {
|
||||||
padding: 24px 0 0 32px;
|
padding: 24px 32px 0 32px;
|
||||||
display: flex;
|
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 {
|
img {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
@@ -213,6 +239,8 @@ export default {
|
|||||||
color: #333;
|
color: #333;
|
||||||
letter-spacing: 0.3px;
|
letter-spacing: 0.3px;
|
||||||
border-bottom: 1px solid #eee;
|
border-bottom: 1px solid #eee;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.item:nth-last-child(1) {
|
.item:nth-last-child(1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user