From 72ba7fd5f40a85c0355e47c31f1410e14b0369ad Mon Sep 17 00:00:00 2001 From: luo <17530855@qq.com> Date: Tue, 30 Jan 2024 11:18:39 +0800 Subject: [PATCH] 积分购超库存优化 --- pages/goods/goodsInfo/goodsInfo.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- libgit2 0.21.4