...
|
...
|
@@ -7,7 +7,7 @@ |
|
|
|
|
|
var $ = require('yoho.zepto');
|
|
|
|
|
|
var $filter = $('#yoho-filter');
|
|
|
var $filter = $('.filter-mask, .filter-body');
|
|
|
|
|
|
var $classify = $filter.find('.classify'),
|
|
|
$subClassify = $filter.find('.sub-classify');
|
...
|
...
|
@@ -29,9 +29,6 @@ function registerCbFn(cb) { |
|
|
cbFn = cb;
|
|
|
}
|
|
|
|
|
|
//初始化sub高度与classify高度一致
|
|
|
$subClassify.height($classify.height());
|
|
|
|
|
|
//设置完高度后显示sub并设置选中
|
|
|
$classify.children(':first-child').addClass('active'); //T:不在HTML中使用{{#if @first}}active{{/if}}来初始化active为避免sub设置高度时的闪烁
|
|
|
|
...
|
...
|
@@ -49,7 +46,7 @@ $classify.delegate('.classify-item', 'touchstart', function() { |
|
|
});
|
|
|
|
|
|
//点击Mask隐藏筛选界面
|
|
|
$filter.children('.filter-mask').click(function() {
|
|
|
$filter.filter('.filter-mask').click(function() {
|
|
|
hideFilter();
|
|
|
});
|
|
|
|
...
|
...
|
|