【逻辑优化】拼团库存使用总库存
parent
d37b848307
commit
9d333085cb
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue