Showing
1 changed file
with
9 additions
and
4 deletions
@@ -190,11 +190,16 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { | @@ -190,11 +190,16 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { | ||
190 | 190 | ||
191 | //全选按钮点击事件 | 191 | //全选按钮点击事件 |
192 | $selectAllBtn.on('touchend', function() { | 192 | $selectAllBtn.on('touchend', function() { |
193 | - if ($('.low-stocks').length > 0) { | ||
194 | - tip.show('所选商品中含有库存不足的商品'); | ||
195 | - return false; | 193 | + var isSelect = $(this).hasClass('icon-cb-checked'); |
194 | + | ||
195 | + if (!isSelect) { | ||
196 | + if ($('.low-stocks').length > 0) { | ||
197 | + tip.show('所选商品中含有库存不足的商品'); | ||
198 | + return false; | ||
199 | + } | ||
196 | } | 200 | } |
197 | - bottomCheckBoxHandeler($(this).hasClass('icon-cb-checked'), $('#cartType').val(), didUpdateAllGoodsCheckStatus); | 201 | + |
202 | + bottomCheckBoxHandeler(isSelect, $('#cartType').val(), didUpdateAllGoodsCheckStatus); | ||
198 | }); | 203 | }); |
199 | 204 | ||
200 | $('.down').on('touchend', function() { | 205 | $('.down').on('touchend', function() { |
-
Please register or login to post a comment