...
|
...
|
@@ -65,8 +65,6 @@ $nav.delegate('.guang-nav-item', 'tap', function() { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
$curNav = $this;
|
|
|
curType = $this.data('type');
|
|
|
|
|
|
index = $this.index();
|
|
|
|
...
|
...
|
@@ -78,7 +76,13 @@ $nav.delegate('.guang-nav-item', 'tap', function() { |
|
|
$content = $infos.eq(index);
|
|
|
$content.removeClass('hide');
|
|
|
|
|
|
loadMore($content, state[curType]);
|
|
|
$curNav = $this;
|
|
|
curType = $this.data('type');
|
|
|
|
|
|
//当未加载数据时去请求数据
|
|
|
if (state[curType].page === 0) {
|
|
|
loadMore($content, state[curType]);
|
|
|
}
|
|
|
|
|
|
//重置当前Tab的load-more
|
|
|
if (state[curType].end) {
|
...
|
...
|
|