...
|
...
|
@@ -242,7 +242,7 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { |
|
|
}
|
|
|
|
|
|
goodInfo.goods_type = type;
|
|
|
goodInfo.selected = isSelected ? 'Y' : 'N';
|
|
|
goodInfo.selected = isSelected ? 'N' : 'Y';
|
|
|
|
|
|
$goods.each(function(idx, good) {
|
|
|
$good = $(good);
|
...
|
...
|
@@ -259,9 +259,8 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { |
|
|
|
|
|
|
|
|
//是否要全选
|
|
|
function willBeSelected() {
|
|
|
function willBeSelected($this) {
|
|
|
var isSelected = true;
|
|
|
var $this = $(this);
|
|
|
|
|
|
if ($this.hasClass('icon-cb-checked')) {
|
|
|
isSelected = true;
|
...
|
...
|
@@ -274,7 +273,8 @@ function willBeSelected() { |
|
|
|
|
|
//全选按钮点击事件
|
|
|
$selectAllBtn.on('touchend', function() {
|
|
|
bottomCheckBoxHandeler(willBeSelected(), getCartType(), didUpdateAllGoodsCheckStatus);
|
|
|
var $this = $(this);
|
|
|
bottomCheckBoxHandeler(willBeSelected($this), getCartType(), didUpdateAllGoodsCheckStatus);
|
|
|
});
|
|
|
|
|
|
$('.down').on('touchend', function() {
|
...
|
...
|
|