客服:完善订单消息发送

This commit is contained in:
puhui999
2024-07-09 17:34:18 +08:00
parent b630d26d4b
commit 39440c1e67
4 changed files with 102 additions and 172 deletions
+12 -12
View File
@@ -101,17 +101,16 @@
"
/>
</template>
<!-- <template v-if="item.contentType === KeFuMessageContentTypeEnum.ORDER">-->
<!-- <OrderItem-->
<!-- from="msg"-->
<!-- :orderData="item.content.item"-->
<!-- @tap="-->
<!-- sheep.$router.go('/pages/order/detail', {-->
<!-- id: item.content.item.id,-->
<!-- })-->
<!-- "-->
<!-- />-->
<!-- </template>-->
<template v-if="item.contentType === KeFuMessageContentTypeEnum.ORDER">
<OrderItem
:orderData="JSON.parse(item.content)"
@tap="
sheep.$router.go('/pages/order/detail', {
id: JSON.parse(item.content).id,
})
"
/>
</template>
<!-- user头像 -->
<image
v-if="item.senderType === UserTypeEnum.MEMBER"
@@ -133,9 +132,10 @@
</template>
<script setup>
import { nextTick, onBeforeUnmount, onMounted, reactive, ref, unref } from 'vue';
import { nextTick, reactive, ref, unref } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
import GoodsItem from './goods.vue';
import OrderItem from './order.vue';
import sheep from '@/sheep';
import KeFuApi from '@/sheep/api/promotion/kefu';
import { isEmpty } from '@/sheep/helper/utils';