chat 页面

This commit is contained in:
2022-02-18 09:58:15 +08:00
parent 1e7e589bab
commit 08971f256d
3 changed files with 21 additions and 12 deletions

View File

@@ -15,7 +15,8 @@
<show-text v-if="item.objectName === 'RC:TxtMsg'" :guest="item.messageDirection == 1"
:msg="item.content" />
<view class="state" v-if="item.messageDirection == 1">
<text :class="item.sentStatus === 50?'state-text':'state-text-active'">{{ item.sentStatus == 50 ? '已读': '未读'}}</text>
<text
:class="item.sentStatus === 50?'state-text':'state-text-active'">{{ item.sentStatus == 50 ? '已读': '未读'}}</text>
</view>
</view>
</view>
@@ -169,8 +170,9 @@
/* 窗口 */
.chat {
background: $window-color;
flex: 1;
height: 100vh;
display: flex;
flex-direction: column;
.body {
flex: 1;
@@ -223,7 +225,7 @@
.state-text-active {
font-size: $title-size-m - 2;
color: #cecece;
color: #cecece;
}
}
}