...
|
...
|
@@ -299,6 +299,7 @@ var YohoListPage = { |
|
|
});
|
|
|
},
|
|
|
openBrandMulitChoose: function() {
|
|
|
console.log(1);
|
|
|
$('.yoho-product-list .mulit-choose').hide();
|
|
|
$('.input-radio', this.brandsDoc).check({
|
|
|
type: 'checkbox'
|
...
|
...
|
@@ -308,10 +309,8 @@ var YohoListPage = { |
|
|
},
|
|
|
closeBrandMulitChoose: function() {
|
|
|
$('.yoho-product-list .mulit-choose').show();
|
|
|
$('.yoho-product-list .brand-btns').addClass('hide');
|
|
|
|
|
|
$('.yoho-product-list .brand-list .input-radio').check('unCheckAll');
|
|
|
YohoListPage.mulitBrand = false;
|
|
|
$('.input-radio', this.brandsDoc).check({
|
|
|
type: 'radio'
|
|
|
});
|
...
|
...
|
@@ -320,6 +319,8 @@ var YohoListPage = { |
|
|
type: 'radio',
|
|
|
checked: true
|
|
|
});
|
|
|
YohoListPage.mulitBrand = false;
|
|
|
$('.yoho-product-list .brand-btns').hide();
|
|
|
},
|
|
|
|
|
|
openStyleMulit: function() {
|
...
|
...
|
@@ -342,7 +343,7 @@ var YohoListPage = { |
|
|
},
|
|
|
|
|
|
showBrandMulitBtn: function() {
|
|
|
$('.brand-btns', this.rootDoc).removeClass('hide');
|
|
|
$('.yoho-product-list .brand-btns').show();
|
|
|
if (YohoListPage.getSelectBrands().length > 0) {
|
|
|
$('.brand-btns .confirm', this.rootDoc).removeClass('disable');
|
|
|
} else {
|
...
|
...
|
@@ -373,7 +374,7 @@ var YohoListPage = { |
|
|
getSelectBrands: function() {
|
|
|
var brands = [];
|
|
|
|
|
|
$('.input-radio .checkbox', this.brandsDoc).each(function() {
|
|
|
$('.input-radio .iconfont', this.brandsDoc).each(function() {
|
|
|
if ($(this).hasClass('checked')) {
|
|
|
brands.push($(this).parent().data('value'));
|
|
|
}
|
...
|
...
|
|