group
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<view class="group--chat">
|
||||
<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;
|
||||
overflow: scroll;
|
||||
flex-direction: column-reverse;
|
||||
.body {
|
||||
flex: 1;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
.cell {
|
||||
padding: 10rpx 30rpx;
|
||||
|
||||
.cell-system {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cell-item {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user