From a0ba4be285a04379286a9ec56b597f7a89a0c91f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Fri, 1 Jun 2018 16:38:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=B0=8F=E5=8C=BA=E6=97=A0?= =?UTF-8?q?=E5=9D=87=E4=BB=B7=E6=97=B6=E6=98=BE=E7=A4=BA=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/yfindex.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html index bd07ee7..b571025 100644 --- a/fangija-zsyf/yfindex.html +++ b/fangija-zsyf/yfindex.html @@ -2041,10 +2041,16 @@ function addItems(number, lastIndex) { } tagStr += ''; } + var aprice = dataObj2[i].avgPrice; + if (aprice == 0) { + aprice = "暂无均价"; + } else { + aprice = "¥"+aprice +'元/㎡'; + } html += '
  • '+ ''+ '
    '+ - dataObj2[i].districtName+'
    ¥'+dataObj2[i].avgPrice+'元/㎡
    '+ + dataObj2[i].districtName+'
    '+aprice +'
    '+ '
    '+ dataObj2[i].city+dataObj2[i].region+dataObj2[i].address+'
    '; if(dataObj2[i].distance){