!104 【功能优化】秒杀详情页过期活动处理

Merge pull request !104 from 卢越/master
This commit is contained in:
芋道源码
2024-10-01 10:57:24 +00:00
committed by Gitee
3 changed files with 7 additions and 1 deletions
@@ -261,6 +261,8 @@
// 查找对应的 spu 并更新价格
const spu = state.spuList.find((spu) => activity.spuId === spu.id);
if (spu) {
// 赋值活动名称
spu.name = activity.name;
// 赋值最低价格
spu.price = Math.min(combinationPrice, spu.price);
// 赋值活动ID,为了点击跳转详情页
@@ -261,6 +261,8 @@
// 查找对应的 spu 并更新价格
const spu = state.spuList.find((spu) => activity.spuId === spu.id);
if (spu) {
// 赋值活动名称
spu.name = activity.name;
// 赋值最低价格
spu.price = Math.min(seckillPrice, spu.price);
// 赋值活动ID,为了点击跳转详情页