diff --git a/projects/fangjia-open/src/main/webapp/ccbRent/detail.ftl b/projects/fangjia-open/src/main/webapp/ccbRent/detail.ftl
index 1f13a034f..247c71fc3 100644
--- a/projects/fangjia-open/src/main/webapp/ccbRent/detail.ftl
+++ b/projects/fangjia-open/src/main/webapp/ccbRent/detail.ftl
@@ -228,6 +228,15 @@
};
function init() {
+ // let charts = {}
+ // charts.xData = ["2020-08", "2020-09", "2020-10", "2020-11", "2020-12", "2021-01", "2021-02", "2021-03", "2021-04", "2021-05", "2021-06", "2021-07"]
+ // charts.series = [{
+ // name: '1居室',
+ // data: [3800, 3900, 4000, 4100, 4200, 4200, 4200, 4200]
+ // }];
+ // createChartNow('districtRentTrendsChart', charts, true);
+ // return false;
+
$('span[name="hasLift"]').text(params.hasLift == 'true' ? '有' : '无')
$('span[name="roomNumber"]').text(params.roomNumber != '' ? params.roomNumber + '室' : '')
@@ -277,10 +286,6 @@
let result = data.result;
//历史租金
var charts = {}
- // charts.series = [{
- // name: '1居室',
- // data: [3800, 3900, 4000, 4100, 4200, 4200, 4200, 4200]
- // }];
if (result.trends.distMap[params.room] == undefined) {
console.log("返回历史租金,不存在" + params.room + "居室数据")
$('#districtRentTrendsChart').empty();
@@ -464,11 +469,7 @@
series: data.series,
tooltip: {
formatter: function() {
- if(this.series.name.indexOf('成交量') > -1) {
- return Highcharts.dateFormat('%Y年%m月', this.x) +" 成交: "+ this.y +'套';
- }else {
- return Highcharts.dateFormat('%Y-%m-%d', this.x) +'
'+ this.series.name+ ": "+ this.y +'元/平米';
- }
+ return this.x +'
'+ this.series.name+ ": "+ this.y +'元/平米';
}
}
});