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
dbc886a6
Commit
dbc886a6
authored
Dec 27, 2017
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
5771696c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
8 deletions
+18
-8
Basic.php
application/api/extend/Basic.php
+1
-0
Transfer.php
application/index/controller/Transfer.php
+1
-1
transfer.js
public/resource/js/transfer.js
+5
-5
zw.pagination.js
public/resource/lib/js/zw.pagination.js
+11
-2
No files found.
application/api/extend/Basic.php
View file @
dbc886a6
...
...
@@ -48,6 +48,7 @@ class Basic extends Controller
"api/bannerList"
,
"api/averagePriceAndTurnover"
,
"api/getBroker"
,
"api/brokerDetail"
,
);
/**
...
...
application/index/controller/Transfer.php
View file @
dbc886a6
...
...
@@ -70,7 +70,7 @@ class Transfer extends Basic
$fields
=
'id,shop_name,manage_type,address_detail,province,city,district,expected_rent,appellation,tel,create_time,status'
;
$data
[
'list'
]
=
$sublet
->
getSublet
(
$pageNo
,
$pageSize
,
''
,
$fields
,
$where
);
$data
[
'list'
]
=
$sublet
->
getSublet
(
$pageNo
,
$pageSize
,
'
id desc
'
,
$fields
,
$where
);
$data
[
'total'
]
=
$sublet
->
getSubletTotal
(
$where
);
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
);
}
...
...
public/resource/js/transfer.js
View file @
dbc886a6
define
([
'doT'
,
'text!temp/transfer_template_tpl.html'
,
'css!style/home.css'
,
'paginationStart'
],
function
(
doT
,
template
)
{
user
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
1
5
,
/*每页显示多少条*/
pageSize
:
1
0
,
/*每页显示多少条*/
urls
:
''
,
init
:
function
()
{
...
...
@@ -102,7 +102,7 @@ define (['doT', 'text!temp/transfer_template_tpl.html', 'css!style/home.css','pa
$
(
"#sublet_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
/*
$ ("#pagediv").pagination ({
$
(
"#pagediv"
).
pagination
({
length
:
data
.
data
.
total
,
current
:
pageNo
,
coping
:
true
,
...
...
@@ -110,10 +110,10 @@ define (['doT', 'text!temp/transfer_template_tpl.html', 'css!style/home.css','pa
onClick
:
function
(
el
)
{
user
.
getList
(
el
.
num
.
current
);
}
});
*/
pagination_pages
=
Math
.
ceil
(
data
.
data
.
total
/
user
.
pageSize
);
});
/*
pagination_pages = Math.ceil(data.data.total/user.pageSize);
pagination_totals = data.data.total;
addpage
(
user
.
getList
);
addpage(user.getList);
*/
}
});
},
...
...
public/resource/lib/js/zw.pagination.js
View file @
dbc886a6
...
...
@@ -8,7 +8,16 @@ var pagination_pagesize = 15; //每页显示多少条
function
addpage
(
methodName
)
{
if
(
pagination_page_no
>
pagination_pages
)
pagination_page_no
=
pagination_pages
;
$
(
'.pageinfo'
).
pagination
({
$
(
".pageinfo"
).
pagination
({
length
:
data
.
data
.
total
,
current
:
pageNo
,
coping
:
true
,
every
:
user
.
pageSize
,
onClick
:
function
(
el
)
{
user
.
getList
(
el
.
num
.
current
);
}
});
/* $('.pageinfo').pagination({
pages: pagination_pages, //总页数
styleClass: ['pagination-large'],
showCtrl: true,
...
...
@@ -20,7 +29,7 @@ function addpage(methodName) {
methodName();
}
}
});
});
*/
/*
$('.pageinfo').find('span:contains(共)').append("(" + pagination_totals + "条记录)");
...
...
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