Commit ca872e18750a2643e45f42afac82b515a37555e9
1 parent
95b8137a
是否使用优化券
Showing
1 changed file
with
2 additions
and
2 deletions
pages/cart/cart2/cart2.js
... | ... | @@ -3023,7 +3023,7 @@ Page({ |
3023 | 3023 | arr[ind].check_quan_price_list=check_quan_price_list; |
3024 | 3024 | |
3025 | 3025 | //是否关闭使用优惠券 |
3026 | - if (th.data.is_close_quan != 1 && !is_xz_yh) { | |
3026 | + if (th.data.is_close_quan != 1 && !is_xz_yh && check_quan_ware_list && check_quan_ware_list!="") { | |
3027 | 3027 | //--调用接口,获取优惠券的列表,3秒钟内控制接口请求-- |
3028 | 3028 | var url="/api/weshop/couponList/getUseCouponList"; |
3029 | 3029 | await app.request.promiseGet(url,{ data:{storeId:oo.stoid,userId:app.globalData.user_id,BuySum:ckeck_quan_price,WareIds:check_quan_ware_list,pageSize:100}}).then(res=>{ |
... | ... | @@ -3059,7 +3059,7 @@ Page({ |
3059 | 3059 | th.data.ckeck_quan_price=good.offline_price; //如果有线下取价,就用线下价 |
3060 | 3060 | } |
3061 | 3061 | //--如果商家后台没有限制使用优惠券,同时商品的优惠活动没有限制使用优惠券-- |
3062 | - if(th.data.is_close_quan != 1 && th.data.bn_goods.is_xz_yh!=1) | |
3062 | + if(th.data.is_close_quan != 1 && th.data.bn_goods.is_xz_yh!=1 && th.data.check_quan_ware_list && th.data.check_quan_ware_list!='') | |
3063 | 3063 | { |
3064 | 3064 | var url0 = "/api/weshop/users/frozenQuan/listFrozenQuan/" + app.globalData.user_id; |
3065 | 3065 | var url="/api/weshop/couponList/getUseCouponList"; | ... | ... |