调整当前小区在当前城市占比情况, 结合具体数据显示问题

This commit is contained in:
raoyanhui
2018-05-09 11:47:59 +08:00
parent a77cd118bd
commit 2ff2ef7626
@@ -388,6 +388,8 @@ function getAnalysisDetail(){
}) })
} }
} }
//当前小区在当前城市占比情况
houseInfo.city = _houseInfo.city; houseInfo.city = _houseInfo.city;
houseInfo.roseRanking = _houseInfo.roseRanking; houseInfo.roseRanking = _houseInfo.roseRanking;
houseInfo.avgpriceRanking = _houseInfo.avgpriceRanking; houseInfo.avgpriceRanking = _houseInfo.avgpriceRanking;
@@ -397,6 +399,16 @@ function getAnalysisDetail(){
$('#roseRankingPercent').css("width", houseInfo.roseRanking+"%"); $('#roseRankingPercent').css("width", houseInfo.roseRanking+"%");
$('#sliderNotePercent').css("left", resultsMap.priceRateContent+"%"); $('#sliderNotePercent').css("left", resultsMap.priceRateContent+"%");
$('#curRatePercent').css("width", resultsMap.curRate+"%"); $('#curRatePercent').css("width", resultsMap.curRate+"%");
if((_houseInfo.roseRanking == 0) && (_houseInfo.avgpriceRanking == 0 || resultsMap.priceRateContent == 0 || _houseInfo.price == 0 || _houseInfo.minSellPrice == 0 || _houseInfo.maxSellPrice == 0 || resultsMap.curRate == 0)){
$('#rankingAndPriceContent').hide();
}
if(_houseInfo.roseRanking == 0){
$('#rankingAndPriceContentRanking').hide();
}
if(_houseInfo.avgpriceRanking == 0 || resultsMap.priceRateContent == 0 || _houseInfo.price == 0 || _houseInfo.minSellPrice == 0 || _houseInfo.maxSellPrice == 0 || resultsMap.curRate == 0){
$('#rankingAndPriceContentPrice').hide();
}
//挂牌建议 //挂牌建议
houseInfo.minAndMaxTotalPrice = (resultsMap.minTotalPrice==0 || resultsMap.maxTotalPrice==0)?"暂无":(parseFloat(resultsMap.minTotalPrice)/10000).toFixed(2)+"万"+" - "+(parseFloat(resultsMap.maxTotalPrice)/10000).toFixed(2)+"万"; houseInfo.minAndMaxTotalPrice = (resultsMap.minTotalPrice==0 || resultsMap.maxTotalPrice==0)?"暂无":(parseFloat(resultsMap.minTotalPrice)/10000).toFixed(2)+"万"+" - "+(parseFloat(resultsMap.maxTotalPrice)/10000).toFixed(2)+"万";
houseInfo.minAndMaxPrice = (resultsMap.minPrice==0 || resultsMap.maxPrice==0)?"暂无":(parseFloat(resultsMap.minPrice)/10000).toFixed(2)+"万/㎡"+" - "+(parseFloat(resultsMap.maxPrice)/10000).toFixed(2)+"万/㎡"; houseInfo.minAndMaxPrice = (resultsMap.minPrice==0 || resultsMap.maxPrice==0)?"暂无":(parseFloat(resultsMap.minPrice)/10000).toFixed(2)+"万/㎡"+" - "+(parseFloat(resultsMap.maxPrice)/10000).toFixed(2)+"万/㎡";
@@ -420,6 +432,8 @@ function getAnalysisDetail(){
//控制周边中介量在当前城市排名显示 //控制周边中介量在当前城市排名显示
if(resultsMap.maxCityAgency == 0 || resultsMap.agencyLevel == 0 ){ if(resultsMap.maxCityAgency == 0 || resultsMap.agencyLevel == 0 ){
$('#maxCityAgencyContent').hide(); $('#maxCityAgencyContent').hide();
//添加此topic, 控制结构显示
$('#maxCityAgencyContent_').show();
} }
//周边房产中介显示 //周边房产中介显示
if(resultsMap.agencyCount == 0){ if(resultsMap.agencyCount == 0){