Commit 5167cd827f290cf05c7c7bb207ee96e642d5f67c

Authored by yvan.ni
1 parent 28391014

商品配送的运费的计算

packageE/pages/cart/cart2/cart2.js
@@ -3678,8 +3678,11 @@ Page({ @@ -3678,8 +3678,11 @@ Page({
3678 else out_of_weight = -back_data.weight_free * 1000; 3678 else out_of_weight = -back_data.weight_free * 1000;
3679 3679
3680 if(out_of_weight<0){ 3680 if(out_of_weight<0){
3681 - if (goods_weight < 0) goods_weight = 0;  
3682 - goods_weight+=goods_weight_out1; 3681 + if (goods_weight < 0 && goods_weight_out1<0) goods_weight = -1;
  3682 + else{
  3683 + if(goods_weight<0) goods_weight=0;
  3684 + goods_weight+=(goods_weight_out1>-1?goods_weight_out1:0);
  3685 + }
3683 } 3686 }
3684 3687
3685 3688