Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
hujun
tl_estate
Commits
42c95d9c
Commit
42c95d9c
authored
Apr 26, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug 分页
parent
7f8dd008
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
public.css
public/resource/css/public.css
+4
-0
banner.js
public/resource/js/banner.js
+2
-2
zw.pagination.js
public/resource/lib/js/zw.pagination.js
+1
-1
No files found.
public/resource/css/public.css
View file @
42c95d9c
...
...
@@ -192,6 +192,10 @@ a:hover{
margin-top
:
7px
;
margin-left
:
7px
;
}
#pagediv
{
width
:
100%
;
text-align
:
right
;
}
#pagediv
a
,
#pagediv
span
{
display
:
inline-block
;
...
...
public/resource/js/banner.js
View file @
42c95d9c
...
...
@@ -4,7 +4,7 @@
define
([
'doT'
,
'text!temp/banner_template_tpl.html'
,
'ckfinder'
,
'ckfinderStart'
,
'css!style/home.css'
,
'blow-up'
],
function
(
doT
,
template
)
{
var
banner
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
1
5
,
/*每页显示多少条*/
pageSize
:
5
,
/*每页显示多少条*/
datas
:
""
,
init
:
function
()
{
//初始化dot
...
...
@@ -137,7 +137,7 @@ define (['doT', 'text!temp/banner_template_tpl.html', 'ckfinder', 'ckfinderStart
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#banner_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
banner
.
pageSize
,
banner
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
banner
.
pageSize
,
banner
.
get
Banner
List
);
/*$ ("#pagediv").pagination ({
length: data.data.total,
current: pageNo,
...
...
public/resource/lib/js/zw.pagination.js
View file @
42c95d9c
...
...
@@ -3,7 +3,7 @@
*/
function
add_page
(
total_list
,
page_no
,
page_size
,
methodName
)
{
console
.
log
(
total_list
-
page_size
);
if
(
total_list
-
page_size
<
0
)
{
$
(
'#pagediv'
).
html
(
''
);
return
;
...
...
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