Commit b7d45a187f4da4d48f921ac08d258aef231a03d8
1 parent
777b3033
确认订单的页面,秒杀和团购不参与多活动的计算
Showing
1 changed file
with
3 additions
and
1 deletions
packageE/pages/cart/cart2/cart2.js
@@ -1394,7 +1394,9 @@ Page({ | @@ -1394,7 +1394,9 @@ Page({ | ||
1394 | if (arr[k].show_can_cx) { | 1394 | if (arr[k].show_can_cx) { |
1395 | for (let key_o in arr[k].show_can_cx) { | 1395 | for (let key_o in arr[k].show_can_cx) { |
1396 | let k_arr = key_o.split(','); | 1396 | let k_arr = key_o.split(','); |
1397 | - if (k_arr.indexOf(item1.goods_id + '') > -1) { | 1397 | + |
1398 | + //秒杀,团购等活动不参与计算 | ||
1399 | + if (k_arr.indexOf(item1.goods_id + '') > -1 && ![1,2,4,6,8,9].includes(parseInt(item1.prom_type+''))){ | ||
1398 | //-- 如果初始活动在计算的时候,是不满足的时候,就要把活动清理掉 -- | 1400 | //-- 如果初始活动在计算的时候,是不满足的时候,就要把活动清理掉 -- |
1399 | var is_no_ok = arr[k].show_can_cx[key_o].cur_act.is_no_ok; | 1401 | var is_no_ok = arr[k].show_can_cx[key_o].cur_act.is_no_ok; |
1400 | if (is_no_ok == 1) { | 1402 | if (is_no_ok == 1) { |