!83 【逻辑优化】现在活动库存可以真实显示

Merge pull request !83 from 卢越/master
pull/84/head^2
芋道源码 2024-08-19 13:55:24 +00:00 committed by Gitee
commit af0643ce93
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>