Commit 4f941df5 by 卢越

【代码优化】代码格式化

parent 4870231b
......@@ -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)
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment