From e3469899bea569fd685574a983c924121ba96e31 Mon Sep 17 00:00:00 2001 From: taiwan Date: Sun, 10 Apr 2022 19:00:18 +0800 Subject: [PATCH] 限购提示修改 --- pages/goods/goodsInfo/goodsInfo.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 9ae23e0..f564a33 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -1475,24 +1475,24 @@ Page({ } }) } else { - if (o.store_count <= 0) return { + if (o.store_count <= 0) { wx.showToast({ - title: '库存已为空!', - icon: 'none', + title: '库存已为空!', + icon: 'none' }); return false; // s.my_warnning("库存已为空!", 0, th); }; if (o.store_count < e.data.goodsInputNum) { wx.showToast({ - title: '库存不足!', + title: '库存不足!', icon: 'none', }); return false; // return s.my_warnning("库存不足!", 0, th); }; th.add_cart_next(e, t, a, o, newd); //加入购物车下一步 - } + }; return false; } -- libgit2 0.21.4