From 1274c0c25554a83ba374260486580248596ec92b Mon Sep 17 00:00:00 2001 From: raoyanhui Date: Sat, 14 Apr 2018 19:51:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=AA=E4=BA=BA=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E6=88=BF=E4=BA=A7=E4=B8=BA=E9=9B=B6=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/js/user/myHouse.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/fangija-zsyf/js/user/myHouse.js b/fangija-zsyf/js/user/myHouse.js index b184d4b..7f36148 100644 --- a/fangija-zsyf/js/user/myHouse.js +++ b/fangija-zsyf/js/user/myHouse.js @@ -70,18 +70,15 @@ function mhAddItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, var html = ''; for(var i in dataObj) { var result = dataObj[i]; - var tempTotalPrice = result.totalPrice; + //可抵押贷额度 - var tempTotalPricePercent; - //考虑是否为数字,加强逻辑判断 - if(!isNaN(tempTotalPrice)){ - //转换成元,四舍五入 - tempTotalPricePercent = (parseFloat(tempTotalPrice)*0.7/10000).toFixed(2); - tempTotalPrice = (parseFloat(tempTotalPrice)/10000).toFixed(2); - } + var tempTotalPricePercent = (result.totalPrice) == 0?"暂无":(parseFloat(result.totalPrice)*0.7/10000).toFixed(2)+"万"; + var tempTotalPrice = (result.totalPrice) == 0?"暂无":(parseFloat(result.totalPrice)/10000).toFixed(2)+"万"; + html += '
  • '; html += ""; if(result.level!=null && result.level == 1){ html += "豪宅级";