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" /> - + +