...
|
...
|
@@ -6,7 +6,6 @@ |
|
|
|
|
|
var $ = require('jquery'),
|
|
|
Swiper = require('yoho.iswiper'),
|
|
|
Hammer = require('yoho.hammer'),
|
|
|
lazyLoad = require('yoho.lazyload');
|
|
|
|
|
|
var swiper,
|
...
|
...
|
@@ -72,7 +71,6 @@ var $listNav = $('#list-nav'), |
|
|
}
|
|
|
},
|
|
|
$pre = $listNav.find('.active'), //纪录进入筛选前的active项,初始为选中项
|
|
|
navHammer,
|
|
|
searching;
|
|
|
|
|
|
require('../suspend-cart'); //悬浮购物车
|
...
|
...
|
@@ -295,8 +293,8 @@ $listNav.bind('contextmenu', function(e) { |
|
|
//3.筛选无active时点击展开筛选面板
|
|
|
//4.筛选有active时点击隐藏筛选面板并恢复点击筛选前active项的active状态
|
|
|
//5.当前active为筛选并且点击其他项时,隐藏筛选面板
|
|
|
navHammer = new Hammer($listNav[0]);
|
|
|
navHammer.on('tap pressup', function(e) {
|
|
|
// navHammer = new Hammer($listNav[0]);
|
|
|
$listNav.on('touchend touchcancel', function(e) {
|
|
|
var $this = $(e.target).closest('li'),
|
|
|
nav,
|
|
|
navType,
|
...
|
...
|
@@ -373,7 +371,7 @@ navHammer.on('tap pressup', function(e) { |
|
|
search();
|
|
|
}
|
|
|
}
|
|
|
e.srcEvent.stopPropagation();
|
|
|
e.stopPropagation();
|
|
|
});
|
|
|
|
|
|
$(window).scroll(function() {
|
...
|
...
|
|