Authored by 梁志锋

逛返回点透

@@ -29,8 +29,6 @@ $('.nav-btn').on('touchstart', function(event) { @@ -29,8 +29,6 @@ $('.nav-btn').on('touchstart', function(event) {
29 $mobileWrap.addClass('menu-open'); 29 $mobileWrap.addClass('menu-open');
30 $overlay.show().css('opacity', 0.3); 30 $overlay.show().css('opacity', 0.3);
31 $sideNav.addClass('on'); 31 $sideNav.addClass('on');
32 - event.preventDefault();  
33 - event.stopPropagation();  
34 openSideNav = true; 32 openSideNav = true;
35 33
36 setTimeout(function() { 34 setTimeout(function() {
@@ -75,6 +73,11 @@ $sideNav.on('touchstart', 'li', function(e) { @@ -75,6 +73,11 @@ $sideNav.on('touchstart', 'li', function(e) {
75 //返回一级导航,收起二级导航 73 //返回一级导航,收起二级导航
76 $subNav.each(function() { 74 $subNav.each(function() {
77 $(this).find('li').eq(0).on('touchend', function() { 75 $(this).find('li').eq(0).on('touchend', function() {
  76 + $sideNav.css('pointer-events', 'none');
  77 + setTimeout(function() {
  78 + $sideNav.css('pointer-events', 'auto');
  79 + }, 400);
  80 +
78 $('.sub-nav').removeClass('show'); 81 $('.sub-nav').removeClass('show');
79 return false; 82 return false;
80 }); 83 });