Authored by 梁志锋

gulp ge文件修改

@@ -1712,8 +1712,6 @@ $('.nav-btn').on('touchstart', function(event) { @@ -1712,8 +1712,6 @@ $('.nav-btn').on('touchstart', function(event) {
1712 $mobileWrap.addClass('menu-open'); 1712 $mobileWrap.addClass('menu-open');
1713 $overlay.show().css('opacity', 0.3); 1713 $overlay.show().css('opacity', 0.3);
1714 $sideNav.addClass('on'); 1714 $sideNav.addClass('on');
1715 - event.preventDefault();  
1716 - event.stopPropagation();  
1717 openSideNav = true; 1715 openSideNav = true;
1718 1716
1719 setTimeout(function() { 1717 setTimeout(function() {
@@ -1743,7 +1741,7 @@ $sideNav.on('touchmove', function(e) { @@ -1743,7 +1741,7 @@ $sideNav.on('touchmove', function(e) {
1743 }); 1741 });
1744 1742
1745 //点击一级导航,弹出二级导航 1743 //点击一级导航,弹出二级导航
1746 -$sideNav.on('touchend', 'li', function(e) { 1744 +$sideNav.on('touchstart', 'li', function(e) {
1747 if ($(this).find('.sub-nav').size() > 0) { 1745 if ($(this).find('.sub-nav').size() > 0) {
1748 $('.sub-nav').removeClass('show'); 1746 $('.sub-nav').removeClass('show');
1749 $(this).find('.sub-nav').addClass('show'); 1747 $(this).find('.sub-nav').addClass('show');
@@ -1758,6 +1756,11 @@ $sideNav.on('touchend', 'li', function(e) { @@ -1758,6 +1756,11 @@ $sideNav.on('touchend', 'li', function(e) {
1758 //返回一级导航,收起二级导航 1756 //返回一级导航,收起二级导航
1759 $subNav.each(function() { 1757 $subNav.each(function() {
1760 $(this).find('li').eq(0).on('touchend', function() { 1758 $(this).find('li').eq(0).on('touchend', function() {
  1759 + $sideNav.css('pointer-events', 'none');
  1760 + setTimeout(function() {
  1761 + $sideNav.css('pointer-events', 'auto');
  1762 + }, 400);
  1763 +
1761 $('.sub-nav').removeClass('show'); 1764 $('.sub-nav').removeClass('show');
1762 return false; 1765 return false;
1763 }); 1766 });
@@ -1770,6 +1773,7 @@ $subNav.each(function() { @@ -1770,6 +1773,7 @@ $subNav.each(function() {
1770 // 侧边栏点击背景色变化 1773 // 侧边栏点击背景色变化
1771 function highlight($elem) { 1774 function highlight($elem) {
1772 $elem.find('li').on('touchstart', function() { 1775 $elem.find('li').on('touchstart', function() {
  1776 + $elem.find('.highlight').removeClass('highlight');
1773 $(this).addClass('highlight'); 1777 $(this).addClass('highlight');
1774 }).on('touchend touchcancel', function() { 1778 }).on('touchend touchcancel', function() {
1775 $(this).removeClass('highlight'); 1779 $(this).removeClass('highlight');
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.