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