Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
de32e55fb36595a9114a4d9bbb12e1037a203008
1 parent
aa07e39c
guang home switch
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
static/js/guang/home.js
static/js/guang/home.js
View file @
de32e55
...
...
@@ -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
)
{
...
...
Please
register
or
login
to post a comment