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/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}}元/㎡
+
暂无