diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index fb86ab6..f8ae2b1 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -261,7 +261,7 @@ Page({ hiddenCS: true, is_retail_price: 0, - is_no_new:0 + is_no_new:1 }, //------初始化加载---------- @@ -1067,6 +1067,8 @@ Page({ }); } ee.data.g_buy_num = new Map(); + + //-- 增加相同的活动 -- ee.check_prom(gid, ee.data.data.prom_type, ee.data.data.prom_id); var th = ee; @@ -1631,7 +1633,7 @@ Page({ newd.prom_type = th.data.prom_type; newd.prom_id = th.data.prom_id; - if (o.store_count <= 0 && th.data.is_no_new) { + if (o.store_count <= 0 ) { wx.showToast({ title: '库存已为空!', icon: 'none', @@ -1639,7 +1641,7 @@ Page({ return false; //return s.my_warnning("库存已为空!", 0, th); }; - if (o.store_count < e.data.goodsInputNum && th.data.is_no_new) { + if (o.store_count < e.data.goodsInputNum ) { wx.showToast({ title: '库存不足!', icon: 'none', @@ -3205,6 +3207,7 @@ Page({ if (res.data.code == 0) { prom = res.data.data; prom.price = prom.user_price; + } }) } @@ -3962,9 +3965,9 @@ Page({ //--------检查是否活动,活动是否开始,或者是否结束------- async check_prom(gid, prom_type, prom_id) { + console.log('check_prom'); - var ee = this, - th = ee; + var ee = this,th = ee; var user_id = getApp().globalData.user_id; if (!user_id) user_id = 0; @@ -4024,7 +4027,6 @@ Page({ prom_end_time: prom_end_time, prom_start_time: prom_start_time, isshow: 1, - // prom_act: t.data.data }); ee.get_sto(); @@ -4157,6 +4159,8 @@ Page({ ee.data.sele_g.viplimited = n_item.viplimited; ee.data.data.viplimited = n_item.viplimited; + ee.data.sele_g.prom_type=1; + ee.data.sele_g.prom_id=n_item.id; var gb = 1; //-- 显示多规格 -- @@ -4387,9 +4391,6 @@ Page({ } }) - - - //----------查看阶梯团------------ if (t.data.data.ct_rylist != "null" && t.data.data.ct_rylist != "" && t.data.data.ct_rylist != null && t.data.data.ct_rylist != undefined) { t.data.data.ct_rylist = JSON.parse(t.data.data.ct_rylist); @@ -4852,7 +4853,7 @@ Page({ //不是普通购买的时候 if (th.data.is_normal != 1) { - if (o.store_count <= 0 && th.data.is_no_new) { + if (o.store_count <= 0 ) { wx.showToast({ title: '库存已为空!', icon: 'none',