Commit 5a3ae2ab by YunaiV

【代码优化】商城: 限时折扣活动新增 spu 保存 fix

parent f07c74d8
...@@ -90,6 +90,7 @@ const spuPropertyList = ref<SpuProperty<DiscountActivityApi.SpuExtension>[]>([]) ...@@ -90,6 +90,7 @@ const spuPropertyList = ref<SpuProperty<DiscountActivityApi.SpuExtension>[]>([])
const spuIds = ref<number[]>([]) const spuIds = ref<number[]>([])
const selectSpu = (spuId: number, skuIds: number[]) => { const selectSpu = (spuId: number, skuIds: number[]) => {
// TODO puhui999: 艿艿现在限时折扣活动可以选择多个 spu ,那么 spuId 是不是得改成 spuIds 来存放多个?🤣 // TODO puhui999: 艿艿现在限时折扣活动可以选择多个 spu ,那么 spuId 是不是得改成 spuIds 来存放多个?🤣
// TODO @puhui999:DiscountActivityDO 不存 spuId,在 DiscountProductDO 存储哈。
formRef.value.setValues({ spuId }) formRef.value.setValues({ spuId })
getSpuDetails(spuId, skuIds) getSpuDetails(spuId, skuIds)
} }
......
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