Commit 9a7fca5820b02dab218070cb4aa0efe30fadafdb

Authored by yvan.ni
1 parent f944f116

阶梯促销的优化

packageE/pages/cart/cart2/cart2.js
... ... @@ -870,6 +870,8 @@ Page({
870 870 }
871 871 new_arr.push(carr[ir]);
872 872 }
  873 +
  874 + this.data.cartlist_y=JSON.parse(JSON.stringify(new_arr));
873 875 carr=new_arr;
874 876  
875 877 //-- map cy_cx属性要删除 --
... ... @@ -2020,6 +2022,9 @@ Page({
2020 2022 if (item1.whsle_id) return false;
2021 2023 if (item1.is_gift) return false;
2022 2024 if (item1.is_collocation) return false;
  2025 + if (item1.is_ld_split) return false; //是阶梯
  2026 + if (item1.is_zh_split) return false;
  2027 +
2023 2028 //-- 购物车的秒杀和团购不计算 --
2024 2029 var p_type=parseInt(item1.prom_type);
2025 2030 if([1,2].indexOf(p_type)>-1) return false;
... ...
packageE/pages/cart/cart2/ladder_calculate.js
... ... @@ -115,6 +115,7 @@ module.exports = {
115 115 new_g.goods_num = num;
116 116 new_g.prom_type = 0;
117 117 new_g.prom_id = 0;
  118 + new_g.is_ld_split=1;
118 119 goods.push(new_g);
119 120 //goods.splice(idx, 1);
120 121 }
... ...