【功能修复】修复装修页面的拼团价格和秒杀价格

pull/501/head
卢越 2024-08-16 14:42:43 +08:00
parent 3b445d031f
commit 4130b2fec5
2 changed files with 4 additions and 11 deletions

View File

@ -86,11 +86,8 @@ watch(
//
activity.products.forEach((product: CombinationProductVO) => {
spuList.value.forEach((spu: Spu) => {
// SpuId
if (spu.id === product.spuId) {
// 便
spu.combinationPrice = Math.min(spu.price || 0, product.combinationPrice); // SPU
}
spu.combinationPrice = Math.min(spu.combinationPrice || Infinity, product.combinationPrice); // SPU
})
});
},

View File

@ -84,14 +84,10 @@ watch(
if (!activity?.spuId) return
spuList.value = [await ProductSpuApi.getSpu(activity.spuId)]
spuList.value = [await ProductSpuApi.getSpu(activity.spuId)]
//
//
activity.products.forEach((product: SeckillProductVO) => {
spuList.value.forEach((spu: Spu) => {
// SpuId
if (spu.id === product.spuId) {
// 便
spu.seckillPrice = Math.min(spu.price || 0, product.seckillPrice); // SPU
}
spu.seckillPrice = Math.min(spu.seckillPrice || Infinity, product.seckillPrice); // SPU
})
});
},