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
7bc94e02
Commit
7bc94e02
authored
Feb 17, 2020
by
Hsinli
Browse files
Options
Browse Files
Download
Plain Diff
merge house_v3
parents
bac0b5ac
430a37df
Pipeline
#19377
passed with stage
in 7 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
rental_house.js
app/controller/house/v2/rental_house.js
+2
-2
option.js
app/service/house/v2/option.js
+2
-2
rental_house.js
app/service/house/v2/rental_house.js
+2
-2
No files found.
app/controller/house/v2/rental_house.js
View file @
7bc94e02
...
...
@@ -33,8 +33,8 @@ class RentalHouseController extends Controller {
const
input_params
=
ctx
.
request
.
body
;
const
rule
=
{
brand
:
{
type
:
'string'
,
required
:
false
},
//品牌
//
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 @
7bc94e02
...
...
@@ -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 @
7bc94e02
...
...
@@ -28,8 +28,8 @@ class RentalHouseService extends Service {
let
where
=
{
status
:
'online'
,
valid
:
1
};
if
(
brand
)
{
where
.
developer_id
=
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