Authored by 梁志锋

gulp ge文件修改

... ... @@ -1712,8 +1712,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() {
... ... @@ -1743,7 +1741,7 @@ $sideNav.on('touchmove', function(e) {
});
//点击一级导航,弹出二级导航
$sideNav.on('touchend', 'li', function(e) {
$sideNav.on('touchstart', 'li', function(e) {
if ($(this).find('.sub-nav').size() > 0) {
$('.sub-nav').removeClass('show');
$(this).find('.sub-nav').addClass('show');
... ... @@ -1758,6 +1756,11 @@ $sideNav.on('touchend', '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;
});
... ... @@ -1770,6 +1773,7 @@ $subNav.each(function() {
// 侧边栏点击背景色变化
function highlight($elem) {
$elem.find('li').on('touchstart', function() {
$elem.find('.highlight').removeClass('highlight');
$(this).addClass('highlight');
}).on('touchend touchcancel', function() {
$(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.