Showing
1 changed file
with
6 additions
and
2 deletions
@@ -65,8 +65,6 @@ $nav.delegate('.guang-nav-item', 'tap', function() { | @@ -65,8 +65,6 @@ $nav.delegate('.guang-nav-item', 'tap', function() { | ||
65 | return; | 65 | return; |
66 | } | 66 | } |
67 | 67 | ||
68 | - $curNav = $this; | ||
69 | - curType = $this.data('type'); | ||
70 | 68 | ||
71 | index = $this.index(); | 69 | index = $this.index(); |
72 | 70 | ||
@@ -78,7 +76,13 @@ $nav.delegate('.guang-nav-item', 'tap', function() { | @@ -78,7 +76,13 @@ $nav.delegate('.guang-nav-item', 'tap', function() { | ||
78 | $content = $infos.eq(index); | 76 | $content = $infos.eq(index); |
79 | $content.removeClass('hide'); | 77 | $content.removeClass('hide'); |
80 | 78 | ||
79 | + $curNav = $this; | ||
80 | + curType = $this.data('type'); | ||
81 | + | ||
82 | + //当未加载数据时去请求数据 | ||
83 | + if (state[curType].page === 0) { | ||
81 | loadMore($content, state[curType]); | 84 | loadMore($content, state[curType]); |
85 | + } | ||
82 | 86 | ||
83 | //重置当前Tab的load-more | 87 | //重置当前Tab的load-more |
84 | if (state[curType].end) { | 88 | if (state[curType].end) { |
-
Please register or login to post a comment