YOUFANG
This commit is contained in:
@@ -296,95 +296,221 @@ $(document).on('click','.open-vertical-modal', function () {
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
/* 均价走势 */
|
/* 均价走势 */
|
||||||
function yearAvgPrice(){
|
//function yearAvgPrice(){
|
||||||
var categories = new Array();
|
// var categories = new Array();
|
||||||
var series = new Array();
|
// var series = new Array();
|
||||||
var o = new Object();
|
// var o = new Object();
|
||||||
o.name = '龙盛佳苑';
|
// 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();
|
||||||
|
|
||||||
var odata = new Array();
|
districtObj.name = '<#if showObject??>${showObject.name!}</#if>';
|
||||||
o.data = odata
|
regionObj.name = '<#if showObject??>${showObject.region!}</#if>';
|
||||||
series.push(o);
|
cityObj.name = '<#if showObject??>${showObject.city!}</#if>';
|
||||||
|
|
||||||
var o2 = new Object();
|
series.push(districtObj);
|
||||||
o2.name = '上海';
|
series.push(regionObj);
|
||||||
var o2data = new Array();
|
series.push(cityObj);
|
||||||
|
|
||||||
var o3 = new Object();
|
var cityDatas = new Array();
|
||||||
o3.name = '静安';
|
var regionDatas = new Array();
|
||||||
var o3data = new Array();
|
var districtDatas = new Array();
|
||||||
odata.push(46000)
|
var m = re.timeKeys;
|
||||||
o2data.push(50400)
|
if(m){
|
||||||
o3data.push(52800)
|
for(var i=0;i<m.length;i++){
|
||||||
categories.push('2017-02')
|
var date = new Date(Number(m[i]))
|
||||||
odata.push(47000)
|
categories.push(date.format("yyyy-MM"));
|
||||||
o2data.push(50600)
|
if(re.cityAvgZouShi[m[i]] == undefined){
|
||||||
o3data.push(52900)
|
cityDatas.push(null);
|
||||||
categories.push('2017-03')
|
} else {
|
||||||
odata.push(47400)
|
cityDatas.push(re.cityAvgZouShi[m[i]]);
|
||||||
o2data.push(50300)
|
}
|
||||||
o3data.push(52700)
|
if (re.regionAvgZouShi[m[i]] == undefined) {
|
||||||
categories.push('2017-04')
|
regionDatas.push(null);
|
||||||
odata.push(49000)
|
} else {
|
||||||
o2data.push(50200)
|
regionDatas.push(re.regionAvgZouShi[m[i]]);
|
||||||
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
|
if (re.districtAvgZouShi[m[i]] == undefined){
|
||||||
series.push(o3);
|
districtDatas.push(null);
|
||||||
|
} else {
|
||||||
|
districtDatas.push(re.districtAvgZouShi[m[i]]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
o2.data = o2data
|
cityObj.data = cityDatas;
|
||||||
series.push(o2);
|
regionObj.data = regionDatas;
|
||||||
|
districtObj.data = districtDatas;
|
||||||
|
|
||||||
charts = Highcharts.chart('chart', {
|
showChat(categories, series);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* 均价走势 */
|
||||||
|
function showChat(categories, series) {
|
||||||
|
charts =Highcharts.chart('chart02', {
|
||||||
title: {
|
title: {
|
||||||
text: ''
|
text: '',
|
||||||
|
x: -20 //center
|
||||||
},
|
},
|
||||||
subtitle: {
|
subtitle: {
|
||||||
text: '',
|
text: '',
|
||||||
x: -20
|
x: -20
|
||||||
},
|
},
|
||||||
colors: ['#F88C9F', '#AAD672', '#AE94E9'],
|
colors: ['#50a5fc', '#666', '#ff560c'],
|
||||||
xAxis: {
|
xAxis: {
|
||||||
categories: categories,
|
categories: categories,
|
||||||
boundaryGap: false,
|
boundaryGap: false,
|
||||||
tickInterval: 2,
|
tickInterval: 3,
|
||||||
tickLength: 6,
|
tickLength: 8,
|
||||||
labels: {
|
labels: {
|
||||||
style: {
|
style: {
|
||||||
fontSize: 12
|
'font-size': '12px'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -396,43 +522,41 @@ function yearAvgPrice(){
|
|||||||
plotLines: [{
|
plotLines: [{
|
||||||
value: 0,
|
value: 0,
|
||||||
width: 1,
|
width: 1,
|
||||||
color: 'red'
|
color: '#808080'
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
valueSuffix: '元/㎡'
|
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: {
|
legend: {
|
||||||
layout: 'horizontal',
|
layout: 'horizontal',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
verticalAlign: 'bottom',
|
verticalAlign: 'bottom',
|
||||||
y: 0,
|
y: -15,
|
||||||
borderWidth: 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,
|
series: series,
|
||||||
credits: {
|
credits: {
|
||||||
enabled: false
|
enabled: false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
yearAvgPrice();
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
<div id="content">
|
<div id="content">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!--
|
||||||
<div class="newCss">
|
<div class="newCss">
|
||||||
<ul>
|
<ul>
|
||||||
<li><span>房贷</span></li>
|
<li><span>房贷</span></li>
|
||||||
@@ -50,6 +50,7 @@
|
|||||||
<li><span>首套房</span></li>
|
<li><span>首套房</span></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
-->
|
||||||
<div class="adBoxApp">
|
<div class="adBoxApp">
|
||||||
<img src="../../images/wx_app.png">
|
<img src="../../images/wx_app.png">
|
||||||
<p><label>有房 有家 有爱</label><br><small>更多房产资讯上有房APP</small></p>
|
<p><label>有房 有家 有爱</label><br><small>更多房产资讯上有房APP</small></p>
|
||||||
|
|||||||
Reference in New Issue
Block a user