Authored by xuqi

filter sort active status

... ... @@ -91,7 +91,11 @@ $('.filter-box').on('selectstart', '.attr, .brands-index span', function() {
//【分类】
$('.sort-pre').on('click', 'li', function() {
var index = $(this).index();
var $this = $(this),
index = $this.index();
$this.siblings('.active').removeClass('active');
$this.addClass('active');
$sortSub.children(':not(.hide)').addClass('hide');
$sortSub.children(':eq(' + index + ')').removeClass('hide');
... ...
... ... @@ -73,6 +73,10 @@
}
}
.sort-pre .active .attr {
border: 1px solid #000;
}
.sort-sub-wrap {
width: 100%;
... ...