|
|
|
@ -6,64 +6,78 @@
|
|
|
|
|
'--self': props.message.fromId !== props.session.fromId,
|
|
|
|
|
}"
|
|
|
|
|
>
|
|
|
|
|
<div class="avatar">
|
|
|
|
|
<!-- -->
|
|
|
|
|
<div v-if="!['revoke', 'notify'].includes(messageType[props.message.type])" class="avatar">
|
|
|
|
|
<el-avatar :src="props.message.fromAvatar" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="message-body">
|
|
|
|
|
<div class="name">
|
|
|
|
|
<div v-if="!['revoke', 'notify'].includes(messageType[props.message.type])" class="name">
|
|
|
|
|
{{ props.message.fromNickname }}
|
|
|
|
|
</div>
|
|
|
|
|
<el-card v-if="props.message.type === 'product'" class="shadow">
|
|
|
|
|
<template #header>
|
|
|
|
|
<div class="flex">
|
|
|
|
|
<div class="left">商品编号:{{ product.id }}</div>
|
|
|
|
|
<el-button type="text">复制</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<div class="flex">
|
|
|
|
|
<el-image :alt="product.name" height="64px" :src="product.mainPicture" width="64px" />
|
|
|
|
|
<div class="right">
|
|
|
|
|
<div class="name">{{ product.name }}</div>
|
|
|
|
|
<div class="price">¥{{ product.startingPrice }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="footer">
|
|
|
|
|
<el-button>商品规格属性</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-card v-else-if="props.message.type === 'order'" class="shadow">
|
|
|
|
|
<template #header>
|
|
|
|
|
<template v-if="messageType[props.message.type] === 'custom'">
|
|
|
|
|
<el-card
|
|
|
|
|
v-if="store.getters['chat/parseContent'](props.message.payload).type === 'product'"
|
|
|
|
|
class="shadow"
|
|
|
|
|
>
|
|
|
|
|
<template #header>
|
|
|
|
|
<div class="flex">
|
|
|
|
|
<div class="left">商品编号:{{ product.id }}</div>
|
|
|
|
|
<el-button type="text">复制</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<div class="flex">
|
|
|
|
|
<div class="status">{{ order.orderStatusDesc }}</div>
|
|
|
|
|
<div class="service">售后中</div>
|
|
|
|
|
<el-image :alt="product.name" height="64px" :src="product.mainPicture" width="64px" />
|
|
|
|
|
<div class="right">
|
|
|
|
|
<div class="name">{{ product.name }}</div>
|
|
|
|
|
<div class="price">¥{{ product.startingPrice }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex">
|
|
|
|
|
<div class="no">订单编号:{{ order.orderNo }}</div>
|
|
|
|
|
<el-button type="text">复制</el-button>
|
|
|
|
|
<div class="footer">
|
|
|
|
|
<el-button>商品规格属性</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<div class="flex">
|
|
|
|
|
<el-image :alt="order.product.name" height="64px" :src="order.product.mainPicture" width="64px" />
|
|
|
|
|
<div class="right">
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-card
|
|
|
|
|
v-if="store.getters['chat/parseContent'](props.message.payload).type === 'order'"
|
|
|
|
|
class="shadow"
|
|
|
|
|
>
|
|
|
|
|
<template #header>
|
|
|
|
|
<div class="flex">
|
|
|
|
|
<div class="name">{{ order.product.name }}</div>
|
|
|
|
|
<div class="price">¥{{ order.product.startingPrice }}</div>
|
|
|
|
|
<div class="status">{{ order.orderStatusDesc }}</div>
|
|
|
|
|
<div class="service">售后中</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex">
|
|
|
|
|
<div class="sku">{{ order.product.sku || '默认规格' }}</div>
|
|
|
|
|
<div class="count">x{{ order.count || 1 }}</div>
|
|
|
|
|
<div class="no">订单编号:{{ order.orderNo }}</div>
|
|
|
|
|
<el-button type="text">复制</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<div class="flex">
|
|
|
|
|
<el-image
|
|
|
|
|
:alt="order.product.name"
|
|
|
|
|
height="64px"
|
|
|
|
|
:src="order.product.mainPicture"
|
|
|
|
|
width="64px"
|
|
|
|
|
/>
|
|
|
|
|
<div class="right">
|
|
|
|
|
<div class="flex">
|
|
|
|
|
<div class="name">{{ order.product.name }}</div>
|
|
|
|
|
<div class="price">¥{{ order.product.startingPrice }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex">
|
|
|
|
|
<div class="sku">{{ order.product.sku || '默认规格' }}</div>
|
|
|
|
|
<div class="count">x{{ order.count || 1 }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="footer">
|
|
|
|
|
<el-button>查看详情</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="footer">
|
|
|
|
|
<el-button>查看详情</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-card>
|
|
|
|
|
</el-card>
|
|
|
|
|
</template>
|
|
|
|
|
<div v-else class="content" :class="{ shadow: messageType[props.message.type] === 'text' }">
|
|
|
|
|
{{ store.getters['chat/parseContent'](props.message.payload) }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="props.message.type !== 7" class="time">
|
|
|
|
|
<div v-if="!['revoke', 'notify'].includes(messageType[props.message.type])" class="time">
|
|
|
|
|
{{ store.getters['chat/parseTime'](props.message.createTimeStamp) }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|