Commit 8f164fcb570cad67a943d4b97f88ce02b5d60e8d

Authored by yvan.ni
1 parent cc37efff

商品的统一运费

Showing 1 changed file with 5 additions and 1 deletions
pages/cart/cart2/cart2.js
@@ -463,6 +463,8 @@ Page({ @@ -463,6 +463,8 @@ Page({
463 ob.buynum=num; 463 ob.buynum=num;
464 ob.weight=data.gift_weight; //商品的重量 464 ob.weight=data.gift_weight; //商品的重量
465 ob.exp_sum_type=data.gift_exp_sum_type; //商品的物流计算方式 465 ob.exp_sum_type=data.gift_exp_sum_type; //商品的物流计算方式
  466 + ob.uniform_exp_sum=data.uniform_exp_sum //统一运费的金额
  467 +
466 th.setData({buy_now_gift_goods:ob}); 468 th.setData({buy_now_gift_goods:ob});
467 } 469 }
468 } 470 }
@@ -690,6 +692,8 @@ Page({ @@ -690,6 +692,8 @@ Page({
690 item_map.gift_storecount = get_data.gift_storecount; 692 item_map.gift_storecount = get_data.gift_storecount;
691 item_map.gift_weight = get_data.goodsinfo.weight; 693 item_map.gift_weight = get_data.goodsinfo.weight;
692 item_map.gift_exp_sum_type = get_data.goodsinfo.exp_sum_type; 694 item_map.gift_exp_sum_type = get_data.goodsinfo.exp_sum_type;
  695 + item_map.uniform_exp_sum = get_data.goodsinfo.uniform_exp_sum;
  696 +
693 } 697 }
694 item_map.s_libao = get_data.libao; 698 item_map.s_libao = get_data.libao;
695 item_map.s_lb_num = get_data.lb_num; 699 item_map.s_lb_num = get_data.lb_num;
@@ -2739,7 +2743,6 @@ Page({ @@ -2739,7 +2743,6 @@ Page({
2739 var check=this.check_good(arr,goods_id); 2743 var check=this.check_good(arr,goods_id);
2740 return !check; 2744 return !check;
2741 }, 2745 },
2742 -  
2743 //立即购买获取优惠活动的内容 2746 //立即购买获取优惠活动的内容
2744 buy_now_prom_goods:function (prom_id,arr,func) { 2747 buy_now_prom_goods:function (prom_id,arr,func) {
2745 var price=arr.shop_price*arr.goods_num; 2748 var price=arr.shop_price*arr.goods_num;
@@ -2780,6 +2783,7 @@ Page({ @@ -2780,6 +2783,7 @@ Page({
2780 arr.gift_original_img = get_data.goodsinfo.original_img; 2783 arr.gift_original_img = get_data.goodsinfo.original_img;
2781 arr.gift_weight = get_data.goodsinfo.weight; 2784 arr.gift_weight = get_data.goodsinfo.weight;
2782 arr.gift_exp_sum_type = get_data.goodsinfo.exp_sum_type; 2785 arr.gift_exp_sum_type = get_data.goodsinfo.exp_sum_type;
  2786 + arr.uniform_exp_sum = get_data.goodsinfo.uniform_exp_sum;
2783 arr.gift_limit_num = get_data.limit_num; 2787 arr.gift_limit_num = get_data.limit_num;
2784 arr.gift_storecount = get_data.gift_storecount; 2788 arr.gift_storecount = get_data.gift_storecount;
2785 } 2789 }