Showing
1 changed file
with
2 additions
and
5 deletions
@@ -96,7 +96,7 @@ function initFilter(cb) { | @@ -96,7 +96,7 @@ function initFilter(cb) { | ||
96 | //tap subclassify | 96 | //tap subclassify |
97 | $cur = $this.closest('li'); | 97 | $cur = $this.closest('li'); |
98 | 98 | ||
99 | - classifyTapEvt($cur); | 99 | + subClassifyTapEvt($cur); |
100 | } else { | 100 | } else { |
101 | 101 | ||
102 | //tap classify | 102 | //tap classify |
@@ -104,7 +104,7 @@ function initFilter(cb) { | @@ -104,7 +104,7 @@ function initFilter(cb) { | ||
104 | 104 | ||
105 | e.srcEvent.stopPropagation(); | 105 | e.srcEvent.stopPropagation(); |
106 | 106 | ||
107 | - subClassifyTapEvt($cur); | 107 | + classifyTapEvt($cur); |
108 | } | 108 | } |
109 | } else { | 109 | } else { |
110 | hideFilter(); | 110 | hideFilter(); |
@@ -116,9 +116,6 @@ function initFilter(cb) { | @@ -116,9 +116,6 @@ function initFilter(cb) { | ||
116 | }); | 116 | }); |
117 | } | 117 | } |
118 | 118 | ||
119 | -//设置完高度后显示sub并设置选中 | ||
120 | -//T:不在HTML中使用{{#if @first}}active{{/if}}来初始化active为避免sub设置高度时的闪烁 | ||
121 | -// $filter.find('.classify > :first-child').addClass('active'); | ||
122 | exports.initFilter = initFilter; | 119 | exports.initFilter = initFilter; |
123 | 120 | ||
124 | exports.showFilter = showFilter; | 121 | exports.showFilter = showFilter; |
-
Please register or login to post a comment