From 4f941df55c3de6cb06107622111daec141eb13b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E8=B6=8A?= <552369664@qq.com> Date: Thu, 5 Sep 2024 15:15:19 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=91=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mall/promotion/combination/combinationActivity.ts | 2 +- .../DiyEditor/components/mobile/PromotionCombination/index.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/mall/promotion/combination/combinationActivity.ts b/src/api/mall/promotion/combination/combinationActivity.ts index a6c9aaa9..b3e70154 100644 --- a/src/api/mall/promotion/combination/combinationActivity.ts +++ b/src/api/mall/promotion/combination/combinationActivity.ts @@ -50,7 +50,7 @@ export const getCombinationActivity = async (id: number) => { // 查询拼团活动详情列表 export const getCombinationActivityDetailList = (ids: number[]) => { - return request.get({ url: `/promotion/combination-activity/detail-list?ids=${ids}` }) + return request.get({ url: `/promotion/combination-activity/list-by-ids?ids=${ids}` }) } // 新增拼团活动 diff --git a/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue b/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue index dfb16672..1bd182ec 100644 --- a/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue +++ b/src/components/DiyEditor/components/mobile/PromotionCombination/index.vue @@ -165,6 +165,7 @@ watch( activity.products.forEach((product) => { const spu = spuList.value.find((spu) => spu.id === product.spuId) if (spu) { + // 哪个最便宜就赋值哪个 spu.price = Math.min(product.combinationPrice || Infinity, spu.price || Infinity) } })