文字修改

This commit is contained in:
liuye
2023-06-15 14:42:27 +08:00
parent 58fcca64fb
commit 191304fd31
6 changed files with 29 additions and 16 deletions

View File

@@ -44,14 +44,14 @@
</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>
<img :src="item.toUserAvatar" alt="" v-if="currentTabs == 1">
<img src="./img/group-img.png" alt="" v-else>
<div class="item-border">
<div class="flex-left">
<p>{{currentTabs == 1 ? item.toUserName : item.roomName}}</p>
</div>
<div class="flex-right" :class="`type`+item.userType" v-if="item.userType > 0">{{item.userType == 1 ? '内部' : '外部'}}</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>
<AiEmpty v-else/>
@@ -134,6 +134,13 @@ export default {
}
}).then(res=> {
if(res?.data) {
res.data.records.map((item) => {
if(item.type == 1) {
item.userType = item.roomType
}else {
item.userType = item.toUserType
}
})
this.list = this.current > 1 ? [...this.list, ...res.data.records]: res.data.records
this.pages = res.data.pages
}
@@ -199,9 +206,15 @@ export default {
border-top: 1px solid #eee;
background-color: #fff;
.item {
padding: 24px 32px 0 32px;
padding: 24px 0 0 32px;
display: flex;
justify-content: space-between;
.item-border {
width: calc(100% - 112px);
padding-right: 32px;
display: flex;
justify-content: space-between;
border-bottom: 1px solid #eee;
}
.flex-left {
padding-right: 8px;
box-sizing: border-box;
@@ -238,9 +251,9 @@ export default {
font-size: 32px;
color: #333;
letter-spacing: 0.3px;
border-bottom: 1px solid #eee;
display: inline-block;
vertical-align: top;
width: 100%;
}
}
.item:nth-last-child(1) {