Commit 8b2816cbad0c6251b8f67db4757c9f45290d9145
合并解决冲突
Showing
1 changed file
with
8 additions
and
6 deletions
packageE/pages/cart/cart2/cart2.js
... | ... | @@ -1437,17 +1437,17 @@ 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=>{ |
1444 | 1444 | if(res.data.code==0){ |
1445 | 1445 | console.log(res.data.data,"111"); |
1446 | 1446 | //组合促销有另外一个字段名is_orderyh,在控制订单促销的叠加 |
1447 | - if(item1.prom_type!=7){ | |
1447 | + | |
1448 | + if(item1.prom_type!=7 && item1.prom_type!=10) { | |
1448 | 1449 | item1.is_order_yh=res.data.data.is_order_yh; |
1449 | - } | |
1450 | - else item1.is_order_yh=0; | |
1450 | + }else item1.is_order_yh=0; | |
1451 | 1451 | |
1452 | 1452 | item1.is_post_temp=res.data.data.is_post_temp; |
1453 | 1453 | } |
... | ... | @@ -2956,12 +2956,14 @@ 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 && item[jc].prom_type!=7){ | |
2964 | + | |
2965 | + //组合购和阶梯购是订单优惠是另外算的 | |
2966 | + if(!item[jc].is_order_yh && !item[jc].whsle_id && item[jc].prom_type!=7 && item[jc].prom_type!=10){ | |
2965 | 2967 | no_order_yh+=gd_price * item[jc].goods_num; |
2966 | 2968 | if(item[jc].quan_num) no_order_yh-=item[jc].quan_num; //券要把他补回去 |
2967 | 2969 | ... | ... |