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
96c7dbac
Commit
96c7dbac
authored
Jul 31, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
c2eda2c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
LookShop.php
application/index/controller/LookShop.php
+5
-4
No files found.
application/index/controller/LookShop.php
View file @
96c7dbac
...
@@ -27,7 +27,7 @@ class LookShop extends Basic
...
@@ -27,7 +27,7 @@ class LookShop extends Basic
public
function
lookShopIndex
()
public
function
lookShopIndex
()
{
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/*
$params = array(
$params
=
array
(
"start_time"
=>
'2018-07-30'
,
"start_time"
=>
'2018-07-30'
,
"end_time"
=>
'2018-07-31'
,
"end_time"
=>
'2018-07-31'
,
"house_id"
=>
3084
,
"house_id"
=>
3084
,
...
@@ -36,7 +36,7 @@ class LookShop extends Basic
...
@@ -36,7 +36,7 @@ class LookShop extends Basic
"agent_phone"
=>
""
,
"agent_phone"
=>
""
,
"page_no"
=>
1
,
"page_no"
=>
1
,
"page_size"
=>
15
"page_size"
=>
15
);
*/
);
$pageNo
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$pageNo
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$pageSize
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
$pageSize
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
...
@@ -61,8 +61,9 @@ class LookShop extends Basic
...
@@ -61,8 +61,9 @@ class LookShop extends Basic
$result
=
$this
->
tLookShopModel
->
getList
(
$condition
,
$field
,
$pageNo
,
$pageSize
);
$result
=
$this
->
tLookShopModel
->
getList
(
$condition
,
$field
,
$pageNo
,
$pageSize
);
$total
=
$this
->
tLookShopModel
->
getListCount
(
$condition
,
$field
);
$total
=
$this
->
tLookShopModel
->
getListCount
(
$condition
,
$field
);
if
(
count
(
$result
)
>
0
)
{
if
(
count
(
$result
)
>
0
)
{
$result
[
"total"
]
=
$total
;
$list
[
"list"
]
=
$result
;
return
$this
->
response
(
"200"
,
"success"
,
$result
);
$list
[
"total"
]
=
$total
;
return
$this
->
response
(
"200"
,
"success"
,
$list
);
}
}
return
$this
->
response
(
"101"
,
"null"
);
return
$this
->
response
(
"101"
,
"null"
);
...
...
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