diff --git a/fangija-zsyf/js/quotations/collectCity.js b/fangija-zsyf/js/quotations/collectCity.js index 00be6e0..06cb7f4 100644 --- a/fangija-zsyf/js/quotations/collectCity.js +++ b/fangija-zsyf/js/quotations/collectCity.js @@ -215,6 +215,38 @@ function loadNearDistrict(){ $(".button").click(function(){ console.log("type:"+$(this).text()) + var type = (this).attr("v") + var city = (this).attr("city") + axios.get("/rest/quotations/loadCityPriceTrends", { + params: { + city: city, + type:type + } + }).then(function (response) { + + var datas = trends.data.data + var prices = [] + var counts = [] + var times = datas.times + for(var i in times){ + var time = times[i] + time = parseInt(time.replace("-","")) + var pm = datas.cityPriceMap; + var cm = datas.countMap; + if(pm){ + prices.push(pm[time]) + } + if(cm){ + counts.push(cm[time]); + } + } + + showChart(num+"_price_chart", obj.times, prices, counts) + + }).catch(function (error) { + alert(error) + console.log(error); + }); }) diff --git a/fangija-zsyf/manifest.json b/fangija-zsyf/manifest.json index 101a051..f06e113 100644 --- a/fangija-zsyf/manifest.json +++ b/fangija-zsyf/manifest.json @@ -1492,7 +1492,8 @@ "start.html", "views/user/userInfo.html", "views/evaluate/evaluateList.html", - "views/house/houseManageList.html" + "views/house/houseManageList.html", + "views/house/houseDetail.html" ], "priority": 0 }, diff --git a/fangija-zsyf/views/district/detail.html b/fangija-zsyf/views/district/detail.html index 5a266c9..44abd11 100644 --- a/fangija-zsyf/views/district/detail.html +++ b/fangija-zsyf/views/district/detail.html @@ -289,7 +289,7 @@ $.config = {router: false} - @@ -630,10 +634,7 @@ $.config = {router: false}