会话存档
This commit is contained in:
@@ -55,11 +55,11 @@
|
||||
</div>
|
||||
<div class="content-right-info">
|
||||
<div v-for="(item, index) in msgList" :key="index">
|
||||
<div class="item" :class="item.userId == user.wxUserId ? 'item-right' : 'item-left'">
|
||||
<div class="item" :class="item.userId == id ? 'item-right' : 'item-left'">
|
||||
<p class="time" v-if="index == 0">{{item.createTime}}</p>
|
||||
<div class="item-content-flex">
|
||||
<!-- <i class="el-icon-warning" v-if="item.userId == user.wxUserId"></i> -->
|
||||
<img :src="item.userAvatar" alt="" class="user-img" v-if="item.userId != user.wxUserId">
|
||||
<!-- <i class="el-icon-warning" v-if="item.userId == id"></i> -->
|
||||
<img :src="item.userAvatar" alt="" class="user-img" v-if="item.userId != id">
|
||||
|
||||
<div class="content" v-if="item.msgType == 'text'">
|
||||
<span></span>
|
||||
@@ -83,8 +83,8 @@
|
||||
|
||||
<div class="revoke-text" v-if="item.msgType == 'revoke'">{{item.userName}}{{item.msgSendTime.substring(0, 16)}}撤回了一条消息</div>
|
||||
|
||||
<img :src="item.userAvatar" alt="" class="user-img" v-if="item.userId == user.wxUserId">
|
||||
<!-- <i class="el-icon-warning" v-if="item.userId != user.wxUserId"></i> -->
|
||||
<img :src="item.userAvatar" alt="" class="user-img" v-if="item.userId == id">
|
||||
<!-- <i class="el-icon-warning" v-if="item.userId != id"></i> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -182,10 +182,10 @@
|
||||
this.getMsgList()
|
||||
},
|
||||
getMsgList() {
|
||||
this.instance.post(`/app/appsessionarchiveinfo/listByUser`, null, {
|
||||
this.instance.post(`/app/appsessionarchiveinfo/list`, null, {
|
||||
params: {
|
||||
userId: this.id,
|
||||
// type: this.tabIndex,
|
||||
type: this.tabIndex,
|
||||
size: 20,
|
||||
current: this.msgCurrent,
|
||||
msgType: this.msgTypeList[this.msgType].value,
|
||||
|
||||
Reference in New Issue
Block a user