房源添加物业类型bug修改

This commit is contained in:
xuhe
2022-06-29 17:27:58 +08:00
parent c20e9cbfe7
commit 5f4700aa79
@@ -744,13 +744,13 @@
$(data).each(function(i,item){
var pdate = item.pDate + "";
var ds = pdate.substring(0, 4) + '-' + pdate.substring(4, 6) + '-' + pdate.substring(6)
if (item.estateType.indexOf('别墅') > -1){
if ((item.estateType!=null) && (item.estateType.indexOf('别墅') > -1)){
series_arry_2.push({
x:new Date(ds),
y:Math.round(item.totalPrice/item.area),
data:item
})
}else if((item.estateType.indexOf('商住') > -1) || (item.estateType.indexOf('公寓酒店') > -1)){
}else if((item.estateType!=null) && ((item.estateType.indexOf('商住') > -1) || (item.estateType.indexOf('公寓酒店') > -1))){
series_arry_1.push({
x:new Date(ds),
y:Math.round(item.totalPrice/item.area),