This commit is contained in:
唐明明
2022-02-18 17:37:04 +08:00
parent f246ef1ccc
commit d287513604
2 changed files with 7 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
<template>
<view class="group--chat">
<sent-message-bar :conversationType="conversationType" :targetId="targetId" @onSuccess="getNewMessage()" />
<scroll-view class="body" :show-scrollbar="false">
<view class="cell" v-for="(item, index) in messages" :key="index">
<view class="cell-system" v-if="item.senderUserId === '__system__'">{{ item.content.message }}</view>
@@ -18,7 +19,6 @@
</view>
<view class="cell-footer" ref="chatBottom"></view>
</scroll-view>
<sent-message-bar class="message-bar" :conversationType="conversationType" :targetId="targetId" @onSuccess="getNewMessage()" />
</view>
</template>
@@ -171,17 +171,17 @@
background: $window-color;
height: 100vh;
display: flex;
flex-direction: column;
overflow: scroll;
flex-direction: column-reverse;
.body {
flex: 1;
display: flex;
flex-direction: column-reverse;
.cell {
padding: 10rpx 30rpx;
.cell-system {
text-align: center;
}
.cell-item {
display: flex;
flex-direction: row;

View File

@@ -192,18 +192,14 @@
text-align: right;
}
}
.msg {
margin: 0 20rpx;
.state {
padding-top: 10rpx;
.state-text {
font-size: $title-size-m - 2;
color: rgba($color: $main-color, $alpha: 0.3)
}
.state-text-active {
font-size: $title-size-m - 2;
color: #cecece;