调整贷款额度错误
This commit is contained in:
@@ -237,13 +237,14 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq
|
|||||||
//考虑是否为数字,加强逻辑判断
|
//考虑是否为数字,加强逻辑判断
|
||||||
if(!isNaN(tempTotalPrice)){
|
if(!isNaN(tempTotalPrice)){
|
||||||
//转换成元,四舍五入
|
//转换成元,四舍五入
|
||||||
tempTotalPrice = (parseFloat(tempTotalPrice)/10000).toFixed(2);
|
|
||||||
tempTotalPricePercent = (parseFloat(tempTotalPrice)*0.7/10000).toFixed(2);
|
tempTotalPricePercent = (parseFloat(tempTotalPrice)*0.7/10000).toFixed(2);
|
||||||
|
tempTotalPrice = (parseFloat(tempTotalPrice)/10000).toFixed(2);
|
||||||
}
|
}
|
||||||
html += "<li><a href='#' class='item-content'>";
|
html += "<li><a href='#' class='item-content'>";
|
||||||
html += "<div class='item-inner'><div class='item-title-row'>";
|
html += "<div class='item-inner'><div class='item-title-row'>";
|
||||||
html += "<div class='item-title'>"+result.name+" <em>"+tempTotalPrice+"万</em><span class='tag'><small>"+result.liveStatus+"</small></span></div>";
|
html += "<div class='item-title'>"+result.name+" <em>"+tempTotalPrice+"万</em><span class='tag'><small>"+result.liveStatus+"</small></span></div>";
|
||||||
html += "</div><div class='item-subtitle'>";
|
html += "</div><div class='item-subtitle'>";
|
||||||
|
|
||||||
//对应城市地区小区30天涨跌幅
|
//对应城市地区小区30天涨跌幅
|
||||||
var xqOneMonthUpDownRangeKey = result.city+"-"+result.region +"-"+result.name;
|
var xqOneMonthUpDownRangeKey = result.city+"-"+result.region +"-"+result.name;
|
||||||
var xqOneMonthUpDownRangeValue = xqOneMonthUpDownRangeMap[xqOneMonthUpDownRangeKey];
|
var xqOneMonthUpDownRangeValue = xqOneMonthUpDownRangeMap[xqOneMonthUpDownRangeKey];
|
||||||
@@ -257,6 +258,7 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq
|
|||||||
}else{
|
}else{
|
||||||
html += "<div>近30天涨跌幅: <em class='down'> %<i class='icon icon-arrow-green'></i></em></div>";
|
html += "<div>近30天涨跌幅: <em class='down'> %<i class='icon icon-arrow-green'></i></em></div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
//下跌概率
|
//下跌概率
|
||||||
var xqPotentialIndexValue = xqPotentialIndexMap[xqOneMonthUpDownRangeKey];
|
var xqPotentialIndexValue = xqPotentialIndexMap[xqOneMonthUpDownRangeKey];
|
||||||
if(!isNaN(xqPotentialIndexValue)){
|
if(!isNaN(xqPotentialIndexValue)){
|
||||||
@@ -269,7 +271,9 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq
|
|||||||
}else{
|
}else{
|
||||||
html += "<div>下跌概率: <em class='down'> %<i class='icon icon-arrow-green'></i></em></div>";
|
html += "<div>下跌概率: <em class='down'> %<i class='icon icon-arrow-green'></i></em></div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
html += "<div>抵押可贷额度: <em style='color:#EB5F34;'>"+tempTotalPricePercent+"万</em></div></div></div></a>";
|
html += "<div>抵押可贷额度: <em style='color:#EB5F34;'>"+tempTotalPricePercent+"万</em></div></div></div></a>";
|
||||||
|
|
||||||
if(result.level!=null && result.level == 1){
|
if(result.level!=null && result.level == 1){
|
||||||
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>豪宅级</a>";
|
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>豪宅级</a>";
|
||||||
}else if(result.level!=null && result.level == 2){
|
}else if(result.level!=null && result.level == 2){
|
||||||
|
|||||||
Reference in New Issue
Block a user