|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-03-22 16:13:00
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-06-14 21:40:11
|
|
|
|
|
* @LastEditTime: 2022-06-17 10:27:44
|
|
|
|
|
* @Description: file content
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
@ -18,15 +18,15 @@
|
|
|
|
|
<text class="msgItem--text" v-if="item.lastMessage">
|
|
|
|
|
<template v-if="item.lastMessage.type == msgType.TXT">{{item.lastMessage.payload.content || item.lastMessage.payload.text}}</template>
|
|
|
|
|
<template v-if="item.lastMessage.type == msgType.CUSTOM">
|
|
|
|
|
<template v-if="['returnLogistics','orderAutoDelivery','orderPay'].includes(item.lastMessage.payload.customType)">
|
|
|
|
|
{{item.lastMessage.payload.content}}
|
|
|
|
|
</template>
|
|
|
|
|
<template v-if="item.lastMessage.payload.customType === 'app_push'">
|
|
|
|
|
{{item.lastMessage.payload.link ? '[链接]' : item.lastMessage.payload.content}}
|
|
|
|
|
</template>
|
|
|
|
|
<template v-if="item.lastMessage.payload.customType === 'transferWaiterSession'">
|
|
|
|
|
[客服转移]
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
|
|
|
|
{{item.lastMessage.payload?.content || '[未知消息]'}}
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-if="item.lastMessage.type == msgType.IMG">[图片]</template>
|
|
|
|
|
<template v-if="item.lastMessage.type == msgType.VIDEO">[视频]</template>
|
|
|
|
|