Showing
1 changed file
with
8 additions
and
7 deletions
@@ -31,16 +31,17 @@ exports.init = function() { | @@ -31,16 +31,17 @@ exports.init = function() { | ||
31 | */ | 31 | */ |
32 | function touchEvt(e) { | 32 | function touchEvt(e) { |
33 | var $cur = $(e.currentTarget); | 33 | var $cur = $(e.currentTarget); |
34 | + | ||
35 | + if ($cur.hasClass('focus')) { | ||
36 | + return; | ||
37 | + } | ||
38 | + | ||
39 | + $navItem.removeClass('focus'); | ||
40 | + $cur.addClass('focus'); | ||
41 | + | ||
34 | if ($cur.hasClass('screen-nav')) { | 42 | if ($cur.hasClass('screen-nav')) { |
35 | //筛选 | 43 | //筛选 |
36 | } else { | 44 | } else { |
37 | - if ($cur.hasClass('focus')) { | ||
38 | - return; | ||
39 | - } | ||
40 | - | ||
41 | - $navItem.removeClass('focus'); | ||
42 | - $cur.addClass('focus'); | ||
43 | - | ||
44 | $goodList.addClass('hide'); | 45 | $goodList.addClass('hide'); |
45 | if ($cur.hasClass('new-patterns-nav')) { | 46 | if ($cur.hasClass('new-patterns-nav')) { |
46 | $npc.removeClass('hide'); | 47 | $npc.removeClass('hide'); |
-
Please register or login to post a comment