...
|
...
|
@@ -24,6 +24,9 @@ var start = 0, |
|
|
openSideNav = false,
|
|
|
isen = true;
|
|
|
|
|
|
var attachFastClick = require('./fastclick');
|
|
|
attachFastClick(document.body);
|
|
|
|
|
|
lazyLoad($('img.lazy'));
|
|
|
noticeScroll('.notice', $('.notice').data('time') * 1000);
|
|
|
|
...
|
...
|
@@ -38,8 +41,6 @@ $('.nav-btn').on('touchstart', function() { |
|
|
$sideNav.css('pointer-events', 'auto');
|
|
|
}, 400);
|
|
|
|
|
|
//innerScroll.disableScroll($sideNav);
|
|
|
|
|
|
return false;
|
|
|
});
|
|
|
|
...
|
...
|
@@ -78,14 +79,9 @@ $sideNav.on('touchend', 'li', function(e) { |
|
|
|
|
|
// 返回一级导航,收起二级导航
|
|
|
$subNav.each(function() {
|
|
|
$(this).find('li').eq(0).on('touchstart', function() {
|
|
|
|
|
|
$sideNav.css('pointer-events', 'none');
|
|
|
setTimeout(function() {
|
|
|
$('.sub-nav').removeClass('show');
|
|
|
$sideNav.css('pointer-events', 'auto');
|
|
|
}, 400);
|
|
|
|
|
|
$(this).find('li').eq(0).on('click', function() {
|
|
|
$('.sub-nav').removeClass('show');
|
|
|
return false;
|
|
|
});
|
|
|
}).on('touchstart', function(e) {
|
|
|
if (e.currentTarget !== e.target) {
|
...
|
...
|
|