Authored by shuaiguo

Merge branch 'refs/heads/hotfix/cart' into develop

@@ -298,8 +298,10 @@ const modifyProductNum = (req, res, next) => { @@ -298,8 +298,10 @@ const modifyProductNum = (req, res, next) => {
298 let cartDelList = helper.getCartDelList(req, res); 298 let cartDelList = helper.getCartDelList(req, res);
299 let batchNo = req.body.batch_no || null; 299 let batchNo = req.body.batch_no || null;
300 let activityId = req.body.activity_id || null; 300 let activityId = req.body.activity_id || null;
  301 + let poolType = (+req.body.pool_type) || null;
301 302
302 - if (activityId) { 303 + if (activityId && batchNo && poolType === 3) {
  304 + // 套餐商品计算
303 return req.ctx(service).bundleNumData({ 305 return req.ctx(service).bundleNumData({
304 uid: uid, 306 uid: uid,
305 batch_no: batchNo, 307 batch_no: batchNo,
1 { 1 {
2 "name": "yohobuy-node", 2 "name": "yohobuy-node",
3 - "version": "6.9.16", 3 + "version": "6.9.18",
4 "private": true, 4 "private": true,
5 "description": "A New Yohobuy Project With Express", 5 "description": "A New Yohobuy Project With Express",
6 "repository": { 6 "repository": {
@@ -482,7 +482,8 @@ Cart = { @@ -482,7 +482,8 @@ Cart = {
482 capi.cartItemNumChg($.extend(countJSON, { 482 capi.cartItemNumChg($.extend(countJSON, {
483 sku: $item.data('id'), 483 sku: $item.data('id'),
484 batch_no: $item.data('batch-no'), 484 batch_no: $item.data('batch-no'),
485 - activity_id: $item.data('pool-id') 485 + activity_id: $item.data('pool-id'),
  486 + pool_type: $item.data('pool-type')
486 })); 487 }));
487 488
488 if (!$btn.hasClass('cart-item-checked') && !$btn.hasClass('presale')) { 489 if (!$btn.hasClass('cart-item-checked') && !$btn.hasClass('presale')) {
@@ -83,6 +83,7 @@ ColorPanelAction = { @@ -83,6 +83,7 @@ ColorPanelAction = {
83 var promotionId = $item.data('promotionid'); 83 var promotionId = $item.data('promotionid');
84 var poolId = $item.data('pool-id'); 84 var poolId = $item.data('pool-id');
85 var batchNo = $item.data('batch-no'); 85 var batchNo = $item.data('batch-no');
  86 + var poolType = $item.data('pool-type');
86 87
87 // 没有重新选择颜色-尺码,则不用重新请求显示 88 // 没有重新选择颜色-尺码,则不用重新请求显示
88 if (!oldSku || !newSku || oldSku === newSku) { 89 if (!oldSku || !newSku || oldSku === newSku) {
@@ -103,7 +104,7 @@ ColorPanelAction = { @@ -103,7 +104,7 @@ ColorPanelAction = {
103 }; 104 };
104 105
105 // 套餐编辑尺码 106 // 套餐编辑尺码
106 - if (poolId) { 107 + if (poolId && +poolType === 3) {
107 $.extend(swapData, { 108 $.extend(swapData, {
108 activity_id: poolId, 109 activity_id: poolId,
109 batch_no: batchNo 110 batch_no: batchNo