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
4b054076
Commit
4b054076
authored
Jun 11, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8d3987c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+3
-3
OfficeService.php
application/index/service/OfficeService.php
+3
-1
No files found.
application/index/service/OfficeRoomService.php
View file @
4b054076
...
...
@@ -643,7 +643,7 @@ class OfficeRoomService
$result
[
'management_fee'
]
=
$result
[
'management_fee'
]
*
0.01
;
//轮播图
$result
[
'carousel_image'
]
=
$this
->
getCarouselImage
(
$result
[
'id'
]);
$result
[
'carousel_image'
]
=
$this
->
getCarouselImage
(
$result
[
'id'
]
,
2
);
//上传人
$result
[
'upload_info'
]
=
$this
->
getUploadInfo
(
$result
[
'operation_id'
]);
//独家方
...
...
@@ -732,10 +732,10 @@ class OfficeRoomService
}
//轮播图
public
function
getCarouselImage
(
$id
){
public
function
getCarouselImage
(
$id
,
$img_type
=
2
){
$where
[
'img_type'
]
=
$img_type
;
$where
[
'img_status'
]
=
0
;
$where
[
'house_id'
]
=
$id
;
$where
[
'img_type'
]
=
2
;
$house_img_data
=
$this
->
m_office_img
->
getListAll
(
'id,img_name'
,
$where
);
if
(
$house_img_data
){
foreach
(
$house_img_data
as
$k
=>
$v
)
{
...
...
application/index/service/OfficeService.php
View file @
4b054076
...
...
@@ -342,7 +342,7 @@ class OfficeService
}
//轮播图
$result
[
'carousel_image'
]
=
$this
->
service_room
->
getCarouselImage
(
$result
[
'id'
]);
$result
[
'carousel_image'
]
=
$this
->
service_room
->
getCarouselImage
(
$result
[
'id'
]
,
0
);
//房源数
$result
[
'room_num'
]
=
$this
->
getRoomNum
(
$result
[
'id'
]);
//交通信息
...
...
@@ -373,6 +373,8 @@ class OfficeService
$m_office_room
=
new
OfficeGRoom
();
$field
=
"a.id,a.area,a.price_total,a.price,a.station_start,a.station_end,a.decoration"
;
$params
[
"a.building_id"
]
=
$id
;
$params
[
'a.is_rent'
]
=
0
;
$params
[
'a.status'
]
=
1
;
$res
=
$m_office_room
->
getRoomInfo
(
$field
,
$params
);
if
(
$res
){
...
...
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