diff --git a/fangija-zsyf/views/evaluate/evaluateReport.html b/fangija-zsyf/views/evaluate/evaluateReport.html index 0c782c2..9b38627 100644 --- a/fangija-zsyf/views/evaluate/evaluateReport.html +++ b/fangija-zsyf/views/evaluate/evaluateReport.html @@ -257,7 +257,10 @@ $.config = {router: false} house_price.words="元" house_price.compare_money=h.compareMoney }else{ - house_price.compare_money="相等" + //house_price.compare_money="相等" + house_price.compare_word="高" + house_price.words="元" + house_price.compare_money=0 } } diff --git a/fangija-zsyf/views/house/houseManageList.html b/fangija-zsyf/views/house/houseManageList.html index 4d8ffad..7b08e84 100644 --- a/fangija-zsyf/views/house/houseManageList.html +++ b/fangija-zsyf/views/house/houseManageList.html @@ -246,8 +246,8 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap var cityAvgPriceKey = result.city; //取得对应城市的value var cityAvgPriceValue = cityAvgPriceMap[cityAvgPriceKey]; - if(!isNaN(cityAvgPriceValue)){ - if(parseInt(cityAvgPriceValue)>=parseInt(result.price)){ + if(!isNaN(cityAvgPriceValue) && result.price>0){ + if(parseInt(cityAvgPriceValue)>parseInt(result.price)){ htmlContent = htmlContent + "
相比"+result.city+"均价: 低"+(parseInt(cityAvgPriceValue)-parseInt(result.price))+"元
"; }else{ htmlContent = htmlContent + "
相比"+result.city+"均价: 高"+(parseInt(result.price)-parseInt(cityAvgPriceValue))+"元
"; diff --git a/fangija-zsyf/views/news/newsDetail.html b/fangija-zsyf/views/news/newsDetail.html index ee4962e..bf3ed16 100644 --- a/fangija-zsyf/views/news/newsDetail.html +++ b/fangija-zsyf/views/news/newsDetail.html @@ -291,12 +291,19 @@ function addItems(number, lastIndex) { html = html + "
"; - var name = "游客" + var name = null; if(vo.wxName){ name = vo.wxName - }else if(vo.name){ + } + if(name == null){ name = vo.name } + if(name == null){ + name = vo.mobile + } + if(name == null){ + name = "游客" + } html = html + "
"+ "
"+name+"
"+ "
"+