Commit 95d640b5fefc329c54185450f638cd194aac219d

Authored by yvan.ni
1 parent 4c070859

赠品不参与计算

packageE/pages/cart/cart2/cart2.js
@@ -1999,6 +1999,7 @@ Page({ @@ -1999,6 +1999,7 @@ Page({
1999 async buy_pro_group(item1, is_state) { 1999 async buy_pro_group(item1, is_state) {
2000 //-- 代发商品不参与任何活动 -- 2000 //-- 代发商品不参与任何活动 --
2001 if (item1.whsle_id) return false; 2001 if (item1.whsle_id) return false;
  2002 + if (item1.is_gift) return false;
2002 //-- 购物车的秒杀和团购不计算 -- 2003 //-- 购物车的秒杀和团购不计算 --
2003 var p_type=parseInt(item1.prom_type); 2004 var p_type=parseInt(item1.prom_type);
2004 if([1,2].indexOf(p_type)>-1) return false; 2005 if([1,2].indexOf(p_type)>-1) return false;
pages/cart/cart/cart.js
@@ -67,6 +67,7 @@ Page({ @@ -67,6 +67,7 @@ Page({
67 async buy_pro_group(item1, is_state) { 67 async buy_pro_group(item1, is_state) {
68 //-- 代发商品不参与任何活动 -- 68 //-- 代发商品不参与任何活动 --
69 if (item1.whsle_id) return false; 69 if (item1.whsle_id) return false;
  70 + if (item1.is_gift) return false;
70 71
71 var th = this; 72 var th = this;
72 var req_d = { 73 var req_d = {