YOUFANG
This commit is contained in:
@@ -296,95 +296,221 @@ $(document).on('click','.open-vertical-modal', function () {
|
||||
<script>
|
||||
|
||||
/* 均价走势 */
|
||||
function yearAvgPrice(){
|
||||
var categories = new Array();
|
||||
var series = new Array();
|
||||
var o = new Object();
|
||||
o.name = '龙盛佳苑';
|
||||
|
||||
var odata = new Array();
|
||||
o.data = odata
|
||||
series.push(o);
|
||||
|
||||
var o2 = new Object();
|
||||
o2.name = '上海';
|
||||
var o2data = new Array();
|
||||
|
||||
var o3 = new Object();
|
||||
o3.name = '静安';
|
||||
var o3data = new Array();
|
||||
odata.push(46000)
|
||||
o2data.push(50400)
|
||||
o3data.push(52800)
|
||||
categories.push('2017-02')
|
||||
odata.push(47000)
|
||||
o2data.push(50600)
|
||||
o3data.push(52900)
|
||||
categories.push('2017-03')
|
||||
odata.push(47400)
|
||||
o2data.push(50300)
|
||||
o3data.push(52700)
|
||||
categories.push('2017-04')
|
||||
odata.push(49000)
|
||||
o2data.push(50200)
|
||||
o3data.push(55200)
|
||||
categories.push('2017-05')
|
||||
odata.push(49400)
|
||||
o2data.push(50800)
|
||||
o3data.push(56100)
|
||||
categories.push('2017-06')
|
||||
odata.push(49600)
|
||||
o2data.push(51900)
|
||||
o3data.push(56900)
|
||||
categories.push('2017-07')
|
||||
odata.push(48400)
|
||||
o2data.push(53100)
|
||||
o3data.push(59400)
|
||||
categories.push('2017-08')
|
||||
odata.push(52200)
|
||||
o2data.push(51200)
|
||||
o3data.push(62400)
|
||||
categories.push('2017-09')
|
||||
odata.push(54900)
|
||||
o2data.push(56200)
|
||||
o3data.push(65600)
|
||||
categories.push('2017-10')
|
||||
odata.push(57400)
|
||||
o2data.push(57000)
|
||||
o3data.push(66800)
|
||||
categories.push('2017-11')
|
||||
odata.push(54800)
|
||||
o2data.push(56700)
|
||||
o3data.push(66200)
|
||||
categories.push('2017-12')
|
||||
odata.push(55000)
|
||||
o2data.push(58300)
|
||||
o3data.push(66000)
|
||||
categories.push('2018-01')
|
||||
|
||||
o3.data = o3data
|
||||
series.push(o3);
|
||||
|
||||
o2.data = o2data
|
||||
series.push(o2);
|
||||
|
||||
charts = Highcharts.chart('chart', {
|
||||
//function yearAvgPrice(){
|
||||
// var categories = new Array();
|
||||
// var series = new Array();
|
||||
// var o = new Object();
|
||||
// o.name = '龙盛佳苑';
|
||||
//
|
||||
// var odata = new Array();
|
||||
// o.data = odata
|
||||
// series.push(o);
|
||||
//
|
||||
// var o2 = new Object();
|
||||
// o2.name = '上海';
|
||||
// var o2data = new Array();
|
||||
//
|
||||
// var o3 = new Object();
|
||||
// o3.name = '静安';
|
||||
// var o3data = new Array();
|
||||
// odata.push(46000)
|
||||
// o2data.push(50400)
|
||||
// o3data.push(52800)
|
||||
// categories.push('2017-02')
|
||||
// odata.push(47000)
|
||||
// o2data.push(50600)
|
||||
// o3data.push(52900)
|
||||
// categories.push('2017-03')
|
||||
// odata.push(47400)
|
||||
// o2data.push(50300)
|
||||
// o3data.push(52700)
|
||||
// categories.push('2017-04')
|
||||
// odata.push(49000)
|
||||
// o2data.push(50200)
|
||||
// o3data.push(55200)
|
||||
// categories.push('2017-05')
|
||||
// odata.push(49400)
|
||||
// o2data.push(50800)
|
||||
// o3data.push(56100)
|
||||
// categories.push('2017-06')
|
||||
// odata.push(49600)
|
||||
// o2data.push(51900)
|
||||
// o3data.push(56900)
|
||||
// categories.push('2017-07')
|
||||
// odata.push(48400)
|
||||
// o2data.push(53100)
|
||||
// o3data.push(59400)
|
||||
// categories.push('2017-08')
|
||||
// odata.push(52200)
|
||||
// o2data.push(51200)
|
||||
// o3data.push(62400)
|
||||
// categories.push('2017-09')
|
||||
// odata.push(54900)
|
||||
// o2data.push(56200)
|
||||
// o3data.push(65600)
|
||||
// categories.push('2017-10')
|
||||
// odata.push(57400)
|
||||
// o2data.push(57000)
|
||||
// o3data.push(66800)
|
||||
// categories.push('2017-11')
|
||||
// odata.push(54800)
|
||||
// o2data.push(56700)
|
||||
// o3data.push(66200)
|
||||
// categories.push('2017-12')
|
||||
// odata.push(55000)
|
||||
// o2data.push(58300)
|
||||
// o3data.push(66000)
|
||||
// categories.push('2018-01')
|
||||
//
|
||||
// o3.data = o3data
|
||||
// series.push(o3);
|
||||
//
|
||||
// o2.data = o2data
|
||||
// series.push(o2);
|
||||
//
|
||||
// charts = Highcharts.chart('chart', {
|
||||
// title: {
|
||||
// text: ''
|
||||
// },
|
||||
// subtitle: {
|
||||
// text: '',
|
||||
// x: -20
|
||||
// },
|
||||
// colors: ['#F88C9F', '#AAD672', '#AE94E9'],
|
||||
// xAxis: {
|
||||
// categories: categories,
|
||||
// boundaryGap: false,
|
||||
// tickInterval: 2,
|
||||
// tickLength: 6,
|
||||
// labels: {
|
||||
// style: {
|
||||
// fontSize: 12
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// yAxis: {
|
||||
// allowDecimals: false,
|
||||
// title: {
|
||||
// text: ''
|
||||
// },
|
||||
// plotLines: [{
|
||||
// value: 0,
|
||||
// width: 1,
|
||||
// color: 'red'
|
||||
// }]
|
||||
// },
|
||||
// tooltip: {
|
||||
// valueSuffix: '元/㎡'
|
||||
// },
|
||||
// legend: {
|
||||
// layout: 'horizontal',
|
||||
// align: 'center',
|
||||
// verticalAlign: 'bottom',
|
||||
// y: 0,
|
||||
// borderWidth: 0
|
||||
// },
|
||||
// plotOptions: {
|
||||
// line: {
|
||||
// connectNulls: true //该设置会连接空值点
|
||||
// },
|
||||
// series: {
|
||||
// events: {
|
||||
// legendItemClick: function(e) {
|
||||
// return false;
|
||||
// }
|
||||
// },
|
||||
// marker: {
|
||||
// radius: 3, //曲线点半径,默认是4
|
||||
// symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// series: series,
|
||||
// credits: {
|
||||
// enabled: false
|
||||
// }
|
||||
// })
|
||||
//}
|
||||
//yearAvgPrice();
|
||||
function loadingChart(hid, city, region, name, type, cat){
|
||||
$.ajax({
|
||||
type : "GET",
|
||||
url : "../youfang/getDistrictPriceZouShi?id="+hid+"&type="+type+"&cat="+cat+"&city="+city+"®ion="+region+"&name="+name,
|
||||
dataType:"json",
|
||||
data : {},
|
||||
async:false,
|
||||
success : function(re) {
|
||||
var categories = new Array();
|
||||
var series = new Array();
|
||||
var cityObj = new Object();
|
||||
var regionObj = new Object();
|
||||
var districtObj = new Object();
|
||||
|
||||
districtObj.name = '<#if showObject??>${showObject.name!}</#if>';
|
||||
regionObj.name = '<#if showObject??>${showObject.region!}</#if>';
|
||||
cityObj.name = '<#if showObject??>${showObject.city!}</#if>';
|
||||
|
||||
series.push(districtObj);
|
||||
series.push(regionObj);
|
||||
series.push(cityObj);
|
||||
|
||||
var cityDatas = new Array();
|
||||
var regionDatas = new Array();
|
||||
var districtDatas = new Array();
|
||||
var m = re.timeKeys;
|
||||
if(m){
|
||||
for(var i=0;i<m.length;i++){
|
||||
var date = new Date(Number(m[i]))
|
||||
categories.push(date.format("yyyy-MM"));
|
||||
if(re.cityAvgZouShi[m[i]] == undefined){
|
||||
cityDatas.push(null);
|
||||
} else {
|
||||
cityDatas.push(re.cityAvgZouShi[m[i]]);
|
||||
}
|
||||
if (re.regionAvgZouShi[m[i]] == undefined) {
|
||||
regionDatas.push(null);
|
||||
} else {
|
||||
regionDatas.push(re.regionAvgZouShi[m[i]]);
|
||||
}
|
||||
|
||||
if (re.districtAvgZouShi[m[i]] == undefined){
|
||||
districtDatas.push(null);
|
||||
} else {
|
||||
districtDatas.push(re.districtAvgZouShi[m[i]]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cityObj.data = cityDatas;
|
||||
regionObj.data = regionDatas;
|
||||
districtObj.data = districtDatas;
|
||||
|
||||
showChat(categories, series);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/* 均价走势 */
|
||||
function showChat(categories, series) {
|
||||
charts =Highcharts.chart('chart02', {
|
||||
title: {
|
||||
text: ''
|
||||
text: '',
|
||||
x: -20 //center
|
||||
},
|
||||
subtitle: {
|
||||
text: '',
|
||||
x: -20
|
||||
},
|
||||
colors: ['#F88C9F', '#AAD672', '#AE94E9'],
|
||||
colors: ['#50a5fc', '#666', '#ff560c'],
|
||||
xAxis: {
|
||||
categories: categories,
|
||||
boundaryGap: false,
|
||||
tickInterval: 2,
|
||||
tickLength: 6,
|
||||
tickInterval: 3,
|
||||
tickLength: 8,
|
||||
labels: {
|
||||
style: {
|
||||
fontSize: 12
|
||||
'font-size': '12px'
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -396,43 +522,41 @@ function yearAvgPrice(){
|
||||
plotLines: [{
|
||||
value: 0,
|
||||
width: 1,
|
||||
color: 'red'
|
||||
color: '#808080'
|
||||
}]
|
||||
},
|
||||
tooltip: {
|
||||
valueSuffix: '元/㎡'
|
||||
},
|
||||
plotOptions: {
|
||||
line: {
|
||||
connectNulls:true//该设置会连接空值点
|
||||
},
|
||||
series: {
|
||||
events: {
|
||||
legendItemClick: function(event) {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
marker: {
|
||||
radius: 3, //曲线点半径,默认是4
|
||||
symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
|
||||
}
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
layout: 'horizontal',
|
||||
align: 'center',
|
||||
verticalAlign: 'bottom',
|
||||
y: 0,
|
||||
y: -15,
|
||||
borderWidth: 0
|
||||
},
|
||||
plotOptions: {
|
||||
line: {
|
||||
connectNulls: true //该设置会连接空值点
|
||||
},
|
||||
series: {
|
||||
events: {
|
||||
legendItemClick: function(e) {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
marker: {
|
||||
radius: 3, //曲线点半径,默认是4
|
||||
symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
|
||||
}
|
||||
}
|
||||
},
|
||||
series: series,
|
||||
credits: {
|
||||
credits: {
|
||||
enabled: false
|
||||
}
|
||||
})
|
||||
}
|
||||
yearAvgPrice();
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<div id="content">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
<div class="newCss">
|
||||
<ul>
|
||||
<li><span>房贷</span></li>
|
||||
@@ -50,6 +50,7 @@
|
||||
<li><span>首套房</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
-->
|
||||
<div class="adBoxApp">
|
||||
<img src="../../images/wx_app.png">
|
||||
<p><label>有房 有家 有爱</label><br><small>更多房产资讯上有房APP</small></p>
|
||||
|
||||
Reference in New Issue
Block a user