Commit afa8cf99fd51e9cc26e06560e0b10d5539f0bf50
1 parent
fd26792b
天天拼团的指定门店的优化
Showing
2 changed files
with
7 additions
and
3 deletions
pages/goods/goodsInfo/buy_pt.wxml
... | ... | @@ -73,6 +73,7 @@ |
73 | 73 | <block wx:else> |
74 | 74 | <view class="no_store" wx:if="{{def_pick_store.is_no_dis}}">(配送不匹配)</view> |
75 | 75 | <view class="no_store" wx:elif="{{def_pick_store.is_no_dis_nor && is_normal}}">(该店不可售)</view> |
76 | + <view class="no_store" wx:elif="{{def_pick_store.is_no_dis_act && !is_normal}}">(该店不可售)</view> | |
76 | 77 | <view wx:elif="{{def_pick_store && !def_pick_store.CanOutQty && !filters.is_virtual_gd(sele_g.is_virtual) && sales_rules>=2 && is_normal}}">(库存不足)</view> |
77 | 78 | </block> |
78 | 79 | </block> |
... | ... | @@ -220,7 +221,10 @@ |
220 | 221 | <!-- 根本就找不到门店 --> |
221 | 222 | <block wx:if="{{def_pick_store && def_pick_store.is_no_dis}}"> |
222 | 223 | <view class="spec-cart-btn spec-buy w100" style="background-color: #dcdcdc;color: #999;">配送不匹配</view> |
223 | - </block> | |
224 | + </block> | |
225 | + <block wx:elif="{{def_pick_store && def_pick_store.is_no_dis_act}}"> | |
226 | + <view class="spec-cart-btn spec-buy w100" data-action="add" style="background-color: #dcdcdc;color: #999;">该店不可售</view> | |
227 | + </block> | |
224 | 228 | <block wx:else> |
225 | 229 | <view bindtap="addCart_pt" class="spec-cart-btn spec-buy w100" data-action="buy">确定</view> |
226 | 230 | </block> | ... | ... |
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -3572,7 +3572,7 @@ Page({ |
3572 | 3572 | var pickup_ids=th.data.sele_g.pickup_ids; |
3573 | 3573 | |
3574 | 3574 | //指定门店判断, 不是普通购买的时候,秒杀的时候,秒杀有指定门店 |
3575 | - if(!is_normal && th.data.prom_type==1 && th.data.prom_act.pick_up_lists){ | |
3575 | + if(!is_normal && (th.data.prom_type==1 || th.data.prom_type==6) && th.data.prom_act.pick_up_lists){ | |
3576 | 3576 | pickup_ids=th.data.prom_act.pick_up_lists |
3577 | 3577 | } |
3578 | 3578 | |
... | ... | @@ -3602,7 +3602,7 @@ Page({ |
3602 | 3602 | if(idx1<0){ |
3603 | 3603 | th.data.def_pick_store.is_no_dis_nor=1; |
3604 | 3604 | //如果是秒杀的指定门店,就要设置秒杀的 |
3605 | - if(!is_normal && th.data.prom_type==1){ | |
3605 | + if(!is_normal && (th.data.prom_type==1 || th.data.prom_type==6) ){ | |
3606 | 3606 | th.data.def_pick_store.is_no_dis_act=1; |
3607 | 3607 | }else{ |
3608 | 3608 | th.data.def_pick_store.is_no_dis_nor=1; | ... | ... |