Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -240,10 +240,11 @@ $listNav.delegate('li', 'touchstart', function() { | @@ -240,10 +240,11 @@ $listNav.delegate('li', 'touchstart', function() { | ||
240 | 240 | ||
241 | // 价格/折扣切换排序状态 | 241 | // 价格/折扣切换排序状态 |
242 | $this.find('.icon > .iconfont').toggleClass('cur'); | 242 | $this.find('.icon > .iconfont').toggleClass('cur'); |
243 | + $pre = $active; //更新pre为当前项 | ||
243 | } | 244 | } |
244 | } else { | 245 | } else { |
245 | - | ||
246 | $active = $this.siblings('.active'); | 246 | $active = $this.siblings('.active'); |
247 | + | ||
247 | if ($active.hasClass('filter')) { | 248 | if ($active.hasClass('filter')) { |
248 | $pre = $this; //$pre为除筛选导航的其他导航项,若当前active的为筛选,则把$pre置为当前点击项 | 249 | $pre = $this; //$pre为除筛选导航的其他导航项,若当前active的为筛选,则把$pre置为当前点击项 |
249 | 250 |
-
Please register or login to post a comment