|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-03-26 14:32:03
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-06-14 12:52:10
|
|
|
|
|
* @LastEditTime: 2022-06-14 14:19:46
|
|
|
|
|
* @Description: file content
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
@ -27,17 +27,17 @@
|
|
|
|
|
<view class="tips" :key="item.id" v-else-if="item.type == MSG_TYPE.TIP">
|
|
|
|
|
<view class="tips--box">{{item.payload.text}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tips" :key="item.id" v-else-if="item.type === MSG_TYPE.CUSTOM && item.payload.customType == 'transferWaiterSession'">
|
|
|
|
|
<view class="tips--box">现在由客服{{item.payload.toNickname}}为您服务</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="receive" :key="item.id" v-else>
|
|
|
|
|
<image class="avatar" :src="item.fromAvatar || require('@/static/message/xt.png')" mode="widthFix"/>
|
|
|
|
|
<view>
|
|
|
|
|
<view class="receive--name">{{item.fromNickname}}</view>
|
|
|
|
|
<template v-if="item.type == MSG_TYPE.CUSTOM">
|
|
|
|
|
<view class="receive--box receive--box__txt" v-if="item.payload.customType == 'transferWaiterSession'">{{item.payload.text}}</view>
|
|
|
|
|
<template v-else>
|
|
|
|
|
<GoodsInfo class="receive--box" position="msg" v-if="item.payload.id" :goodsInfo="item.payload"/>
|
|
|
|
|
<OrderInfo class="receive--box" position="msg" v-if="item.payload.orderId" :orderInfo="item.payload"/>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
<view class="receive--box receive--box__txt" v-if="item.type == MSG_TYPE.TXT">{{item.payload.text}}</view>
|
|
|
|
|
|
|
|
|
|
<img class="receive--box receive--box__img" mode="aspectFit" v-if="item.type == MSG_TYPE.IMG"
|
|
|
|
|