Authored by uedxwg

hotfix

... ... @@ -4,8 +4,7 @@
* @date: 2015/10/14
*/
var $ = require('jquery'),
Hammer = require('yoho.hammer');
var $ = require('jquery');
var $nav = $('.category-nav'),
$categoryContainer = $('.category-container'),
... ... @@ -39,8 +38,7 @@ $('.category-container').bind('contextmenu', function(e) {
return false;
});
navHammer = new Hammer($nav[0]);
navHammer.on('tap pressup', function(e) {
$nav.on('touchend touchcancel', function(e) {
var $this = $(e.target).closest('li'),
index = $this.index();
... ...
... ... @@ -5,7 +5,6 @@
*/
var $ = require('jquery'),
Hammer = require('yoho.hammer'),
Swiper = require('yoho.iswiper');
var info = require('./info'),
... ... @@ -59,8 +58,7 @@ info.initInfosEvt($infoList);
$nav.bind('contextmenu', function(e) {
return false;
});
navHammer = new Hammer($nav[0]);
navHammer.on('tap pressup', function(e) {
$nav.on('touchend touchcancel', function(e) {
var $this = $(e.target).closest('.guang-nav-item'),
$content,
... ...
... ... @@ -5,7 +5,6 @@
*/
var $ = require('jquery'),
Hammer = require('yoho.hammer'),
lazyLoad = require('yoho.lazyload'),
Swiper = require('yoho.iswiper');
... ... @@ -23,8 +22,7 @@ mySwiper = new Swiper('.swiper-container', {
$('#nav-tab').bind('contextmenu', function(e) {
return false;
});
navHammer = new Hammer(document.getElementById('nav-tab'));
navHammer.on('tap pressup', function(e) {
$('#nav-tab').on('touchend touchcancel', function(e) {
var $this = $(e.target).closest('li');
if ($this.hasClass('focus')) {
... ...
... ... @@ -285,8 +285,8 @@ writeSearch.bindWirteLocal($('#search-form'));
$listNav.bind('contextmenu', function(e) {
return false;
});
navHammer = new Hammer($listNav[0]);
navHammer.on('tap pressup', function(e) {
$listNav.on('touchend touchcancel', function(e) {
var $this = $(e.target).closest('li'),
nav,
navType,
... ...
... ... @@ -266,8 +266,8 @@ lazyLoad($('.lazy'));
$listNav.bind('contextmenu', function(e) {
return false;
});
navHammer = new Hammer($listNav[0]);
navHammer.on('tap pressup', function(e) {
$listNav.on('touchend touchcancel', function(e) {
var $this = $(e.target).closest('li'),
nav,
navType,
... ...
... ... @@ -6,7 +6,6 @@
var $ = require('jquery'),
Swiper = require('yoho.iswiper'),
Hammer = require('yoho.hammer'),
lazyLoad = require('yoho.lazyload');
var swiper,
... ... @@ -295,8 +294,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 +372,7 @@ navHammer.on('tap pressup', function(e) {
search();
}
}
e.srcEvent.stopPropagation();
e.stopPropagation();
});
$(window).scroll(function() {
... ...