Commit 3f92d2724d165cea5c0a992add79f654e14ad13a
1 parent
9e099d35
秒杀,拼团,积分购
Showing
3 changed files
with
6 additions
and
3 deletions
pages/cart/cart2_inte/cart2_inte.js
... | ... | @@ -453,8 +453,9 @@ Page({ |
453 | 453 | let item = gd_arr_list[i]; |
454 | 454 | |
455 | 455 | if (back_data && back_data['is_by_all'] && (!back_data.no_free_goods || back_data.no_free_goods.indexOf(item.goods_id) == -1) ) { |
456 | - if (goods_weight < 0) goods_weight = 0; | |
456 | + | |
457 | 457 | if (item['exp_sum_type'] == 2) { |
458 | + if (goods_weight < 0) goods_weight = 0; | |
458 | 459 | goods_weight += item['weight'] * item['buynum']; |
459 | 460 | cut_good_weight += item['weight'] * item['buynum']; |
460 | 461 | } | ... | ... |
pages/cart/cart2_pt/cart2_pt.js
... | ... | @@ -439,8 +439,9 @@ Page({ |
439 | 439 | let item = gd_arr_list[i]; |
440 | 440 | |
441 | 441 | if (back_data && back_data['is_by_all'] && (!back_data.no_free_goods || back_data.no_free_goods.indexOf(item.goods_id) == -1)) { |
442 | - if (goods_weight < 0) goods_weight = 0; | |
442 | + | |
443 | 443 | if (item['exp_sum_type'] == 2) { |
444 | + if (goods_weight < 0) goods_weight = 0; | |
444 | 445 | cut_good_weight += item['weight'] * item['buynum']; |
445 | 446 | goods_weight += item['weight'] * item['buynum']; |
446 | 447 | } | ... | ... |
pages/cart/cart_wk/cart_wk.js
... | ... | @@ -518,8 +518,9 @@ Page({ |
518 | 518 | let item = gd_arr_list[i]; |
519 | 519 | |
520 | 520 | if (back_data && back_data['is_by_all'] && (!back_data.no_free_goods || back_data.no_free_goods.indexOf(item.goods_id) == -1)) { |
521 | - if (goods_weight < 0) goods_weight = 0; | |
521 | + | |
522 | 522 | if (item['exp_sum_type'] == 2) { |
523 | + if (goods_weight < 0) goods_weight = 0; | |
523 | 524 | goods_weight += item['weight'] * item['buynum']; |
524 | 525 | cut_good_weight += item['weight'] * item['buynum']; |
525 | 526 | } | ... | ... |