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
57bf6d65
Commit
57bf6d65
authored
Feb 13, 2020
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addd
parent
f4c8aebb
Pipeline
#19339
passed with stage
in 57 seconds
Changes
3
Pipelines
1
Hide 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 @
57bf6d65
...
@@ -33,8 +33,8 @@ class RentalHouseController extends Controller {
...
@@ -33,8 +33,8 @@ class RentalHouseController extends Controller {
const
input_params
=
ctx
.
request
.
body
;
const
input_params
=
ctx
.
request
.
body
;
const
rule
=
{
const
rule
=
{
brand
:
{
type
:
'string'
,
required
:
false
},
//品牌
//
brand: { type: 'string', required: false },//品牌
//
brand: { type: 'array', required: false },//品牌
brand
:
{
type
:
'array'
,
required
:
false
},
//品牌
area_code
:
{
type
:
'object'
,
required
:
false
},
//区域
area_code
:
{
type
:
'object'
,
required
:
false
},
//区域
price
:
{
type
:
'object'
,
required
:
false
},
//价格
price
:
{
type
:
'object'
,
required
:
false
},
//价格
house_type
:
{
type
:
'string'
,
required
:
false
},
//房型
house_type
:
{
type
:
'string'
,
required
:
false
},
//房型
...
...
app/service/house/v2/option.js
View file @
57bf6d65
...
@@ -81,7 +81,7 @@ class OptionService extends Service {
...
@@ -81,7 +81,7 @@ class OptionService extends Service {
return
{
return
{
result
:
[
result
:
[
{
name
:
'品牌'
,
id
:
-
1
,
path
:
[],
nameShow
:
''
,
_children
:
brands
},
//
{ name: '品牌', id: -1, path: [], nameShow: '', _children: brands },
{
name
:
'区域'
,
id
:
-
2
,
path
:
[],
nameShow
:
''
,
_children
:
areas
},
{
name
:
'区域'
,
id
:
-
2
,
path
:
[],
nameShow
:
''
,
_children
:
areas
},
{
name
:
'价格'
,
id
:
-
3
,
path
:
[],
nameShow
:
''
,
_children
:
prices
},
{
name
:
'价格'
,
id
:
-
3
,
path
:
[],
nameShow
:
''
,
_children
:
prices
},
{
name
:
'户型'
,
id
:
-
4
,
path
:
[],
nameShow
:
''
,
_children
:
house_types
}
{
name
:
'户型'
,
id
:
-
4
,
path
:
[],
nameShow
:
''
,
_children
:
house_types
}
...
@@ -109,7 +109,7 @@ class OptionService extends Service {
...
@@ -109,7 +109,7 @@ class OptionService extends Service {
},
},
{
name
:
'面积'
,
id
:
-
5
,
path
:
[],
nameShow
:
''
,
_children
:
house_area
},
{
name
:
'面积'
,
id
:
-
5
,
path
:
[],
nameShow
:
''
,
_children
:
house_area
},
// { name: '户型', id: -6, path: [], nameShow: '', _children: house_types },
// { 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 @
57bf6d65
...
@@ -28,8 +28,8 @@ class RentalHouseService extends Service {
...
@@ -28,8 +28,8 @@ class RentalHouseService extends Service {
let
where
=
{
status
:
'online'
,
valid
:
1
};
let
where
=
{
status
:
'online'
,
valid
:
1
};
if
(
brand
)
{
if
(
brand
)
{
where
.
developer_id
=
brand
;
//
where.developer_id = brand;
//
where.developer_id = { $in: brand };
where
.
developer_id
=
{
$in
:
brand
};
}
}
if
(
name
)
{
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