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
f4c8aebb
Commit
f4c8aebb
authored
Feb 13, 2020
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addd
parent
2b5cf728
Pipeline
#19336
passed with stage
in 13 seconds
Changes
3
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
rental_house.js
app/controller/house/v2/rental_house.js
+2
-1
option.js
app/service/house/v2/option.js
+2
-2
rental_house.js
app/service/house/v2/rental_house.js
+2
-1
No files found.
app/controller/house/v2/rental_house.js
View file @
f4c8aebb
...
...
@@ -33,7 +33,8 @@ class RentalHouseController extends Controller {
const
input_params
=
ctx
.
request
.
body
;
const
rule
=
{
brand
:
{
type
:
'array'
,
required
:
false
},
//品牌
brand
:
{
type
:
'string'
,
required
:
false
},
//品牌
// brand: { type: 'array', required: false },//品牌
area_code
:
{
type
:
'object'
,
required
:
false
},
//区域
price
:
{
type
:
'object'
,
required
:
false
},
//价格
house_type
:
{
type
:
'string'
,
required
:
false
},
//房型
...
...
app/service/house/v2/option.js
View file @
f4c8aebb
...
...
@@ -81,7 +81,7 @@ class OptionService extends Service {
return
{
result
:
[
//
{ name: '品牌', id: -1, path: [], nameShow: '', _children: brands },
{
name
:
'品牌'
,
id
:
-
1
,
path
:
[],
nameShow
:
''
,
_children
:
brands
},
{
name
:
'区域'
,
id
:
-
2
,
path
:
[],
nameShow
:
''
,
_children
:
areas
},
{
name
:
'价格'
,
id
:
-
3
,
path
:
[],
nameShow
:
''
,
_children
:
prices
},
{
name
:
'户型'
,
id
:
-
4
,
path
:
[],
nameShow
:
''
,
_children
:
house_types
}
...
...
@@ -109,7 +109,7 @@ class OptionService extends Service {
},
{
name
:
'面积'
,
id
:
-
5
,
path
:
[],
nameShow
:
''
,
_children
:
house_area
},
// { name: '户型', id: -6, path: [], nameShow: '', _children: house_types },
//
{ name: '贷款方式', id: -6, path: [], nameShow: '', _children: loan_type },
{
name
:
'贷款方式'
,
id
:
-
6
,
path
:
[],
nameShow
:
''
,
_children
:
loan_type
},
]
};
}
...
...
app/service/house/v2/rental_house.js
View file @
f4c8aebb
...
...
@@ -28,7 +28,8 @@ class RentalHouseService extends Service {
let
where
=
{
status
:
'online'
,
valid
:
1
};
if
(
brand
)
{
where
.
developer_id
=
{
$in
:
brand
};
where
.
developer_id
=
brand
;
// where.developer_id = { $in: brand };
}
if
(
name
)
{
//增加搜索历史
...
...
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