Authored by htoo

hotfix(cart): 修复套餐变化价格

... ... @@ -298,8 +298,10 @@ const modifyProductNum = (req, res, next) => {
let cartDelList = helper.getCartDelList(req, res);
let batchNo = req.body.batch_no || null;
let activityId = req.body.activity_id || null;
let poolType = (+req.body.pool_type) || null;
if (activityId) {
if (activityId && batchNo && poolType === 3) {
// 套餐商品计算
return req.ctx(service).bundleNumData({
uid: uid,
batch_no: batchNo,
... ...
... ... @@ -482,7 +482,8 @@ Cart = {
capi.cartItemNumChg($.extend(countJSON, {
sku: $item.data('id'),
batch_no: $item.data('batch-no'),
activity_id: $item.data('pool-id')
activity_id: $item.data('pool-id'),
pool_type: $item.data('pool-type')
}));
if (!$btn.hasClass('cart-item-checked') && !$btn.hasClass('presale')) {
... ...