|
@@ -242,7 +242,7 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { |
|
@@ -242,7 +242,7 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { |
242
|
}
|
242
|
}
|
243
|
|
243
|
|
244
|
goodInfo.goods_type = type;
|
244
|
goodInfo.goods_type = type;
|
245
|
- goodInfo.selected = isSelected ? 'Y' : 'N';
|
245
|
+ goodInfo.selected = isSelected ? 'N' : 'Y';
|
246
|
|
246
|
|
247
|
$goods.each(function(idx, good) {
|
247
|
$goods.each(function(idx, good) {
|
248
|
$good = $(good);
|
248
|
$good = $(good);
|
|
@@ -259,9 +259,8 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { |
|
@@ -259,9 +259,8 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { |
259
|
|
259
|
|
260
|
|
260
|
|
261
|
//是否要全选
|
261
|
//是否要全选
|
262
|
-function willBeSelected() {
|
262
|
+function willBeSelected($this) {
|
263
|
var isSelected = true;
|
263
|
var isSelected = true;
|
264
|
- var $this = $(this);
|
|
|
265
|
|
264
|
|
266
|
if ($this.hasClass('icon-cb-checked')) {
|
265
|
if ($this.hasClass('icon-cb-checked')) {
|
267
|
isSelected = true;
|
266
|
isSelected = true;
|
|
@@ -274,7 +273,8 @@ function willBeSelected() { |
|
@@ -274,7 +273,8 @@ function willBeSelected() { |
274
|
|
273
|
|
275
|
//全选按钮点击事件
|
274
|
//全选按钮点击事件
|
276
|
$selectAllBtn.on('touchend', function() {
|
275
|
$selectAllBtn.on('touchend', function() {
|
277
|
- bottomCheckBoxHandeler(willBeSelected(), getCartType(), didUpdateAllGoodsCheckStatus);
|
276
|
+ var $this = $(this);
|
|
|
277
|
+ bottomCheckBoxHandeler(willBeSelected($this), getCartType(), didUpdateAllGoodsCheckStatus);
|
278
|
});
|
278
|
});
|
279
|
|
279
|
|
280
|
$('.down').on('touchend', function() {
|
280
|
$('.down').on('touchend', function() {
|