From eb35a6e132eee8260561eb3f12b8e67703406115 Mon Sep 17 00:00:00 2001 From: raoyanhui Date: Sun, 8 Apr 2018 20:27:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B4=B7=E6=AC=BE=E9=A2=9D?= =?UTF-8?q?=E5=BA=A6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/views/house/houseList.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fangija-zsyf/views/house/houseList.html b/fangija-zsyf/views/house/houseList.html index 5b58a5e..86473c3 100644 --- a/fangija-zsyf/views/house/houseList.html +++ b/fangija-zsyf/views/house/houseList.html @@ -237,13 +237,14 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq //考虑是否为数字,加强逻辑判断 if(!isNaN(tempTotalPrice)){ //转换成元,四舍五入 - tempTotalPrice = (parseFloat(tempTotalPrice)/10000).toFixed(2); tempTotalPricePercent = (parseFloat(tempTotalPrice)*0.7/10000).toFixed(2); + tempTotalPrice = (parseFloat(tempTotalPrice)/10000).toFixed(2); } html += "
  • "; html += "
    "; html += "
    "+result.name+" "+tempTotalPrice+"万"+result.liveStatus+"
    "; - html += "
    "; + html += "
    "; + //对应城市地区小区30天涨跌幅 var xqOneMonthUpDownRangeKey = result.city+"-"+result.region +"-"+result.name; var xqOneMonthUpDownRangeValue = xqOneMonthUpDownRangeMap[xqOneMonthUpDownRangeKey]; @@ -257,6 +258,7 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq }else{ html += "
    近30天涨跌幅: %
    "; } + //下跌概率 var xqPotentialIndexValue = xqPotentialIndexMap[xqOneMonthUpDownRangeKey]; if(!isNaN(xqPotentialIndexValue)){ @@ -269,7 +271,9 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq }else{ html += "
    下跌概率: %
    "; } + html += "
    抵押可贷额度: "+tempTotalPricePercent+"万
    "; + if(result.level!=null && result.level == 1){ html += "豪宅级"; }else if(result.level!=null && result.level == 2){