diff --git a/fangija-zsyf/js/quotations/cityDetail.js b/fangija-zsyf/js/quotations/cityDetail.js index 12aa4d7..ae65de7 100644 --- a/fangija-zsyf/js/quotations/cityDetail.js +++ b/fangija-zsyf/js/quotations/cityDetail.js @@ -27,7 +27,6 @@ function loadMyCollectCity(){ function loadCurCity(city){ plus.nativeUI.showWaiting(); - axios.get("/rest/quotations/userCollectCitys",{}).then(function (response) { var curDatas = response.data.data if(curDatas && curDatas.length>0){ @@ -237,10 +236,20 @@ function loadTrends(times, cityPriceMap, countMap){ var pm = cityPriceMap; var cm = countMap; if(pm){ - prices.push(pm[time]) + if(pm[time]){ + prices.push(pm[time]) + }else{ + prices.push(null) + } + } if(cm){ - counts.push(cm[time]); + if(cm[time]){ + counts.push(cm[time]); + }else{ + counts.push(null); + } + } } showChart("price_chart", times, prices, counts) diff --git a/fangija-zsyf/views/evaluate/evaluateReport.html b/fangija-zsyf/views/evaluate/evaluateReport.html index ad0dfcb..5425532 100644 --- a/fangija-zsyf/views/evaluate/evaluateReport.html +++ b/fangija-zsyf/views/evaluate/evaluateReport.html @@ -43,7 +43,7 @@
{{city_region}}
-
{{house_type}}
+
{{house_room_num}}
@@ -152,7 +152,7 @@ $.config = {router: false} data:{ name:"", city_region:"", - house_type:"" + house_room_num:"" } }) var house_price = new Vue({ @@ -222,7 +222,8 @@ $.config = {router: false} h = response.data.data house_info.name = h.name house_info.city_region = h.city+"-"+h.region - house_info.house_type = (h.roomCount==0?"":h.roomCount+"室")+(h.hallCount==0?"":h.hallCount+"厅 ")+(h.area==0?"":h.area+"㎡ ")+((h.floor==0||h.height==0)?"":h.floor+"/"+h.height+"层") + house_info.house_room_num = (h.houseRoomNum==null||h.houseRoomNum=="")?"暂无":h.houseRoomNum; +// house_info.house_type = (h.roomCount==0?"":h.roomCount+"室")+(h.hallCount==0?"":h.hallCount+"厅 ")+(h.area==0?"":h.area+"㎡ ")+((h.floor==0||h.height==0)?"":h.floor+"/"+h.height+"层") if(h.totalPrice==0){ house_price.total_price = "暂无"; }else{ @@ -243,17 +244,22 @@ $.config = {router: false} house_price.percentage_30="暂无" } house_price.city=h.city - if(h.compareMoney<0){ - house_price.compare_word="低" - house_price.words="元" - house_price.compare_money=-h.compareMoney - }else if(h.compareMoney>0){ - house_price.compare_word="高" - house_price.words="元" - house_price.compare_money=h.compareMoney + if(h.avgPrice==0){ + house_price.words="暂无" }else{ - house_price.compare_money="相等" + if(h.compareMoney<0){ + house_price.compare_word="低" + house_price.words="元" + house_price.compare_money=-h.compareMoney + }else if(h.compareMoney>0){ + house_price.compare_word="高" + house_price.words="元" + house_price.compare_money=h.compareMoney + }else{ + house_price.compare_money="相等" + } } + // if(h.evaluatePercent<0){ // evaluate_msg.evaluate_words="下跌概率" // evaluate_msg.arrow="icon icon-arrow-green" diff --git a/fangija-zsyf/views/house/cityDetail.html b/fangija-zsyf/views/house/cityDetail.html index c2e6027..c50cad5 100644 --- a/fangija-zsyf/views/house/cityDetail.html +++ b/fangija-zsyf/views/house/cityDetail.html @@ -46,7 +46,8 @@ 当前参考均价
-
{{myCityMap.cityTopMonthAvgPrice}}元/㎡
+
{{myCityMap.cityTopMonthAvgPrice}}元/㎡
+
暂无