Showing
1 changed file
with
4 additions
and
5 deletions
@@ -201,7 +201,7 @@ exports.init = function() { | @@ -201,7 +201,7 @@ exports.init = function() { | ||
201 | nav.end = true; | 201 | nav.end = true; |
202 | } | 202 | } |
203 | nav.reload = false; | 203 | nav.reload = false; |
204 | - nav.deviation = setting.deviation + len; | 204 | + nav.start++; |
205 | 205 | ||
206 | //重置可请求标识 | 206 | //重置可请求标识 |
207 | canLoadAjax = true; | 207 | canLoadAjax = true; |
@@ -341,8 +341,7 @@ exports.init = function() { | @@ -341,8 +341,7 @@ exports.init = function() { | ||
341 | */ | 341 | */ |
342 | function doFilter(id, type, name, navName) { | 342 | function doFilter(id, type, name, navName) { |
343 | var $shower = $('#show-' + type), | 343 | var $shower = $('#show-' + type), |
344 | - att, | ||
345 | - req; | 344 | + att; |
346 | //更新当前过滤项 | 345 | //更新当前过滤项 |
347 | curFilter[type] = id; | 346 | curFilter[type] = id; |
348 | 347 | ||
@@ -370,8 +369,8 @@ exports.init = function() { | @@ -370,8 +369,8 @@ exports.init = function() { | ||
370 | function subScTouchEvt(e) { | 369 | function subScTouchEvt(e) { |
371 | var $cur = $(e.currentTarget), | 370 | var $cur = $(e.currentTarget), |
372 | $parent = $cur.closest('ul'), | 371 | $parent = $cur.closest('ul'), |
373 | - id = $cur.data(id), | ||
374 | - type = $parent[0].dataset.type, | 372 | + id = $cur.data('id'), |
373 | + type = $parent.data('type'), | ||
375 | name = $cur.children('.text').text(); | 374 | name = $cur.children('.text').text(); |
376 | 375 | ||
377 | $parent.children('li.chosed').removeClass('chosed'); | 376 | $parent.children('li.chosed').removeClass('chosed'); |
-
Please register or login to post a comment