...
|
...
|
@@ -8740,6 +8740,9 @@ if ('advance' === cartType) { |
|
|
$cartContent.toggleClass('hide');
|
|
|
$('#common-cart-nav').removeClass('active');
|
|
|
$('#presell-cart-nav').addClass('active');
|
|
|
$('.shopping-cart-good .name').each(function() {
|
|
|
this.mlellipsis(2);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if ($('.cart-nav').length > 0) {
|
...
|
...
|
@@ -8751,6 +8754,10 @@ if ($('.cart-nav').length > 0) { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
$('.shopping-cart-good .name').each(function() {
|
|
|
this.mlellipsis(2);
|
|
|
});
|
|
|
|
|
|
if (cartType === 'ordinary') {
|
|
|
cartType = 'advance';
|
|
|
$('#cartType').val('advance');
|
...
|
...
|
@@ -8859,9 +8866,11 @@ lazyLoad({ |
|
|
try_again_css: 'good-failure'
|
|
|
});
|
|
|
|
|
|
$('.shopping-cart-good .name').each(function() {
|
|
|
this.mlellipsis(2);
|
|
|
});
|
|
|
setTimeout(function() {
|
|
|
$('.shopping-cart-good .name').each(function() {
|
|
|
this.mlellipsis(2);
|
|
|
});
|
|
|
}, 0);
|
|
|
|
|
|
function GoodInfo(properties) {
|
|
|
this.goods_type = properties.goods_type;
|
...
|
...
|
@@ -9027,11 +9036,13 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { |
|
|
|
|
|
//全选按钮点击事件
|
|
|
$selectAllBtn.on('touchend', function() {
|
|
|
if ($('.low-stocks').length > 0) {
|
|
|
var isSelect = $(this).hasClass('icon-cb-checked');
|
|
|
|
|
|
if (!isSelect && $('.low-stocks').length > 0) {
|
|
|
tip.show('所选商品中含有库存不足的商品');
|
|
|
return false;
|
|
|
}
|
|
|
bottomCheckBoxHandeler($(this).hasClass('icon-cb-checked'), $('#cartType').val(), didUpdateAllGoodsCheckStatus);
|
|
|
bottomCheckBoxHandeler(isSelect, $('#cartType').val(), didUpdateAllGoodsCheckStatus);
|
|
|
});
|
|
|
|
|
|
$('.down').on('touchend', function() {
|
...
|
...
|
|