From 3f92d2724d165cea5c0a992add79f654e14ad13a Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Sat, 4 Jun 2022 11:31:52 +0800 Subject: [PATCH] 秒杀,拼团,积分购 --- pages/cart/cart2_inte/cart2_inte.js | 3 ++- pages/cart/cart2_pt/cart2_pt.js | 3 ++- pages/cart/cart_wk/cart_wk.js | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/cart/cart2_inte/cart2_inte.js b/pages/cart/cart2_inte/cart2_inte.js index fe42052..6b21e09 100644 --- a/pages/cart/cart2_inte/cart2_inte.js +++ b/pages/cart/cart2_inte/cart2_inte.js @@ -453,8 +453,9 @@ Page({ let item = gd_arr_list[i]; if (back_data && back_data['is_by_all'] && (!back_data.no_free_goods || back_data.no_free_goods.indexOf(item.goods_id) == -1) ) { - if (goods_weight < 0) goods_weight = 0; + if (item['exp_sum_type'] == 2) { + if (goods_weight < 0) goods_weight = 0; goods_weight += item['weight'] * item['buynum']; cut_good_weight += item['weight'] * item['buynum']; } diff --git a/pages/cart/cart2_pt/cart2_pt.js b/pages/cart/cart2_pt/cart2_pt.js index 0808679..6daa8f5 100644 --- a/pages/cart/cart2_pt/cart2_pt.js +++ b/pages/cart/cart2_pt/cart2_pt.js @@ -439,8 +439,9 @@ Page({ let item = gd_arr_list[i]; if (back_data && back_data['is_by_all'] && (!back_data.no_free_goods || back_data.no_free_goods.indexOf(item.goods_id) == -1)) { - if (goods_weight < 0) goods_weight = 0; + if (item['exp_sum_type'] == 2) { + if (goods_weight < 0) goods_weight = 0; cut_good_weight += item['weight'] * item['buynum']; goods_weight += item['weight'] * item['buynum']; } diff --git a/pages/cart/cart_wk/cart_wk.js b/pages/cart/cart_wk/cart_wk.js index 6534faa..d868e51 100644 --- a/pages/cart/cart_wk/cart_wk.js +++ b/pages/cart/cart_wk/cart_wk.js @@ -518,8 +518,9 @@ Page({ let item = gd_arr_list[i]; if (back_data && back_data['is_by_all'] && (!back_data.no_free_goods || back_data.no_free_goods.indexOf(item.goods_id) == -1)) { - if (goods_weight < 0) goods_weight = 0; + if (item['exp_sum_type'] == 2) { + if (goods_weight < 0) goods_weight = 0; goods_weight += item['weight'] * item['buynum']; cut_good_weight += item['weight'] * item['buynum']; } -- libgit2 0.21.4