【功能优化】拼团、秒杀组件的SPU名称使用活动的

pull/104/head
卢越 2024-09-27 19:58:00 +08:00
parent 18484f7ee8
commit cb39246850
2 changed files with 4 additions and 0 deletions

View File

@ -261,6 +261,8 @@
// spu // spu
const spu = state.spuList.find((spu) => activity.spuId === spu.id); const spu = state.spuList.find((spu) => activity.spuId === spu.id);
if (spu) { if (spu) {
//
spu.name = activity.name;
// //
spu.price = Math.min(combinationPrice, spu.price); spu.price = Math.min(combinationPrice, spu.price);
// ID // ID

View File

@ -261,6 +261,8 @@
// spu // spu
const spu = state.spuList.find((spu) => activity.spuId === spu.id); const spu = state.spuList.find((spu) => activity.spuId === spu.id);
if (spu) { if (spu) {
//
spu.name = activity.name;
// //
spu.price = Math.min(seckillPrice, spu.price); spu.price = Math.min(seckillPrice, spu.price);
// ID // ID