Authored by 毕凯

Merge branch 'hotfix/search' into 'master'

筛选切换问题



See merge request !24
... ... @@ -474,6 +474,9 @@ function search(opt, filtering) {
if (filtering) {
$fsgc.addClass('hide');
if (params.start) {
delete setting.start;
}
}
$.ajax({
... ... @@ -816,6 +819,8 @@ $newList.on('touchstart', 'li', function(e) {
$firstLiDom = $listNav.find('li.first-li-more');
e.preventDefault();
if ($(this).hasClass('new')) {
navType = 'new';
} else if ($(this).hasClass('default')) {
... ... @@ -832,6 +837,14 @@ $newList.on('touchstart', 'li', function(e) {
$(document).trigger('shouldSendBpData', [bpIdData]);
newListHide();
if (navType !== 'default') {
$fsgc.addClass('hide');
}
if ($(this).hasClass('active')) {
return;
}
// 切换container显示
$goodsContainer.children('.container:not(.hide)').addClass('hide');
... ...