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
ff713391
Commit
ff713391
authored
Jul 04, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
house v2 tool fix
parent
c6b105ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
tool.js
app/controller/house/v2/tool.js
+7
-2
house.js
app/router/house.js
+1
-1
No files found.
app/controller/house/v2/tool.js
View file @
ff713391
...
...
@@ -109,7 +109,12 @@ class ToolController extends Controller {
let
ret
=
[];
if
(
house_style
===
'used_house'
)
{
ret
=
await
ctx
.
service
.
house
.
v2
.
tool
.
getUsedHouseMapPoint
(
area_code
,
level
);
if
(
parseInt
(
level
)
===
1
)
{
const
price_city_ret
=
await
ctx
.
blockModel
.
HousePriceCity
.
one
({
where
:
{
id
:
area_code
}
});
if
(
price_city_ret
&&
price_city_ret
.
id
)
ret
=
await
ctx
.
service
.
house
.
v2
.
tool
.
getUsedHouseMapPoint
(
area_code
,
level
);
}
else
{
ret
=
await
ctx
.
service
.
house
.
v2
.
tool
.
getUsedHouseMapPoint
(
area_code
,
level
);
}
}
else
if
(
house_style
===
'new_house'
)
{
ret
=
await
ctx
.
service
.
house
.
v2
.
tool
.
getNewHouseMapPoint
(
area_code
,
level
);
}
...
...
@@ -155,7 +160,7 @@ class ToolController extends Controller {
ctx
.
success
({
result
});
}
//存钱罐 附
件
房源点位
//存钱罐 附
近
房源点位
async
getHouseNearbyPoint
()
{
const
{
ctx
}
=
this
;
...
...
app/router/house.js
View file @
ff713391
...
...
@@ -61,7 +61,7 @@ module.exports = app => {
router
.
post
(
'/v2/tool/house_price_search'
,
'house.v2.tool.getHousePriceFeatureSearch'
);
//房价指数 搜索结果
router
.
get
(
'/v2/tool/house_point'
,
'house.v2.tool.getHousePoint'
);
//点击房源信息跳到地图页 需要的经纬度信息。
router
.
post
(
'/v2/tool/nearby_house_points'
,
'house.v2.tool.getHouseNearbyPoint'
);
//点击房源信息跳到地图页 此房源周边信息。
router
.
get
(
'/v2/tool/oss_signature'
,
'house.v2.tool.getBusinessSignature'
);
//
点击房源信息跳到地图页 此房源周边信息
。
router
.
get
(
'/v2/tool/oss_signature'
,
'house.v2.tool.getBusinessSignature'
);
//
上传图片需要的签名参数
。
//租房列表
...
...
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