Commit 78a1b4ef9bb55abd6c16ad50b170d41e902b1805
1 parent
4cb8ffac
阶梯促销的商品优化,订单优化和包邮规则的叠加的优化
Showing
1 changed file
with
4 additions
and
3 deletions
packageE/pages/cart/cart2/cart2.js
... | ... | @@ -1437,7 +1437,7 @@ Page({ |
1437 | 1437 | item1.is_order_yh=1; |
1438 | 1438 | item1.is_post_temp=1; |
1439 | 1439 | //如果是秒杀,团购的时候,优惠促销和搭配购的时候 |
1440 | - if([1,2,3,5,6,7].indexOf(item1.prom_type)>-1){ | |
1440 | + if([1,2,3,5,6,7,10].indexOf(item1.prom_type)>-1){ | |
1441 | 1441 | var url= "/api/weshop/activitylist/getSJGoodsPriceNew/" + os.stoid |
1442 | 1442 | + "/" + item1.goods_id + "/"+item1.prom_type+"/" + item1.prom_id + "/" + app.globalData.user_id; |
1443 | 1443 | await app.request.promiseGet(url,{}).then(res=>{ |
... | ... | @@ -2956,12 +2956,13 @@ Page({ |
2956 | 2956 | o_price += item[jc].goods_price * item[jc].goods_num; |
2957 | 2957 | |
2958 | 2958 | //--- 秒杀, 团购的时候,判断有没有订单优惠和包邮模板的叠加 --- |
2959 | - if( [1,2,3,5,6,7].indexOf(item[jc].prom_type)>-1){ | |
2959 | + if( [1,2,3,5,6,7,10].indexOf(item[jc].prom_type)>-1){ | |
2960 | 2960 | |
2961 | 2961 | var gd_price=item[jc].goods_price; |
2962 | 2962 | if(item[jc].account_fir) gd_price=item[jc].account_fir; |
2963 | 2963 | |
2964 | - if(!item[jc].is_order_yh && !item[jc].whsle_id){ | |
2964 | + //组合购和阶梯购是订单优惠是另外算的 | |
2965 | + if(!item[jc].is_order_yh && !item[jc].whsle_id && item[jc].prom_type!=7 && item[jc].prom_type!=10){ | |
2965 | 2966 | no_order_yh+=gd_price * item[jc].goods_num; |
2966 | 2967 | if(item[jc].quan_num) no_order_yh-=item[jc].quan_num; //券要把他补回去 |
2967 | 2968 | ... | ... |