fix nav active have not switched after filter sub menu click
Showing
1 changed file
with
4 additions
and
0 deletions
@@ -78,6 +78,10 @@ function search(opt) { | @@ -78,6 +78,10 @@ function search(opt) { | ||
78 | } | 78 | } |
79 | } | 79 | } |
80 | 80 | ||
81 | + //处理active状态 | ||
82 | + $listNav.children('.active').removeClass('active'); | ||
83 | + $pre.addClass('active'); | ||
84 | + | ||
81 | switch (opt.type) { | 85 | switch (opt.type) { |
82 | case 'gender': | 86 | case 'gender': |
83 | ext = { | 87 | ext = { |
-
Please register or login to post a comment