Authored by xuqi

筛选nav选中状态

@@ -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');