Showing
1 changed file
with
7 additions
and
1 deletions
@@ -263,6 +263,12 @@ navHammer.on('tap', function(e) { | @@ -263,6 +263,12 @@ navHammer.on('tap', function(e) { | ||
263 | navType, | 263 | navType, |
264 | $active; | 264 | $active; |
265 | 265 | ||
266 | + e.preventDefault(); | ||
267 | + | ||
268 | + if (typeof $this === 'undefined' || $this.length === 0) { | ||
269 | + return; | ||
270 | + } | ||
271 | + | ||
266 | if ($this.hasClass('filter')) { | 272 | if ($this.hasClass('filter')) { |
267 | 273 | ||
268 | //筛选面板切换状态 | 274 | //筛选面板切换状态 |
@@ -359,4 +365,4 @@ $(window).scroll(function() { | @@ -359,4 +365,4 @@ $(window).scroll(function() { | ||
359 | }); | 365 | }); |
360 | 366 | ||
361 | //初始请求最新第一页数据 | 367 | //初始请求最新第一页数据 |
362 | -search(); | 368 | +search(); |
-
Please register or login to post a comment