diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 018b237..66d8223 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -2478,10 +2478,10 @@ Page({ // s.my_warnning('超出商品限购', 0, th); l_num = th.data.sele_g.viplimited - gd_buy_num; if (l_num < 0) l_num = 0; - // th.setData({ - // goodsInputNum: num - // }) - // return false; + th.setData({ + goodsInputNum: l_num + }) + return false; } } @@ -5433,7 +5433,8 @@ Page({ data: { store_id: os.stoid, user_id: user_id, - goods_id: gd.goods_id, isnew:1 + goods_id: gd.goods_id, isnew:1, + timetype:gd.viplimited_timetype }, success: function (t) { if (t.data.code == 0) { @@ -5461,7 +5462,7 @@ Page({ user_id: user_id, goods_id: gd.goods_id, prom_type: gd.prom_type, - prom_id: gd.prom_id, isnew:1 + prom_id: gd.prom_id, isnew:1, }, //-----获取----- success: function (tt) {