From ca872e18750a2643e45f42afac82b515a37555e9 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Wed, 12 May 2021 17:36:02 +0800 Subject: [PATCH] 是否使用优化券 --- pages/cart/cart2/cart2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/cart/cart2/cart2.js b/pages/cart/cart2/cart2.js index bb1c73e..7fc7652 100644 --- a/pages/cart/cart2/cart2.js +++ b/pages/cart/cart2/cart2.js @@ -3023,7 +3023,7 @@ Page({ arr[ind].check_quan_price_list=check_quan_price_list; //是否关闭使用优惠券 - if (th.data.is_close_quan != 1 && !is_xz_yh) { + if (th.data.is_close_quan != 1 && !is_xz_yh && check_quan_ware_list && check_quan_ware_list!="") { //--调用接口,获取优惠券的列表,3秒钟内控制接口请求-- var url="/api/weshop/couponList/getUseCouponList"; 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({ th.data.ckeck_quan_price=good.offline_price; //如果有线下取价,就用线下价 } //--如果商家后台没有限制使用优惠券,同时商品的优惠活动没有限制使用优惠券-- - if(th.data.is_close_quan != 1 && th.data.bn_goods.is_xz_yh!=1) + 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!='') { var url0 = "/api/weshop/users/frozenQuan/listFrozenQuan/" + app.globalData.user_id; var url="/api/weshop/couponList/getUseCouponList"; -- libgit2 0.21.4