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
4b4223d8
Commit
4b4223d8
authored
Aug 12, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c端展示
parent
8dc6f1e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
OfficeRoom.php
application/api_broker/controller/OfficeRoom.php
+1
-1
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+9
-3
No files found.
application/api_broker/controller/OfficeRoom.php
View file @
4b4223d8
...
...
@@ -299,7 +299,7 @@ class OfficeRoom extends Basic
public
function
getBuildingRoomH5
()
{
header
(
'Access-Control-Allow-Origin:*'
);
$result
=
$this
->
service
->
getRoomBuildingList
(
$this
->
params
);
$result
=
$this
->
service
->
getRoomBuildingList
(
$this
->
params
,
1
);
if
(
$result
[
'status'
]
==
'successful'
)
{
$this
->
data
=
$result
[
'data'
];
}
else
{
...
...
application/index/service/OfficeRoomService.php
View file @
4b4223d8
...
...
@@ -1274,11 +1274,11 @@ class OfficeRoomService
/**
* 办公楼列表
*
* @param $params
* @return array
* @param int $type
* @return mixed
*/
public
function
getRoomBuildingList
(
$params
)
public
function
getRoomBuildingList
(
$params
,
$type
=
0
)
{
$page_no
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$page_size
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
...
...
@@ -1409,6 +1409,10 @@ class OfficeRoomService
}
}
if
(
$type
==
1
){
$where
[
'a.is_show'
]
=
0
;
}
$field
=
'a.id,b.disc,b.title,b.address,c.name as business_name,a.building_id,a.price,a.price_total,b.status,a.is_rent'
;
try
{
$data
=
$this
->
m_office_room
->
getRoomBuilding
(
$page_no
,
$page_size
,
$order
,
$field
,
$where
);
...
...
@@ -1428,6 +1432,8 @@ class OfficeRoomService
$tmp
[
'is_rent'
]
=
$v
[
'is_rent'
];
$area
=
$this
->
MinField
(
$v
[
'building_id'
],
'area'
);
$tmp
[
'title'
]
=
$v
[
'disc'
]
.
' '
.
$v
[
'business_name'
]
.
' '
.
$v
[
'title'
]
.
' '
.
$area
.
'㎡'
;
//楼盘图
$tmp
[
'building_image'
]
=
$this
->
getBuildingImage
(
$v
[
'id'
]);
$result_data
[]
=
$tmp
;
}
$result
[
'status'
]
=
'successful'
;
...
...
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