Commit c08e2da3be3d591f8193957f2fe27c596df4ed99
1 parent
2a85c327
积分够优化购买时候加减数量
Showing
1 changed file
with
2 additions
and
2 deletions
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -2243,7 +2243,7 @@ Page({ |
2243 | 2243 | } |
2244 | 2244 | } |
2245 | 2245 | |
2246 | - if ((th.data.sele_g.prom_type == 1 || th.data.sele_g.prom_type == 6) && !th.data.is_normal) { | |
2246 | + if ((th.data.sele_g.prom_type == 1 || th.data.sele_g.prom_type == 2 || th.data.sele_g.prom_type == 6) && !th.data.is_normal) { | |
2247 | 2247 | var redis_num = 0; |
2248 | 2248 | //------判断活动是否抢光----- |
2249 | 2249 | await getApp().request.promiseGet("/api/weshop/activitylist/getActLen/" + |
... | ... | @@ -2267,7 +2267,7 @@ Page({ |
2267 | 2267 | } |
2268 | 2268 | var e = th.data.sele_g.store_count; |
2269 | 2269 | var p_type = th.data.prom_type; //&& p_type!=1 && p_type!=4 |
2270 | - if (th.data.sales_rules >= 2 && (p_type != 1 && p_type != 4 && p_type != 6 || th.data.openSpecModal_inte_normal == 1 || th.data.is_normal == 1)) { | |
2270 | + if (th.data.sales_rules >= 2 && (p_type != 1 && p_type != 4 && p_type != 6 && p_type != 2 || th.data.openSpecModal_inte_normal == 1 || th.data.is_normal == 1)) { | |
2271 | 2271 | if (!th.data.def_pick_store) { |
2272 | 2272 | wx.showToast({ |
2273 | 2273 | title: '请选择门店', | ... | ... |