fix:消息不显示

feature/alipay-0629-ch
ch 2 years ago
parent 017b4da59a
commit c2d0857ca1

@ -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>

Loading…
Cancel
Save