Skip to content

Commit 4f941df

Browse files
committed
【代码优化】代码格式化
1 parent 4870231 commit 4f941df

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/api/mall/promotion/combination/combinationActivity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const getCombinationActivity = async (id: number) => {
5050

5151
// 查询拼团活动详情列表
5252
export const getCombinationActivityDetailList = (ids: number[]) => {
53-
return request.get({ url: `/promotion/combination-activity/detail-list?ids=${ids}` })
53+
return request.get({ url: `/promotion/combination-activity/list-by-ids?ids=${ids}` })
5454
}
5555

5656
// 新增拼团活动

src/components/DiyEditor/components/mobile/PromotionCombination/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ watch(
165165
activity.products.forEach((product) => {
166166
const spu = spuList.value.find((spu) => spu.id === product.spuId)
167167
if (spu) {
168+
// 哪个最便宜就赋值哪个
168169
spu.price = Math.min(product.combinationPrice || Infinity, spu.price || Infinity)
169170
}
170171
})

0 commit comments

Comments
 (0)