!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 virtualGroup?: number
status?: number status?: number
limitDuration?: number limitDuration?: number
combinationPrice?: number
products: CombinationProductVO[] products: CombinationProductVO[]
} }

View File

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