diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html index 6a2385e..aaff9b5 100644 --- a/fangija-zsyf/yfindex.html +++ b/fangija-zsyf/yfindex.html @@ -1617,6 +1617,9 @@ function addItems(number, lastIndex) { for(var i in dataObj){ if(i>=lastIndex){ if((dataObj.length'+ '
'+dataObj[i].title+'
'+ @@ -1638,7 +1641,7 @@ function addItems(number, lastIndex) { '
'+dataObj[i].recommendDistrictName+'
'+ '
'+dataObj[i].recommendDistrictCity+'-'+dataObj[i].recommendDistrictRegion+ '
'; - if(dataObj[i].recommendDistrictTags != ""){ + if(dataObj[i].recommendDistrictTags != "" && dataObj[i].recommendDistrictTags != null){ var arry = dataObj[i].recommendDistrictTags.split("_"); html += '
'; for(var j in arry){ @@ -1646,9 +1649,11 @@ function addItems(number, lastIndex) { } html += '
'; } - html += '
推荐指数:
'+ - '
'+dataObj[i].recommendDistrictPrice+'元/㎡
'+ - ''; + html += '
推荐指数:
'; + if(dataObj[i].recommendDistrictPrice){ + html += '
'+dataObj[i].recommendDistrictPrice+'元/㎡
'; + } + html += ''; } if(dataObj[i].type=="活动"){ html += '
'+ @@ -1659,7 +1664,7 @@ function addItems(number, lastIndex) { if(dataObj[i].type=="推荐城市"){ html += '
'+ '
推荐城市——'+dataObj[i].recommendCity+'
'; - if(dataObj[i].recommendCityTags != ""){ + if(dataObj[i].recommendCityTags != "" && dataObj[i].recommendCityTags != null){ var arry = dataObj[i].recommendCityTags.split("_"); html += '
'; for(var j in arry){