diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index dc61ce1..b24e93d 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -2689,12 +2689,15 @@ Page({ //判断积分购库存 if (!th.data.is_normal && th.data.prom_type == 4) { - var i_canbuy = th.data.prom_act.limitqty - th.data.prom_act.buy_num; + var i_canbuy = th.data.prom_act.limitqty - th.data.prom_act.buy_num; if (t > i_canbuy) { wx.showToast({ title: '超出商品活动库存', icon: 'none', }); + th.setData({ + goodsInputNum: i_canbuy + }) // s.my_warnning('超出商品活动库存', 0, th); return false; }