【逻辑优化】拼团库存使用总库存
This commit is contained in:
@@ -128,8 +128,6 @@
|
|||||||
activity.products.forEach((product) => {
|
activity.products.forEach((product) => {
|
||||||
spu.price = Math.min(spu.price, product.combinationPrice); // 设置 SPU 的最低价格
|
spu.price = Math.min(spu.price, product.combinationPrice); // 设置 SPU 的最低价格
|
||||||
});
|
});
|
||||||
// 将活动总限购数量赋值给库存
|
|
||||||
spu.stock = activity.totalLimitCount
|
|
||||||
productList.value = [spu];
|
productList.value = [spu];
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user