From edfc7e7c01987fe976c28dfa3c87d16936dbce42 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 6 Oct 2023 21:03:17 +0800 Subject: [PATCH] =?UTF-8?q?promotion=EF=BC=9A=E8=B0=83=E6=95=B4=E6=8B=BC?= =?UTF-8?q?=E5=9B=A2=E6=B4=BB=E5=8A=A8=E7=9A=84=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 24fc36e23a42fe83c6ecb28f40cefdc68a340660) --- .../promotion/combination/activity/index.vue | 27 ++++++++++--------- .../mall/promotion/seckill/activity/index.vue | 3 ++- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/views/mall/promotion/combination/activity/index.vue b/src/views/mall/promotion/combination/activity/index.vue index a6839a74..2d2d0373 100644 --- a/src/views/mall/promotion/combination/activity/index.vue +++ b/src/views/mall/promotion/combination/activity/index.vue @@ -71,26 +71,23 @@ - - - - + + + + + + - - { } catch {} } +const formatCombinationPrice = (products) => { + const combinationPrice = Math.min(...products.map((item) => item.combinationPrice)) + return `¥${fenToYuan(combinationPrice)}` +} + /** 初始化 **/ onMounted(async () => { await getList() diff --git a/src/views/mall/promotion/seckill/activity/index.vue b/src/views/mall/promotion/seckill/activity/index.vue index 8e26840d..c102751f 100644 --- a/src/views/mall/promotion/seckill/activity/index.vue +++ b/src/views/mall/promotion/seckill/activity/index.vue @@ -87,7 +87,8 @@ min-width="100" :formatter="fenToYuanFormat" /> - + +