...
|
...
|
@@ -7,7 +7,7 @@ |
|
|
|
|
|
var $ = require('yoho.zepto');
|
|
|
|
|
|
var $filter = $('.filter-mask, .filter-body');
|
|
|
var $filter = $('.filter-mask');
|
|
|
|
|
|
var $classify = $filter.find('.classify'),
|
|
|
$subClassify = $filter.find('.sub-classify');
|
...
|
...
|
@@ -33,9 +33,11 @@ function registerCbFn(cb) { |
|
|
$classify.children(':first-child').addClass('active'); //T:不在HTML中使用{{#if @first}}active{{/if}}来初始化active为避免sub设置高度时的闪烁
|
|
|
|
|
|
//classify switch
|
|
|
$classify.delegate('.classify-item', 'tap', function() {
|
|
|
$classify.delegate('.classify-item', 'tap', function(e) {
|
|
|
var $this = $(this);
|
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
|
if ($this.hasClass('active')) {
|
|
|
return;
|
|
|
}
|
...
|
...
|
@@ -46,7 +48,7 @@ $classify.delegate('.classify-item', 'tap', function() { |
|
|
});
|
|
|
|
|
|
//点击Mask隐藏筛选界面
|
|
|
$filter.filter('.filter-mask').tap(function() {
|
|
|
$filter.tap(function() {
|
|
|
hideFilter();
|
|
|
});
|
|
|
|
...
|
...
|
|