Authored by 梁志锋

购物车修改

@@ -192,13 +192,10 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { @@ -192,13 +192,10 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) {
192 $selectAllBtn.on('touchend', function() { 192 $selectAllBtn.on('touchend', function() {
193 var isSelect = $(this).hasClass('icon-cb-checked'); 193 var isSelect = $(this).hasClass('icon-cb-checked');
194 194
195 - if (!isSelect) {  
196 - if ($('.low-stocks').length > 0) { 195 + if (!isSelect && $('.low-stocks').length > 0) {
197 tip.show('所选商品中含有库存不足的商品'); 196 tip.show('所选商品中含有库存不足的商品');
198 return false; 197 return false;
199 } 198 }
200 - }  
201 -  
202 bottomCheckBoxHandeler(isSelect, $('#cartType').val(), didUpdateAllGoodsCheckStatus); 199 bottomCheckBoxHandeler(isSelect, $('#cartType').val(), didUpdateAllGoodsCheckStatus);
203 }); 200 });
204 201