Showing
1 changed file
with
6 additions
and
1 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 | + var isSelect = $(this).hasClass('icon-cb-checked'); | ||
194 | + | ||
195 | + if (!isSelect) { | ||
193 | if ($('.low-stocks').length > 0) { | 196 | if ($('.low-stocks').length > 0) { |
194 | tip.show('所选商品中含有库存不足的商品'); | 197 | tip.show('所选商品中含有库存不足的商品'); |
195 | return false; | 198 | return false; |
196 | } | 199 | } |
197 | - bottomCheckBoxHandeler($(this).hasClass('icon-cb-checked'), $('#cartType').val(), didUpdateAllGoodsCheckStatus); | 200 | + } |
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