Authored by 梁志锋

逛返回点透

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