Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1

This commit is contained in:
zongzhimin
2018-04-12 11:53:05 +08:00
15 changed files with 310 additions and 60 deletions
+32
View File
@@ -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);
});
})