diff --git a/pages/cart/cart2/cart2.js b/pages/cart/cart2/cart2.js index d2f890c..59c25d0 100644 --- a/pages/cart/cart2/cart2.js +++ b/pages/cart/cart2/cart2.js @@ -364,8 +364,7 @@ Page({ } //-- 如果是等级会员注册返回 -- - if(is_card_back){ - + if(is_card_back){ // 拼团,搭配购不计算,赠品也不计算 if( item['prom_type']!=5 && item['prom_type']!=6 && !item.is_gift && !item['is_collocation'] && item.goods_price>item[th.data.card_name] ){ item.goods_price=item[th.data.card_name]; @@ -376,7 +375,7 @@ Page({ if(item[th.data.card_name]>0 && item['prom_type']!=5 && item['prom_type']!=6 && !th.data.userinfo.card_field && !item.is_gift && !item['is_collocation'] && item.goods_price>item[th.data.card_name] ){ item.cut_price= item.goods_price-item[th.data.card_name]; - carr[i].cut_price=item.goods_price-item[th.data.card_name]; + carr[i].cut_price=(item.goods_price-item[th.data.card_name])*item.goods_num; } } @@ -503,7 +502,7 @@ Page({ //--- 商家等级卡开通的情况下, 会员不是等级会员的情况, 商品有设置等级卡价格,同时等级卡价格小于商品的价格 //-- 搭配购的商品也可以单独购买,所以此时搭配购的商品要进行计算优惠 -- if(!gg.collocation_goods && gd['prom_type']!=6 && th.data.card_name && gd[th.data.card_name]>0 && gg.goods_price>gd[th.data.card_name] && !th.data.userinfo.card_field){ - var cut_p= gg.goods_price-gd[th.data.card_name]; + var cut_p= (gg.goods_price-gd[th.data.card_name])*gg.goods_num; th.setData({card_cut_price:cut_p}); } } @@ -526,7 +525,7 @@ Page({ t.data.data.prom_id = 0; t.data.data.prom_type = 0; - + //如果立即购买那边过来,就要读取接口,查看活动的优惠内容 if(gg.prom_type==3){ t.data.data.prom_id = gg.prom_id ; @@ -1617,7 +1616,10 @@ Page({ if(gg.room_id && gg.room_id>0){ goods.room_id=gg.room_id; } - + + //积分购,先要带is_integral_normal=1 + if(gg.is_integral_normal) goods.is_integral_normal=1; + //如果不立即购买或者秒杀,如果是线下库存购买的时候 if(goods.prom_type!=1 && goods.prom_type!=6 && th.data.sales_rules==2){ var isok=1; diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 6838ec4..221965b 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -1004,7 +1004,8 @@ Page({ goods_name: o.goods_name, goods_sn: o.goods_sn, sku: o.sku, - }; + }; + if(th.data.is_integral_normal) newd.is_integral_normal=1; //---是不是从收藏夹出来的--- if(th.data.c_guide_id){ @@ -2242,6 +2243,9 @@ Page({ }); return false; } + if(prom_type==4){ + th.setData({is_integral_normal:1}); + } //if (prom_type != 3 && prom_type!=0){ //---判断秒杀---- if (prom_type == 1) {