...
|
...
|
@@ -33,6 +33,11 @@ var moreBrandLoaded = false, |
|
|
|
|
|
var $brandMoreTxt, $brandMoreIcon;
|
|
|
|
|
|
var $sizeMore = $('#size-more'),
|
|
|
$sizeMoreTxt = $sizeMore.children('em'),
|
|
|
$sizeMoreIcon = $sizeMore.children('.iconfont'),
|
|
|
$sizeContent = $sizeMore.siblings('.attr-content');
|
|
|
|
|
|
// 价格相关变量
|
|
|
var $udPrice = $('.ud-price-range'),
|
|
|
interReg = /^\d+$/,
|
...
|
...
|
@@ -444,6 +449,22 @@ $seniorAttrWrap.on('mouseenter', '.attr', function() { |
|
|
}, 100);
|
|
|
});
|
|
|
|
|
|
$sizeMore.click(function() {
|
|
|
var $this = $(this),
|
|
|
$wrap = $this.siblings('.attr-content');
|
|
|
|
|
|
if ($wrap.hasClass('more')) {
|
|
|
$sizeMoreTxt.text('更多');
|
|
|
$sizeMoreIcon.html(moreUnicode.down);
|
|
|
$wrap.scrollTop(0);
|
|
|
} else {
|
|
|
$sizeMoreTxt.text('收起');
|
|
|
$sizeMoreIcon.html(moreUnicode.up);
|
|
|
}
|
|
|
|
|
|
$wrap.toggleClass('more');
|
|
|
});
|
|
|
|
|
|
// 【高级选项】多选
|
|
|
$('.senior-sub').on('click', '.multi-select', function() {
|
|
|
$(this).closest('.senior-sub').addClass('multi');
|
...
|
...
|
@@ -504,3 +525,12 @@ $('.senior-sub').on('click', '.multi-select', function() { |
|
|
|
|
|
}());
|
|
|
|
|
|
(function setSizeMoreBtnDisplay() {
|
|
|
var bh = $sizeContent.height(),
|
|
|
ch = $sizeContent.children().height();
|
|
|
|
|
|
if (ch > bh) {
|
|
|
$sizeMore.removeClass('hide');
|
|
|
}
|
|
|
}());
|
|
|
|
...
|
...
|
|