...
|
...
|
@@ -20,8 +20,25 @@ var YohoListPage = { |
|
|
require('../../common/return-top');
|
|
|
require('../../common/header');
|
|
|
lazyload();
|
|
|
$('.nano').nanoScroller();
|
|
|
YohoListPage.initAccordion();
|
|
|
$('.nano').nanoScroller({disableResize: true});
|
|
|
$('.yoho-ui-accordion', this.rootDoc).each(function() {
|
|
|
var opts = {
|
|
|
collapsible: true,
|
|
|
heightStyle: 'content',
|
|
|
fillSpace: true,
|
|
|
active: 0
|
|
|
};
|
|
|
|
|
|
if ($(this).hasClass('no-active')) {
|
|
|
opts.active = false;
|
|
|
}
|
|
|
$(this).find('h3').each(function(index) {
|
|
|
if ($(this).hasClass('active')) {
|
|
|
opts.active = index;
|
|
|
}
|
|
|
});
|
|
|
$(this).accordion(opts);
|
|
|
});
|
|
|
|
|
|
$('.sex-body .input-radio', this.rootDoc).check({
|
|
|
type: 'radio',
|
...
|
...
|
@@ -116,29 +133,8 @@ var YohoListPage = { |
|
|
|
|
|
YohoListPage.eventBind();
|
|
|
},
|
|
|
initAccordion: function() {
|
|
|
$('.yoho-ui-accordion', this.rootDoc).each(function() {
|
|
|
var opts = {
|
|
|
collapsible: true,
|
|
|
heightStyle: 'content',
|
|
|
active: 0
|
|
|
};
|
|
|
|
|
|
if ($(this).hasClass('no-active')) {
|
|
|
opts.active = false;
|
|
|
}
|
|
|
$(this).find('h3').each(function(index) {
|
|
|
if ($(this).hasClass('active')) {
|
|
|
opts.active = index;
|
|
|
}
|
|
|
});
|
|
|
$(this).accordion(opts);
|
|
|
});
|
|
|
},
|
|
|
eventBind: function() {
|
|
|
$(window).resize(function() {
|
|
|
YohoListPage.initAccordion();
|
|
|
});
|
|
|
$('.mulit-choose', this.rootDoc).click(function() {
|
|
|
YohoListPage.openBrandMulitChoose();
|
|
|
});
|
...
|
...
|
|