Showing
1 changed file
with
8 additions
and
6 deletions
@@ -5,8 +5,9 @@ | @@ -5,8 +5,9 @@ | ||
5 | * @date: 2015/10/19 | 5 | * @date: 2015/10/19 |
6 | */ | 6 | */ |
7 | 7 | ||
8 | -var $ = require('jquery'), | ||
9 | - Hammer = require('yoho.hammer'); | 8 | +var $ = require('jquery'); |
9 | + | ||
10 | +// Hammer = require('yoho.hammer'); | ||
10 | 11 | ||
11 | var $filter; | 12 | var $filter; |
12 | 13 | ||
@@ -112,7 +113,8 @@ function subClassifyTapEvt($this) { | @@ -112,7 +113,8 @@ function subClassifyTapEvt($this) { | ||
112 | 113 | ||
113 | //初始化筛选 | 114 | //初始化筛选 |
114 | function initFilter(opt) { | 115 | function initFilter(opt) { |
115 | - var filterHammer; | 116 | + |
117 | + // var filterHammer; | ||
116 | 118 | ||
117 | //注册回调 | 119 | //注册回调 |
118 | fCbFn = opt.fCbFn; | 120 | fCbFn = opt.fCbFn; |
@@ -125,8 +127,8 @@ function initFilter(opt) { | @@ -125,8 +127,8 @@ function initFilter(opt) { | ||
125 | 127 | ||
126 | $filter = $('.filter-mask'); | 128 | $filter = $('.filter-mask'); |
127 | 129 | ||
128 | - filterHammer = new Hammer($filter[0]); | ||
129 | - filterHammer.on('tap', function(e) { | 130 | + // filterHammer = new Hammer($filter[0]); |
131 | + $filter.on('touchend', function(e) { | ||
130 | var $this = $(e.target), | 132 | var $this = $(e.target), |
131 | $cur; | 133 | $cur; |
132 | 134 | ||
@@ -145,7 +147,7 @@ function initFilter(opt) { | @@ -145,7 +147,7 @@ function initFilter(opt) { | ||
145 | //tap classify | 147 | //tap classify |
146 | $cur = $this.closest('.classify-item'); | 148 | $cur = $this.closest('.classify-item'); |
147 | 149 | ||
148 | - e.srcEvent.stopPropagation(); | 150 | + e.stopPropagation(); |
149 | 151 | ||
150 | classifyTapEvt($cur); | 152 | classifyTapEvt($cur); |
151 | } | 153 | } |
-
Please register or login to post a comment