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; }