...
|
...
|
@@ -14,7 +14,6 @@ var dialog = require('../me/dialog'), |
|
|
orderInfo = require('./order-info').orderInfo;
|
|
|
|
|
|
var $selectAllBtn = $('.balance .checkbox'),
|
|
|
cartType = $('#cartType').val(),
|
|
|
requesting = false;
|
|
|
|
|
|
ellipsis.init();
|
...
|
...
|
@@ -48,7 +47,7 @@ $('.cart-goods').on('touchstart', '.checkbox', function() { |
|
|
return false;
|
|
|
}
|
|
|
|
|
|
goodInfo.goods_type = cartType;
|
|
|
goodInfo.goods_type = $('#cartType').val();
|
|
|
goodInfo.selected = $this.hasClass('icon-cb-checked') ? 'N' : 'Y';
|
|
|
goodInfo.product_sku = id;
|
|
|
goodInfo.buy_number = $good.find('.count').eq(0).text().trim().replace('×', '');
|
...
|
...
|
@@ -67,7 +66,7 @@ $('.cart-goods').on('touchstart', '.checkbox', function() { |
|
|
} else {
|
|
|
$this.removeClass('icon-checkbox').addClass('icon-cb-checked');
|
|
|
}
|
|
|
window.history.go(0);
|
|
|
window.location.href = '/cart/index/index?cartType=' + $('#cartType').val();
|
|
|
} else if (data.code === 400) {
|
|
|
tip.show('网络异常');
|
|
|
}
|
...
|
...
|
@@ -191,7 +190,7 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { |
|
|
|
|
|
//全选按钮点击事件
|
|
|
$selectAllBtn.on('touchend', function() {
|
|
|
bottomCheckBoxHandeler($(this).hasClass('icon-cb-checked'), cartType, didUpdateAllGoodsCheckStatus);
|
|
|
bottomCheckBoxHandeler($(this).hasClass('icon-cb-checked'), $('#cartType').val(), didUpdateAllGoodsCheckStatus);
|
|
|
});
|
|
|
|
|
|
$('.down').on('touchend', function() {
|
...
|
...
|
|