...
|
...
|
@@ -5,9 +5,8 @@ |
|
|
* @date: 2015/10/19
|
|
|
*/
|
|
|
|
|
|
var $ = require('jquery');
|
|
|
|
|
|
// Hammer = require('yoho.hammer');
|
|
|
var $ = require('jquery'),
|
|
|
Hammer = require('yoho.hammer');
|
|
|
|
|
|
var $filter;
|
|
|
|
...
|
...
|
@@ -113,8 +112,7 @@ function subClassifyTapEvt($this) { |
|
|
|
|
|
//初始化筛选
|
|
|
function initFilter(opt) {
|
|
|
|
|
|
// var filterHammer;
|
|
|
var filterHammer;
|
|
|
|
|
|
//注册回调
|
|
|
fCbFn = opt.fCbFn;
|
...
|
...
|
@@ -127,8 +125,8 @@ function initFilter(opt) { |
|
|
|
|
|
$filter = $('.filter-mask');
|
|
|
|
|
|
// filterHammer = new Hammer($filter[0]);
|
|
|
$filter.on('touchend', function(e) {
|
|
|
filterHammer = new Hammer($filter[0]);
|
|
|
filterHammer.on('tap', function(e) {
|
|
|
var $this = $(e.target),
|
|
|
$cur;
|
|
|
|
...
|
...
|
@@ -147,7 +145,7 @@ function initFilter(opt) { |
|
|
//tap classify
|
|
|
$cur = $this.closest('.classify-item');
|
|
|
|
|
|
e.stopPropagation();
|
|
|
e.srcEvent.stopPropagation();
|
|
|
|
|
|
classifyTapEvt($cur);
|
|
|
}
|
...
|
...
|
@@ -183,4 +181,4 @@ exports.showFilter = showFilter; |
|
|
|
|
|
exports.hideFilter = hideFilter;
|
|
|
|
|
|
exports.resetFilter = resetFilter; |
|
|
\ No newline at end of file |
|
|
exports.resetFilter = resetFilter; |
...
|
...
|
|