From 7dc08e9e0ff498ac108d4eb6c2bfb2400186379a Mon Sep 17 00:00:00 2001 From: "xuhe@fangjia.com" Date: Wed, 28 Mar 2018 18:04:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8E=86=E5=8F=B2=E6=8E=A8?= =?UTF-8?q?=E8=8D=90=E5=B0=8F=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/yfindex.html | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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){