Commit 3f92d2724d165cea5c0a992add79f654e14ad13a

Authored by yvan.ni
1 parent 9e099d35

秒杀,拼团,积分购

pages/cart/cart2_inte/cart2_inte.js
@@ -453,8 +453,9 @@ Page({ @@ -453,8 +453,9 @@ Page({
453 let item = gd_arr_list[i]; 453 let item = gd_arr_list[i];
454 454
455 if (back_data && back_data['is_by_all'] && (!back_data.no_free_goods || back_data.no_free_goods.indexOf(item.goods_id) == -1) ) { 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 if (item['exp_sum_type'] == 2) { 457 if (item['exp_sum_type'] == 2) {
  458 + if (goods_weight < 0) goods_weight = 0;
458 goods_weight += item['weight'] * item['buynum']; 459 goods_weight += item['weight'] * item['buynum'];
459 cut_good_weight += item['weight'] * item['buynum']; 460 cut_good_weight += item['weight'] * item['buynum'];
460 } 461 }
pages/cart/cart2_pt/cart2_pt.js
@@ -439,8 +439,9 @@ Page({ @@ -439,8 +439,9 @@ Page({
439 let item = gd_arr_list[i]; 439 let item = gd_arr_list[i];
440 440
441 if (back_data && back_data['is_by_all'] && (!back_data.no_free_goods || back_data.no_free_goods.indexOf(item.goods_id) == -1)) { 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 if (item['exp_sum_type'] == 2) { 443 if (item['exp_sum_type'] == 2) {
  444 + if (goods_weight < 0) goods_weight = 0;
444 cut_good_weight += item['weight'] * item['buynum']; 445 cut_good_weight += item['weight'] * item['buynum'];
445 goods_weight += item['weight'] * item['buynum']; 446 goods_weight += item['weight'] * item['buynum'];
446 } 447 }
pages/cart/cart_wk/cart_wk.js
@@ -518,8 +518,9 @@ Page({ @@ -518,8 +518,9 @@ Page({
518 let item = gd_arr_list[i]; 518 let item = gd_arr_list[i];
519 519
520 if (back_data && back_data['is_by_all'] && (!back_data.no_free_goods || back_data.no_free_goods.indexOf(item.goods_id) == -1)) { 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 if (item['exp_sum_type'] == 2) { 522 if (item['exp_sum_type'] == 2) {
  523 + if (goods_weight < 0) goods_weight = 0;
523 goods_weight += item['weight'] * item['buynum']; 524 goods_weight += item['weight'] * item['buynum'];
524 cut_good_weight += item['weight'] * item['buynum']; 525 cut_good_weight += item['weight'] * item['buynum'];
525 } 526 }