|
@@ -299,6 +299,7 @@ var YohoListPage = { |
|
@@ -299,6 +299,7 @@ var YohoListPage = { |
299
|
});
|
299
|
});
|
300
|
},
|
300
|
},
|
301
|
openBrandMulitChoose: function() {
|
301
|
openBrandMulitChoose: function() {
|
|
|
302
|
+ console.log(1);
|
302
|
$('.yoho-product-list .mulit-choose').hide();
|
303
|
$('.yoho-product-list .mulit-choose').hide();
|
303
|
$('.input-radio', this.brandsDoc).check({
|
304
|
$('.input-radio', this.brandsDoc).check({
|
304
|
type: 'checkbox'
|
305
|
type: 'checkbox'
|
|
@@ -308,10 +309,8 @@ var YohoListPage = { |
|
@@ -308,10 +309,8 @@ var YohoListPage = { |
308
|
},
|
309
|
},
|
309
|
closeBrandMulitChoose: function() {
|
310
|
closeBrandMulitChoose: function() {
|
310
|
$('.yoho-product-list .mulit-choose').show();
|
311
|
$('.yoho-product-list .mulit-choose').show();
|
311
|
- $('.yoho-product-list .brand-btns').addClass('hide');
|
|
|
312
|
|
312
|
|
313
|
$('.yoho-product-list .brand-list .input-radio').check('unCheckAll');
|
313
|
$('.yoho-product-list .brand-list .input-radio').check('unCheckAll');
|
314
|
- YohoListPage.mulitBrand = false;
|
|
|
315
|
$('.input-radio', this.brandsDoc).check({
|
314
|
$('.input-radio', this.brandsDoc).check({
|
316
|
type: 'radio'
|
315
|
type: 'radio'
|
317
|
});
|
316
|
});
|
|
@@ -320,6 +319,8 @@ var YohoListPage = { |
|
@@ -320,6 +319,8 @@ var YohoListPage = { |
320
|
type: 'radio',
|
319
|
type: 'radio',
|
321
|
checked: true
|
320
|
checked: true
|
322
|
});
|
321
|
});
|
|
|
322
|
+ YohoListPage.mulitBrand = false;
|
|
|
323
|
+ $('.yoho-product-list .brand-btns').hide();
|
323
|
},
|
324
|
},
|
324
|
|
325
|
|
325
|
openStyleMulit: function() {
|
326
|
openStyleMulit: function() {
|
|
@@ -342,7 +343,7 @@ var YohoListPage = { |
|
@@ -342,7 +343,7 @@ var YohoListPage = { |
342
|
},
|
343
|
},
|
343
|
|
344
|
|
344
|
showBrandMulitBtn: function() {
|
345
|
showBrandMulitBtn: function() {
|
345
|
- $('.brand-btns', this.rootDoc).removeClass('hide');
|
346
|
+ $('.yoho-product-list .brand-btns').show();
|
346
|
if (YohoListPage.getSelectBrands().length > 0) {
|
347
|
if (YohoListPage.getSelectBrands().length > 0) {
|
347
|
$('.brand-btns .confirm', this.rootDoc).removeClass('disable');
|
348
|
$('.brand-btns .confirm', this.rootDoc).removeClass('disable');
|
348
|
} else {
|
349
|
} else {
|
|
@@ -373,7 +374,7 @@ var YohoListPage = { |
|
@@ -373,7 +374,7 @@ var YohoListPage = { |
373
|
getSelectBrands: function() {
|
374
|
getSelectBrands: function() {
|
374
|
var brands = [];
|
375
|
var brands = [];
|
375
|
|
376
|
|
376
|
- $('.input-radio .checkbox', this.brandsDoc).each(function() {
|
377
|
+ $('.input-radio .iconfont', this.brandsDoc).each(function() {
|
377
|
if ($(this).hasClass('checked')) {
|
378
|
if ($(this).hasClass('checked')) {
|
378
|
brands.push($(this).parent().data('value'));
|
379
|
brands.push($(this).parent().data('value'));
|
379
|
}
|
380
|
}
|