Commit 74d102927fe226f1e5253be5bbfe47b52806c274
1 parent
98ea9749
指定门店的优化,
优惠促销 搭配促销 组合促销 阶梯促销 商品在计算的时候,都按普通商品来获取门店!
Showing
1 changed file
with
3 additions
and
3 deletions
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -3661,12 +3661,12 @@ Page({ |
3661 | 3661 | |
3662 | 3662 | var pickup_ids=th.data.sele_g.pickup_ids; |
3663 | 3663 | //不是单独购买的时候,要清空商品pickup_ids |
3664 | - if(!is_normal && th.data.prom_type>0){ | |
3664 | + | |
3665 | + var py=parseFloat(th.data.prom_type+''); | |
3666 | + if(!is_normal && py>0 && [3,5,7,10].indexOf(py)<0 ){ | |
3665 | 3667 | pickup_ids=null; |
3666 | 3668 | } |
3667 | 3669 | |
3668 | - | |
3669 | - var py=parseFloat(th.data.prom_type+''); | |
3670 | 3670 | //指定门店判断, 不是普通购买的时候,秒杀的时候,秒杀有指定门店 |
3671 | 3671 | if(!is_normal && [1,2,6].indexOf(py)>-1 && th.data.prom_act.pick_up_lists){ |
3672 | 3672 | pickup_ids=th.data.prom_act.pick_up_lists | ... | ... |