客服:完善商品消息发送

This commit is contained in:
puhui999
2024-07-09 16:17:56 +08:00
parent d9efd4e2e6
commit b630d26d4b
4 changed files with 29 additions and 47 deletions
+3 -4
View File
@@ -14,11 +14,11 @@
<view
class="item"
v-for="item in state.pagination.data"
:key="item"
:key="item.id"
@tap="emits('select', { type: mode, data: item })"
>
<template v-if="mode == 'goods'">
<GoodsItem :goodsData="item.goods" />
<GoodsItem :goodsData="item" />
</template>
<template v-if="mode == 'order'">
<OrderItem :orderData="item" />
@@ -32,7 +32,6 @@
<script setup>
import { reactive, watch } from 'vue';
import sheep from '@/sheep';
import _ from 'lodash';
import GoodsItem from './goods.vue';
import OrderItem from './order.vue';
@@ -83,7 +82,7 @@
page,
list_rows,
});
let orderList = _.concat(state.pagination.data, res.data.data);
let orderList = _.concat(state.pagination.data, res.data.list);
state.pagination = {
...res.data,
data: orderList,