【功能优化】拼团、秒杀组件的SPU名称使用活动的
parent
18484f7ee8
commit
cb39246850
|
@ -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,为了点击跳转详情页
|
||||||
|
|
|
@ -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,为了点击跳转详情页
|
||||||
|
|
Loading…
Reference in New Issue