fix: 修复满减活动没有传递范围参数

master
misworga831 2023-05-08 18:41:56 +08:00
parent e5c25895a0
commit c60a54b8f9
1 changed files with 4 additions and 1 deletions

View File

@ -447,11 +447,14 @@ export default {
delete params.promotionGoodsList; delete params.promotionGoodsList;
params.number = -1; params.number = -1;
} else { } else {
let scopeId = [];
params.number = 1; params.number = 1;
params.promotionGoodsList.forEach((e) => { params.promotionGoodsList.forEach((e) => {
e.startTime = params.stratTime; e.startTime = params.startTime;
e.endTime = params.endTime; e.endTime = params.endTime;
scopeId.push(e.skuId);
}); });
params.scopeId = scopeId.toString();
} }
if (params.discountType == "fullMinusFlag") { if (params.discountType == "fullMinusFlag") {
params.fullMinusFlag = true; params.fullMinusFlag = true;