From b98149f1a75058edc9e85914772a1ae4cacf479d Mon Sep 17 00:00:00 2001 From: puhui999 Date: Mon, 3 Jul 2023 12:07:19 +0800 Subject: [PATCH] fix: mall SeckillActivity --- src/api/mall/product/spu.ts | 5 ++++ .../promotion/components/SpuAndSkuList.vue | 9 +++---- .../seckill/activity/SeckillActivityForm.vue | 26 ++++++++----------- 3 files changed, 19 insertions(+), 21 deletions(-) diff --git a/src/api/mall/product/spu.ts b/src/api/mall/product/spu.ts index d7ccfc5c..0ea324b8 100644 --- a/src/api/mall/product/spu.ts +++ b/src/api/mall/product/spu.ts @@ -86,6 +86,11 @@ export const getSpu = (id: number) => { return request.get({ url: `/product/spu/get-detail?id=${id}` }) } +// 获得商品 Spu 详情列表 +export const getSpuDetailList = (ids: number[]) => { + return request.get({ url: `/product/spu/list?spuIds=${ids}` }) +} + // 删除商品 Spu export const deleteSpu = (id: number) => { return request.delete({ url: `/product/spu/delete?id=${id}` }) diff --git a/src/views/mall/promotion/components/SpuAndSkuList.vue b/src/views/mall/promotion/components/SpuAndSkuList.vue index e239a39a..f1b6843c 100644 --- a/src/views/mall/promotion/components/SpuAndSkuList.vue +++ b/src/views/mall/promotion/components/SpuAndSkuList.vue @@ -47,17 +47,14 @@