Commit 9a7fca5820b02dab218070cb4aa0efe30fadafdb
1 parent
f944f116
阶梯促销的优化
Showing
2 changed files
with
6 additions
and
0 deletions
packageE/pages/cart/cart2/cart2.js
@@ -870,6 +870,8 @@ Page({ | @@ -870,6 +870,8 @@ Page({ | ||
870 | } | 870 | } |
871 | new_arr.push(carr[ir]); | 871 | new_arr.push(carr[ir]); |
872 | } | 872 | } |
873 | + | ||
874 | + this.data.cartlist_y=JSON.parse(JSON.stringify(new_arr)); | ||
873 | carr=new_arr; | 875 | carr=new_arr; |
874 | 876 | ||
875 | //-- map cy_cx属性要删除 -- | 877 | //-- map cy_cx属性要删除 -- |
@@ -2020,6 +2022,9 @@ Page({ | @@ -2020,6 +2022,9 @@ Page({ | ||
2020 | if (item1.whsle_id) return false; | 2022 | if (item1.whsle_id) return false; |
2021 | if (item1.is_gift) return false; | 2023 | if (item1.is_gift) return false; |
2022 | if (item1.is_collocation) return false; | 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 | var p_type=parseInt(item1.prom_type); | 2029 | var p_type=parseInt(item1.prom_type); |
2025 | if([1,2].indexOf(p_type)>-1) return false; | 2030 | if([1,2].indexOf(p_type)>-1) return false; |
packageE/pages/cart/cart2/ladder_calculate.js
@@ -115,6 +115,7 @@ module.exports = { | @@ -115,6 +115,7 @@ module.exports = { | ||
115 | new_g.goods_num = num; | 115 | new_g.goods_num = num; |
116 | new_g.prom_type = 0; | 116 | new_g.prom_type = 0; |
117 | new_g.prom_id = 0; | 117 | new_g.prom_id = 0; |
118 | + new_g.is_ld_split=1; | ||
118 | goods.push(new_g); | 119 | goods.push(new_g); |
119 | //goods.splice(idx, 1); | 120 | //goods.splice(idx, 1); |
120 | } | 121 | } |