Commit e3469899bea569fd685574a983c924121ba96e31
1 parent
2c96057b
限购提示修改
Showing
1 changed file
with
5 additions
and
5 deletions
pages/goods/goodsInfo/goodsInfo.js
@@ -1475,24 +1475,24 @@ Page({ | @@ -1475,24 +1475,24 @@ Page({ | ||
1475 | } | 1475 | } |
1476 | }) | 1476 | }) |
1477 | } else { | 1477 | } else { |
1478 | - if (o.store_count <= 0) return { | 1478 | + if (o.store_count <= 0) { |
1479 | wx.showToast({ | 1479 | wx.showToast({ |
1480 | - title: '库存已为空!', | ||
1481 | - icon: 'none', | 1480 | + title: '库存已为空!', |
1481 | + icon: 'none' | ||
1482 | }); | 1482 | }); |
1483 | return false; | 1483 | return false; |
1484 | // s.my_warnning("库存已为空!", 0, th); | 1484 | // s.my_warnning("库存已为空!", 0, th); |
1485 | }; | 1485 | }; |
1486 | if (o.store_count < e.data.goodsInputNum) { | 1486 | if (o.store_count < e.data.goodsInputNum) { |
1487 | wx.showToast({ | 1487 | wx.showToast({ |
1488 | - title: '库存不足!', | 1488 | + title: '库存不足!', |
1489 | icon: 'none', | 1489 | icon: 'none', |
1490 | }); | 1490 | }); |
1491 | return false; | 1491 | return false; |
1492 | // return s.my_warnning("库存不足!", 0, th); | 1492 | // return s.my_warnning("库存不足!", 0, th); |
1493 | }; | 1493 | }; |
1494 | th.add_cart_next(e, t, a, o, newd); //加入购物车下一步 | 1494 | th.add_cart_next(e, t, a, o, newd); //加入购物车下一步 |
1495 | - } | 1495 | + }; |
1496 | 1496 | ||
1497 | return false; | 1497 | return false; |
1498 | } | 1498 | } |