【代码优化】代码格式化
parent
4870231b61
commit
4f941df55c
|
@ -50,7 +50,7 @@ export const getCombinationActivity = async (id: number) => {
|
|||
|
||||
// 查询拼团活动详情列表
|
||||
export const getCombinationActivityDetailList = (ids: number[]) => {
|
||||
return request.get({ url: `/promotion/combination-activity/detail-list?ids=${ids}` })
|
||||
return request.get({ url: `/promotion/combination-activity/list-by-ids?ids=${ids}` })
|
||||
}
|
||||
|
||||
// 新增拼团活动
|
||||
|
|
|
@ -165,6 +165,7 @@ watch(
|
|||
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)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue