|
@@ -22,9 +22,11 @@ lazyLoad({ |
|
@@ -22,9 +22,11 @@ lazyLoad({ |
22
|
try_again_css: 'good-failure'
|
22
|
try_again_css: 'good-failure'
|
23
|
});
|
23
|
});
|
24
|
|
24
|
|
25
|
-$('.shopping-cart-good .name').each(function() {
|
|
|
26
|
- this.mlellipsis(2);
|
|
|
27
|
-});
|
25
|
+setTimeout(function() {
|
|
|
26
|
+ $('.shopping-cart-good .name').each(function() {
|
|
|
27
|
+ this.mlellipsis(2);
|
|
|
28
|
+ });
|
|
|
29
|
+}, 0);
|
28
|
|
30
|
|
29
|
function GoodInfo(properties) {
|
31
|
function GoodInfo(properties) {
|
30
|
this.goods_type = properties.goods_type;
|
32
|
this.goods_type = properties.goods_type;
|
|
@@ -190,11 +192,13 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { |
|
@@ -190,11 +192,13 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { |
190
|
|
192
|
|
191
|
//全选按钮点击事件
|
193
|
//全选按钮点击事件
|
192
|
$selectAllBtn.on('touchend', function() {
|
194
|
$selectAllBtn.on('touchend', function() {
|
193
|
- if ($('.low-stocks').length > 0) {
|
195
|
+ var isSelect = $(this).hasClass('icon-cb-checked');
|
|
|
196
|
+
|
|
|
197
|
+ if (!isSelect && $('.low-stocks').length > 0) {
|
194
|
tip.show('所选商品中含有库存不足的商品');
|
198
|
tip.show('所选商品中含有库存不足的商品');
|
195
|
return false;
|
199
|
return false;
|
196
|
}
|
200
|
}
|
197
|
- bottomCheckBoxHandeler($(this).hasClass('icon-cb-checked'), $('#cartType').val(), didUpdateAllGoodsCheckStatus);
|
201
|
+ bottomCheckBoxHandeler(isSelect, $('#cartType').val(), didUpdateAllGoodsCheckStatus);
|
198
|
});
|
202
|
});
|
199
|
|
203
|
|
200
|
$('.down').on('touchend', function() {
|
204
|
$('.down').on('touchend', function() {
|