Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
h5_activity
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谭新宇
h5_activity
Commits
1b073173
Commit
1b073173
authored
Jul 16, 2019
by
txy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'调整分页'
parent
837d74d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
7 deletions
+30
-7
index.js
showPhotos/js/page/index.js
+30
-7
No files found.
showPhotos/js/page/index.js
View file @
1b073173
...
@@ -37,25 +37,37 @@ function btnBindClick() {
...
@@ -37,25 +37,37 @@ function btnBindClick() {
// 参赛选手上一页
// 参赛选手上一页
$
(
'#act3152978551035'
).
off
(
'click'
).
on
(
'click'
,
function
(){
$
(
'#act3152978551035'
).
off
(
'click'
).
on
(
'click'
,
function
(){
var
page
=
parseInt
(
$
(
'#act61214527684747 .curpage'
).
text
())
var
page
=
parseInt
(
$
(
'#act61214527684747 .curpage'
).
text
())
if
(
page
>
1
)
{
if
(
page
>
1
)
{
page
-=
1
page
-=
1
getAjaxListSearch
(
'player'
,
page
,
function
(
playerListData
){
getAjaxListSearch
(
'player'
,
page
,
function
(
playerListData
){
getPlayerList
(
playerListData
)
getPlayerList
(
playerListData
)
})
// 参赛选手列表
})
// 参赛选手列表
}
else
{
$
.
dialog
({
type
:
'info'
,
contentHtml
:
'当前是第一页'
});
}
}
})
})
;
// 参赛选手下一页
// 参赛选手下一页
$
(
'#act315291899997'
).
off
(
'click'
).
on
(
'click'
,
function
(){
$
(
'#act315291899997'
).
off
(
'click'
).
on
(
'click'
,
function
(){
var
page
=
parseInt
(
$
(
'#act61214527684747 .curpage'
).
text
())
var
pageSize
=
parseInt
(
$
(
"#act61214527684747"
).
attr
(
"c_pagesize"
));
var
total
=
parseInt
(
$
(
'#act61214527684747 .totalpage'
).
text
())
var
page
=
parseInt
(
$
(
'#act61214527684747 .curpage'
).
text
());
if
(
page
<
Math
.
ceil
(
total
/
10
))
{
var
total
=
parseInt
(
$
(
'#act61214527684747 .totalpage'
).
text
());
if
(
page
<
Math
.
ceil
(
total
/
pageSize
))
{
page
=
page
+
1
page
=
page
+
1
getAjaxListSearch
(
'player'
,
page
,
function
(
playerListData
){
getAjaxListSearch
(
'player'
,
page
,
function
(
playerListData
){
getPlayerList
(
playerListData
)
getPlayerList
(
playerListData
)
})
// 参赛选手列表
});
// 参赛选手列表
}
else
{
$
.
dialog
({
type
:
'info'
,
contentHtml
:
'当前是最后一页'
});
}
}
})
})
;
// 排行榜上一页
// 排行榜上一页
$
(
'#act514245671026'
).
off
(
'click'
).
on
(
'click'
,
function
(){
$
(
'#act514245671026'
).
off
(
'click'
).
on
(
'click'
,
function
(){
...
@@ -65,17 +77,28 @@ function btnBindClick() {
...
@@ -65,17 +77,28 @@ function btnBindClick() {
getAjaxListSearch
(
'rank'
,
page
,
function
(
rankListData
){
getAjaxListSearch
(
'rank'
,
page
,
function
(
rankListData
){
getRangeList
(
rankListData
)
getRangeList
(
rankListData
)
})
// 参赛选手列表
})
// 参赛选手列表
}
else
{
$
.
dialog
({
type
:
'info'
,
contentHtml
:
'当前是第一页'
});
}
}
})
})
// 排行榜下一页
// 排行榜下一页
$
(
'#act5142157597939'
).
off
(
'click'
).
on
(
'click'
,
function
(){
$
(
'#act5142157597939'
).
off
(
'click'
).
on
(
'click'
,
function
(){
var
pageSize
=
parseInt
(
$
(
"#act111398324601"
).
attr
(
"c_pagesize"
));
var
page
=
parseInt
(
$
(
'#act111398324601 .curpage'
).
text
())
var
page
=
parseInt
(
$
(
'#act111398324601 .curpage'
).
text
())
var
total
=
parseInt
(
$
(
'#act111398324601 .totalpage'
).
text
())
var
total
=
parseInt
(
$
(
'#act111398324601 .totalpage'
).
text
())
if
(
page
<
Math
.
ceil
(
total
/
10
))
{
if
(
page
<
Math
.
ceil
(
total
/
pageSize
))
{
page
=
page
+
1
page
=
page
+
1
getAjaxListSearch
(
'rank'
,
page
,
function
(
rankListData
){
getAjaxListSearch
(
'rank'
,
page
,
function
(
rankListData
){
getRangeList
(
rankListData
)
getRangeList
(
rankListData
)
})
// 参赛选手列表
})
// 参赛选手列表
}
else
{
$
.
dialog
({
type
:
'info'
,
contentHtml
:
'当前是最后一页'
});
}
}
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment