Commit f98223b0 authored by Hsinli's avatar Hsinli

addd

parent 0add987e
Pipeline #7071 passed with stage
in 3 seconds
...@@ -198,7 +198,7 @@ class CollectionService extends Service { ...@@ -198,7 +198,7 @@ class CollectionService extends Service {
tags: retList[j].tags ? eval(retList[j].tags) : [], tags: retList[j].tags ? eval(retList[j].tags) : [],
image: retList[j].image, image: retList[j].image,
area: type === 1 ? retList[j].houseArea : '', area: type === 1 ? retList[j].houseArea : '',
price: type === 1 ? retList[j].referenceAvgPrice : retList[j].price, price: type === 1 ? (retList[j].referenceAvgPrice === '' || retList[j].referenceAvgPrice === 0 ? '--' : retList[j].referenceAvgPrice) : retList[j].price,
type: type === 1 ? 'new_house' : 'rental_house', type: type === 1 ? 'new_house' : 'rental_house',
corner: type === 1 ? retList[j].cornerMarker : '', corner: type === 1 ? retList[j].cornerMarker : '',
}; };
......
...@@ -167,7 +167,7 @@ class NewHouseService extends Service { ...@@ -167,7 +167,7 @@ class NewHouseService extends Service {
description: data.description,//描述 description: data.description,//描述
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 === 0 || data.referenceAvgPrice === '') ? '--' : data.referenceAvgPrice,//均价
reference_total_price: data.referenceTotalPrice === 0 ? '--' : data.referenceTotalPrice,//总价 reference_total_price: data.referenceTotalPrice === 0 ? '--' : data.referenceTotalPrice,//总价
property_type: houseType[data.houseType] || '',//物业类型 property_type: houseType[data.houseType] || '',//物业类型
} }
...@@ -185,7 +185,7 @@ class NewHouseService extends Service { ...@@ -185,7 +185,7 @@ class NewHouseService extends Service {
} }
ret.detail = { ret.detail = {
basic: { basic: {
reference_avg_price: data.referenceAvgPrice,//均价 reference_avg_price: (data.referenceAvgPrice === 0 || data.referenceAvgPrice === '') ? '--' : data.referenceAvgPrice,//均价
tags: data.tags ? eval(data.tags) : [],//项目特色 tags: data.tags ? eval(data.tags) : [],//项目特色
property_type: houseType[data.houseType] || '',//物业类型 property_type: houseType[data.houseType] || '',//物业类型
property_right_years: data.residential.propertyRightYears,//产权年限 property_right_years: data.residential.propertyRightYears,//产权年限
......
...@@ -125,7 +125,7 @@ class OrderService extends Service { ...@@ -125,7 +125,7 @@ class OrderService extends Service {
tags: retList[j].tags ? eval(retList[j].tags) : [], tags: retList[j].tags ? eval(retList[j].tags) : [],
image: retList[j].image, image: retList[j].image,
area: type === 1 ? retList[j].houseArea : '', area: type === 1 ? retList[j].houseArea : '',
price: type === 1 ? retList[j].referenceAvgPrice : retList[j].price, price: type === 1 ? (retList[j].referenceAvgPrice === '' || retList[j].referenceAvgPrice === 0 ? '--' : retList[j].referenceAvgPrice) : retList[j].price,
time: moment().format('YYYY-MM-DD') === moment(orderList.results[j].orderAt).format('YYYY-MM-DD') ? '今天' : moment(orderList.results[j].orderAt).format('YYYY-MM-DD'), time: moment().format('YYYY-MM-DD') === moment(orderList.results[j].orderAt).format('YYYY-MM-DD') ? '今天' : moment(orderList.results[j].orderAt).format('YYYY-MM-DD'),
type: type === 1 ? 'new_house' : 'rental_house', type: type === 1 ? 'new_house' : 'rental_house',
corner: type === 1 ? retList[j].cornerMarker : '', corner: type === 1 ? retList[j].cornerMarker : '',
......
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