Pre Merge pull request !83 from 卢越/master

pull/83/MERGE
卢越 2024-08-19 09:40:55 +00:00 committed by Gitee
commit fca6758af6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,10 @@
activity.products.forEach((product) => {
spu.price = Math.min(spu.price, product.seckillPrice); // 设置 SPU 的最低价格
});
// 将活动库存赋值给商品库存
spu.stock = activity.stock
// 活动总库存 - 活动库存 = 销量
spu.salesCount = activity.totalStock - activity.stock
productList.value = [spu];
});
</script>