Commit 097368f06aec42afeeb2f00ec70e9eae8ab360a4
1 parent
954e6c44
商品详情页面的指定门店的bug优化
Showing
1 changed file
with
4 additions
and
0 deletions
pages/goods/goodsInfo/goodsInfo.js
@@ -3570,6 +3570,10 @@ Page({ | @@ -3570,6 +3570,10 @@ Page({ | ||
3570 | if (e.data.code == 0 && e.data.data && e.data.data.pageData && e.data.data.pageData.length > 0) { | 3570 | if (e.data.code == 0 && e.data.data && e.data.data.pageData && e.data.data.pageData.length > 0) { |
3571 | 3571 | ||
3572 | var pickup_ids=th.data.sele_g.pickup_ids; | 3572 | var pickup_ids=th.data.sele_g.pickup_ids; |
3573 | + //不是单独购买的时候,要清空商品pickup_ids | ||
3574 | + if(!is_normal && th.data.prom_type>0){ | ||
3575 | + pickup_ids=null; | ||
3576 | + } | ||
3573 | 3577 | ||
3574 | //指定门店判断, 不是普通购买的时候,秒杀的时候,秒杀有指定门店 | 3578 | //指定门店判断, 不是普通购买的时候,秒杀的时候,秒杀有指定门店 |
3575 | if(!is_normal && (th.data.prom_type==1 || th.data.prom_type==6) && th.data.prom_act.pick_up_lists){ | 3579 | if(!is_normal && (th.data.prom_type==1 || th.data.prom_type==6) && th.data.prom_act.pick_up_lists){ |