!539 【功能修复】修复拼团装修的价格显示

Merge pull request !539 from 卢越/master
pull/540/head
芋道源码 2024-09-06 14:32:34 +00:00 committed by Gitee
commit b5c4da073a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 7 additions and 7 deletions

View File

@ -16,6 +16,7 @@ export interface CombinationActivityVO {
virtualGroup?: number
status?: number
limitDuration?: number
combinationPrice?: number
products: CombinationProductVO[]
}

View File

@ -152,13 +152,12 @@ watch(
// SPU
combinationActivityList.value.forEach((activity) => {
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)
}
})
// spuId
const spu = spuList.value.find((spu) => spu.id === activity.spuId)
if (spu) {
// 便
spu.price = Math.min(activity.combinationPrice || Infinity, spu.price || Infinity)
}
})
}
} catch (error) {