Commit 382006af authored by Hsinli's avatar Hsinli

fix the duetime and totalprice

parent 6585a0fb
Pipeline #6893 passed with stage
in 3 seconds
...@@ -52,6 +52,10 @@ module.exports = app => { ...@@ -52,6 +52,10 @@ module.exports = app => {
type: STRING, type: STRING,
allowNull: true allowNull: true
}, },
corner: {
type: STRING,
allowNull: true
},
discount: { discount: {
type: DECIMAL, type: DECIMAL,
allowNull: true allowNull: true
......
...@@ -168,13 +168,13 @@ class NewHouseService extends Service { ...@@ -168,13 +168,13 @@ class NewHouseService extends Service {
tags: data.tags ? eval(data.tags) : [],//项目特色 tags: data.tags ? eval(data.tags) : [],//项目特色
favourable_info: data.favourableInfo,//优惠 favourable_info: data.favourableInfo,//优惠
reference_avg_price: data.referenceAvgPrice,//均价 reference_avg_price: data.referenceAvgPrice,//均价
reference_total_price: data.referenceTotalPrice,//总价 reference_total_price: data.referenceTotalPrice === 0 ? '--' : data.referenceTotalPrice,//总价
property_type: houseType[data.houseType] || '',//物业类型 property_type: houseType[data.houseType] || '',//物业类型
} }
ret.info = { ret.info = {
open_date: data.openDate,//开盘时间 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,//建筑面积 house_area: area,//建筑面积
decoration: decorationType[data.decorationType] || '',//装修情况,1 毛坯,2简装,3精装 decoration: decorationType[data.decorationType] || '',//装修情况,1 毛坯,2简装,3精装
green_ratio: data.greenRatio,//绿化 green_ratio: data.greenRatio,//绿化
...@@ -198,7 +198,7 @@ class NewHouseService extends Service { ...@@ -198,7 +198,7 @@ class NewHouseService extends Service {
sale_address: data.saleAddress,//售楼地址 sale_address: data.saleAddress,//售楼地址
developer: developer,//开发商 developer: developer,//开发商
open_date: data.openDate,//开盘时间 open_date: data.openDate,//开盘时间
due_date: data.dueDate,//交房时间 due_date: (data.dueDate === '0000-00-00 00:00:00' || data.dueDate === '') ? '--' : data.dueDate,//交房时间
}, },
residential: { residential: {
land_area: data.residential.landArea,//占地面积 land_area: data.residential.landArea,//占地面积
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment