Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
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
方斌
51business
Commits
89212f9c
Commit
89212f9c
authored
Jun 20, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rental houe v2 fix
parent
1df60274
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
rental_house.js
app/service/house/v2/rental_house.js
+1
-1
No files found.
app/service/house/v2/rental_house.js
View file @
89212f9c
...
@@ -78,7 +78,7 @@ class RentalHouseService extends Service {
...
@@ -78,7 +78,7 @@ class RentalHouseService extends Service {
//楼盘图片信息和房型信息
//楼盘图片信息和房型信息
const
house_types_rets
=
await
ctx
.
realestateModel
.
RentalHouseType
.
all
({
where
:
{
rental_house_id
:
rental_house_id
,
status
:
'online'
,
valid
:
1
}
});
const
house_types_rets
=
await
ctx
.
realestateModel
.
RentalHouseType
.
all
({
where
:
{
rental_house_id
:
rental_house_id
,
status
:
'online'
,
valid
:
1
}
});
const
p_house_images
=
ctx
.
service
.
house
.
v2
.
houseImage
.
getAll
({
type
:
1
,
connect_id
:
rental_house_id
},
[
'id'
,
'path'
,
'description'
]);
const
p_house_images
=
ctx
.
service
.
house
.
v2
.
houseImage
.
getAll
({
type
:
0
,
connect_id
:
rental_house_id
},
[
'id'
,
'path'
,
'description'
]);
const
p_house_types
=
this
.
formatRentHouseTypes
(
house_types_rets
);
const
p_house_types
=
this
.
formatRentHouseTypes
(
house_types_rets
);
const
p_collection
=
await
ctx
.
service
.
house
.
v2
.
collection
.
getCollection
({
type
:
2
,
id
:
rental_house_id
});
const
p_collection
=
await
ctx
.
service
.
house
.
v2
.
collection
.
getCollection
({
type
:
2
,
id
:
rental_house_id
});
const
p_ret
=
await
Promise
.
all
([
p_house_images
,
p_house_types
,
p_collection
]).
then
(
result
=>
{
//等待所有异步内容获取完成
const
p_ret
=
await
Promise
.
all
([
p_house_images
,
p_house_types
,
p_collection
]).
then
(
result
=>
{
//等待所有异步内容获取完成
...
...
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