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
382006af
Commit
382006af
authored
May 06, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the duetime and totalprice
parent
6585a0fb
Pipeline
#6893
passed with stage
in 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
new_house.js
app/model/realestate/new_house.js
+4
-0
new_house.js
app/service/house/new_house.js
+3
-3
No files found.
app/model/realestate/new_house.js
View file @
382006af
...
...
@@ -52,6 +52,10 @@ module.exports = app => {
type
:
STRING
,
allowNull
:
true
},
corner
:
{
type
:
STRING
,
allowNull
:
true
},
discount
:
{
type
:
DECIMAL
,
allowNull
:
true
...
...
app/service/house/new_house.js
View file @
382006af
...
...
@@ -168,13 +168,13 @@ class NewHouseService extends Service {
tags
:
data
.
tags
?
eval
(
data
.
tags
)
:
[],
//项目特色
favourable_info
:
data
.
favourableInfo
,
//优惠
reference_avg_price
:
data
.
referenceAvgPrice
,
//均价
reference_total_price
:
data
.
referenceTotalPrice
,
//总价
reference_total_price
:
data
.
referenceTotalPrice
===
0
?
'--'
:
data
.
referenceTotalPrice
,
//总价
property_type
:
houseType
[
data
.
houseType
]
||
''
,
//物业类型
}
ret
.
info
=
{
open_date
:
data
.
openDate
,
//开盘时间
due_date
:
data
.
dueDate
,
//交房时间
due_date
:
(
data
.
dueDate
===
'0000-00-00 00:00:00'
||
data
.
dueDate
===
''
)
?
'--'
:
data
.
dueDate
,
//交房时间
house_area
:
area
,
//建筑面积
decoration
:
decorationType
[
data
.
decorationType
]
||
''
,
//装修情况,1 毛坯,2简装,3精装
green_ratio
:
data
.
greenRatio
,
//绿化
...
...
@@ -198,7 +198,7 @@ class NewHouseService extends Service {
sale_address
:
data
.
saleAddress
,
//售楼地址
developer
:
developer
,
//开发商
open_date
:
data
.
openDate
,
//开盘时间
due_date
:
data
.
dueDate
,
//交房时间
due_date
:
(
data
.
dueDate
===
'0000-00-00 00:00:00'
||
data
.
dueDate
===
''
)
?
'--'
:
data
.
dueDate
,
//交房时间
},
residential
:
{
land_area
:
data
.
residential
.
landArea
,
//占地面积
...
...
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