Commit afd3f8c848aa5f200fe493529cd4cb54ae1e3d8b
1 parent
3e16dac9
// 1. 组合订单,商品的包邮的计算要优化!
2. 赠品要和商品一起算物流配送方式
Showing
1 changed file
with
3 additions
and
4 deletions
pages/cart/cart2/cart2.js
@@ -414,7 +414,7 @@ Page({ | @@ -414,7 +414,7 @@ Page({ | ||
414 | for (var j = 0; j < arr.length; j++) { | 414 | for (var j = 0; j < arr.length; j++) { |
415 | if (arr[j].pickup_id == pcid) { | 415 | if (arr[j].pickup_id == pcid) { |
416 | arr[j].goods.push(item); | 416 | arr[j].goods.push(item); |
417 | - if(item.is_gift!=1){ | 417 | + //if(item.is_gift!=1){ |
418 | //确定配送方式 | 418 | //确定配送方式 |
419 | if(arr[j].distr_t==0){ | 419 | if(arr[j].distr_t==0){ |
420 | arr[j].distr_t=item.distr_type; | 420 | arr[j].distr_t=item.distr_type; |
@@ -427,7 +427,7 @@ Page({ | @@ -427,7 +427,7 @@ Page({ | ||
427 | } | 427 | } |
428 | arr[j].exp_type=e_t; | 428 | arr[j].exp_type=e_t; |
429 | if (e_t == 0) th.setData({ is_all_zt:0}); | 429 | if (e_t == 0) th.setData({ is_all_zt:0}); |
430 | - } | 430 | + //} |
431 | 431 | ||
432 | //-- 把等级卡会优惠多少钱装进去 -- | 432 | //-- 把等级卡会优惠多少钱装进去 -- |
433 | if(item.cut_price) arr[j].card_cut_price+=item.cut_price; | 433 | if(item.cut_price) arr[j].card_cut_price+=item.cut_price; |
@@ -1101,10 +1101,9 @@ Page({ | @@ -1101,10 +1101,9 @@ Page({ | ||
1101 | } | 1101 | } |
1102 | } | 1102 | } |
1103 | 1103 | ||
1104 | - | ||
1105 | //计算物流价格 | 1104 | //计算物流价格 |
1106 | if (cart_item.exp_type == 0) { | 1105 | if (cart_item.exp_type == 0) { |
1107 | - freight_free=0; //后面不在进行判断 | 1106 | + //freight_free=0; //后面不在进行判断 |
1108 | var code = ""; | 1107 | var code = ""; |
1109 | if(th.data.wu_arr && th.data.wu_arr[cart_item.wind]) | 1108 | if(th.data.wu_arr && th.data.wu_arr[cart_item.wind]) |
1110 | code=th.data.wu_arr[cart_item.wind].code; | 1109 | code=th.data.wu_arr[cart_item.wind].code; |