From 594b356a085b29ed56d8c2aea6ad0b911c76551c Mon Sep 17 00:00:00 2001 From: gaojuan Date: Thu, 12 Apr 2018 11:35:13 +0800 Subject: [PATCH 1/5] update --- fangija-zsyf/js/quotations/collectCity.js | 32 +++++++++++++++ fangija-zsyf/manifest.json | 3 +- fangija-zsyf/views/district/detail.html | 11 +++--- fangija-zsyf/views/house/houseDetail.html | 25 ++++++------ fangija-zsyf/views/quotations/index.html | 6 +-- fangija-zsyf/views/rent/rent.html | 48 +++++++++++------------ 6 files changed, 80 insertions(+), 45 deletions(-) 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}