From 78a1b4ef9bb55abd6c16ad50b170d41e902b1805 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Wed, 22 Nov 2023 18:29:07 +0800 Subject: [PATCH] 阶梯促销的商品优化,订单优化和包邮规则的叠加的优化 --- packageE/pages/cart/cart2/cart2.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packageE/pages/cart/cart2/cart2.js b/packageE/pages/cart/cart2/cart2.js index 95e06aa..355952b 100644 --- a/packageE/pages/cart/cart2/cart2.js +++ b/packageE/pages/cart/cart2/cart2.js @@ -1437,7 +1437,7 @@ Page({ item1.is_order_yh=1; item1.is_post_temp=1; //如果是秒杀,团购的时候,优惠促销和搭配购的时候 - if([1,2,3,5,6,7].indexOf(item1.prom_type)>-1){ + if([1,2,3,5,6,7,10].indexOf(item1.prom_type)>-1){ var url= "/api/weshop/activitylist/getSJGoodsPriceNew/" + os.stoid + "/" + item1.goods_id + "/"+item1.prom_type+"/" + item1.prom_id + "/" + app.globalData.user_id; await app.request.promiseGet(url,{}).then(res=>{ @@ -2956,12 +2956,13 @@ Page({ o_price += item[jc].goods_price * item[jc].goods_num; //--- 秒杀, 团购的时候,判断有没有订单优惠和包邮模板的叠加 --- - if( [1,2,3,5,6,7].indexOf(item[jc].prom_type)>-1){ + if( [1,2,3,5,6,7,10].indexOf(item[jc].prom_type)>-1){ var gd_price=item[jc].goods_price; if(item[jc].account_fir) gd_price=item[jc].account_fir; - if(!item[jc].is_order_yh && !item[jc].whsle_id){ + //组合购和阶梯购是订单优惠是另外算的 + if(!item[jc].is_order_yh && !item[jc].whsle_id && item[jc].prom_type!=7 && item[jc].prom_type!=10){ no_order_yh+=gd_price * item[jc].goods_num; if(item[jc].quan_num) no_order_yh-=item[jc].quan_num; //券要把他补回去 -- libgit2 0.21.4