提交评估列表
This commit is contained in:
@@ -119,7 +119,11 @@ function selectEvaluateList(){
|
||||
uid: uid
|
||||
}
|
||||
}).then(function (response) {
|
||||
var results = response.data.data;
|
||||
var resultsMap = response.data.data;
|
||||
var results = resultsMap.houseInfoList;
|
||||
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
||||
var cityAvgPriceMap = resultsMap.cityAvgPriceMap;
|
||||
|
||||
if(results!=null && results.length>0){
|
||||
for(var i in results){
|
||||
var result = results[i];
|
||||
@@ -135,11 +139,38 @@ function selectEvaluateList(){
|
||||
htmlContent = htmlContent +"</div><div class='item-title-row'>";
|
||||
htmlContent = htmlContent +"<div class='item-title'><small>"+result.roomCount+"室"+result.hallCount+"厅 "+result.area+"m "+result.floor+"/"+result.height+"层</small></div>";
|
||||
htmlContent = htmlContent +"</div><div class='item-subtitle'>";
|
||||
//控制显示效果
|
||||
htmlContent = htmlContent + "<div>近30天涨跌幅: <em class='down'>"+3.37+"%<i class='icon icon-arrow-green'></i></em></div>";
|
||||
|
||||
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='down'>"+'低2888元'+"</em></div>";
|
||||
//对应城市地区小区30天涨跌幅
|
||||
//动态构建key
|
||||
var xqOneMonthUpDownRangeKey = result.city+"-"+result.region +"-"+result.name;
|
||||
//取得key对于的value
|
||||
var xqOneMonthUpDownRangeValue = xqOneMonthUpDownRangeMap[xqOneMonthUpDownRangeKey];
|
||||
if(!isNaN(xqOneMonthUpDownRangeValue)){
|
||||
//涨跌幅大于零
|
||||
if(parseFloat(xqOneMonthUpDownRangeValue)>=0){
|
||||
htmlContent = htmlContent + "<div>近30天涨跌幅: <em class='up'>"+xqOneMonthUpDownRangeValue+"%<i class='icon icon-arrow-red'></i></em></div>";
|
||||
}else{
|
||||
//涨跌幅小于零
|
||||
htmlContent = htmlContent + "<div>近30天涨跌幅: <em class='down'>"+xqOneMonthUpDownRangeValue+"%<i class='icon icon-arrow-green'></i></em></div>";
|
||||
}
|
||||
}else{
|
||||
//为非数字清空放空格
|
||||
htmlContent = htmlContent + "<div>近30天涨跌幅: <em class='down'>"+ +"%<i class='icon icon-arrow-green'></i></em></div>";
|
||||
}
|
||||
|
||||
//相比对于城市均价
|
||||
var cityAvgPriceKey = result.city;
|
||||
//取得对应城市的value
|
||||
var cityAvgPriceValue = cityAvgPriceMap[cityAvgPriceKey];
|
||||
if(!isNaN(cityAvgPriceValue)){
|
||||
if(parseInt(cityAvgPriceValue)>=parseInt(result.price)){
|
||||
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='up'>"+'高'+(parseInt(cityAvgPriceValue)-parseInt(result.price))+'元'+"</em></div>";
|
||||
}else{
|
||||
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='down'>"+'低'+(parseInt(result.price)-parseInt(cityAvgPriceValue))+'元'+"</em></div>";
|
||||
}
|
||||
}else{
|
||||
//为非数字清空放空格
|
||||
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='down'>"+' '+"</em></div>";
|
||||
}
|
||||
htmlContent = htmlContent + "<div>均价: <em class='em02'>"+result.price+"元/㎡</em></div>";
|
||||
htmlContent = htmlContent + "<div class='price'><em><strong>"+tempTotalPrice+"</strong>万</em></div>";
|
||||
htmlContent = htmlContent + "</div></div></a><a class='add open-vertical-modal'><i class='icon icon-add' id="+result.id+" uid="+result.uid+"></i>添加管理</a>"
|
||||
|
||||
Reference in New Issue
Block a user