204 lines
10 KiB
Plaintext
204 lines
10 KiB
Plaintext
<#ftl attributes={"content_type":"text/html; charset=UTF-8"}>
|
|
<#compress>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<title>${name!'未找到小区'}</title>
|
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
|
<link rel="shortcut icon" href="/favicon.ico">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<link rel="stylesheet" href="https://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
|
|
<link rel="stylesheet" href="../static/style/wx.css">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="page-group">
|
|
<div class="page page-current">
|
|
<div class="content">
|
|
<div class="top">
|
|
<div class="buttons-row">
|
|
<a href="#tab1" class="tab-link active button">小区信息</a>
|
|
<a href="#tab2" class="tab-link button">价格走势</a>
|
|
<a href="#tab3" class="tab-link button">小区照片</a>
|
|
<a href="#tab4" class="tab-link button">周边地图</a>
|
|
</div>
|
|
</div>
|
|
<#if !district??>
|
|
未找到小区
|
|
<#else>
|
|
<div class="tabs">
|
|
<div id="tab1" class="tab active">
|
|
<div class="content-block">
|
|
<div class="topic">
|
|
<div class="topicTitle">小区信息</div>
|
|
<div class="topicContent">
|
|
<p><label>本周均价:</label><span><#if districtStatBo??><em><#if districtStatBo.districtStat??>${districtStatBo.districtStat.avgPrice!}<#elseif districtStatBo.villaDistrictStat??>${districtStatBo.villaDistrictStat.avgPrice!}</#if></em> 元/平米</#if></span></p>
|
|
<p><label>小区地址:</label><span>${district.address}<a class="location01 tab-link" href="#tab4" id="around_map"></a></span></p>
|
|
<p><label>开发商:</label><span>${(district.developer)!"-"}</span></p>
|
|
<p><label>物业公司:</label><span>${(district.estateCompany)!"-"}</span></p>
|
|
<p><label>占地面积:</label><span><#if district.allArea??>${district.allArea} 平米<#else>-</#if></span></p>
|
|
<p><label>建筑面积:</label><span><#if district.allArea??>${district.allArea} 平米<#else>-</#if></span></p>
|
|
<p><label>建筑类型:</label><span>${(district.buildType)!"-"}</span></p>
|
|
<p><label>建筑时间:</label><span>${(district.buildDate)!"-"}</span></p>
|
|
<p><label>容积率:</label><span>${(district.cubagePercent)!"-"}</span></p>
|
|
<p><label>绿化率:</label><span>${(district.virescencePercent)!"-"}</span></p>
|
|
<p><label>停车位:</label><span>${(district.carSiteCount)!"-"}</span></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="tab2" class="tab">
|
|
<div class="content-block">
|
|
<div class="topic">
|
|
<div class="topicTitle">小区均价</div>
|
|
<div class="topicContent">
|
|
<p><label>本周均价:</label><span><#if districtStatBo??><em><#if districtStatBo.districtStat??>${districtStatBo.districtStat.avgPrice!}<#elseif districtStatBo.villaDistrictStat??>${districtStatBo.villaDistrictStat.avgPrice!}</#if></em> 元/平米</#if></span></p>
|
|
<div class="charts" id="districtTrendsChart"></div>
|
|
</div>
|
|
</div>
|
|
<div class="topic">
|
|
<div class="topicTitle">小区租金</div>
|
|
<div class="topicContent">
|
|
<p><label>本周租金:</label></p>
|
|
<#if districtStatRentBos?? && districtStatRentBos?size gt 0>
|
|
<#list districtStatRentBos as districtStatRentBo>
|
|
<p><label>${districtStatRentBo.room}居室:</label><span><em><#if districtStatRentBo.districtStatRent??>${districtStatRentBo.districtStatRent.avgPrice}</#if></em> 元/月</span></p>
|
|
</#list>
|
|
<div class="charts" id="districtRentTrendsChart"></div>
|
|
<#else>
|
|
<p><label>1居室:</label><span>暂无数据</span></p>
|
|
<p><label>2居室:</label><span>暂无数据</span></p>
|
|
<p><label>3居室:</label><span>暂无数据</span></p>
|
|
<p><label>4居室:</label><span>暂无数据</span></p>
|
|
</#if>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="tab3" class="tab">
|
|
<div class="content-block">
|
|
<div class="topic">
|
|
<div class="topicTitle">小区照片</div>
|
|
<div class="topicContent">
|
|
<#if district.outPics?? && district.outPics?size gt 0>
|
|
<#list district.outPics as pics>
|
|
<#if pics_index < 6>
|
|
<img src="${pics}">
|
|
</#if>
|
|
</#list>
|
|
</#if>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="tab4" class="tab">
|
|
<div class="content-block">
|
|
<div class="topic">
|
|
<div class="topicTitle">周边地图</div>
|
|
<div style="padding:12px 20px;">
|
|
<div id="myMapObj" style="width:100%;height:500px;"></div>
|
|
<#--<img style="width:100%;height:500px;">-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="content-block">
|
|
<p><a href="../weiXinEvaluation/form?id=${id}" class="button button-big button-fill evaluation_btn external">房产评估</a></p>
|
|
</div>
|
|
</#if>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<#include '/layout/footer.ftl'/>
|
|
<script type="text/javascript" src="https://cdn.hcharts.cn/highcharts/highcharts.js"></script>
|
|
<script type='text/javascript' src='../static/js/wx.js' charset='utf-8'></script>
|
|
<script type="text/javascript" src="../static/js/trend-charts.js"></script>
|
|
<script type="text/javascript" src="https://api.map.baidu.com/api?ak=0a7eM0lkIvpKGPiq1bMCfeH7&v=2.0&callback=initMap"></script>
|
|
<script type="text/javascript">
|
|
var Constants = {
|
|
wwwUrl : '${wwwUrl}',
|
|
picurl : '${picUrl}',
|
|
staticurl: '${staticUrl}',
|
|
environment: '${environment}',
|
|
cityUrl:'${cityUrl}',
|
|
domain:'${domain}',
|
|
root:'${root}',
|
|
city:'${city.spell}', //eg: 'sh'
|
|
cityName:'${city.display}' //eg:'上海'
|
|
}
|
|
$("#around_map").bind("click", function(){
|
|
$(".buttons-row a").removeClass("active");
|
|
$(".buttons-row a[href='#tab4']").addClass("active");
|
|
});
|
|
var clicked = false;
|
|
$("a[href='#tab2']").bind("click", function(){
|
|
if(!clicked) {
|
|
var url = '../districtTrend/yearData?defaultCityName=${district.city!}&districtName=${district.name!}®ion=${district.region!}&block=${district.block!}&keyword=${keyword!}';
|
|
var rentUrl = '../districtTrend/yearRentData?defaultCityName=${district.city!}&districtName=${district.name!}®ion=${district.region!}&block=${district.block!}&keyword=${keyword!}';
|
|
$.getJSON(encodeURI(rentUrl), function(data) {
|
|
createChart('districtRentTrendsChart', data, true);
|
|
});
|
|
$.getJSON(encodeURI(url), function(data) {
|
|
createChart('districtTrendsChart', data, true);
|
|
});
|
|
} else {
|
|
clicked = true;
|
|
}
|
|
});
|
|
<#if districtStatBo??>
|
|
var url = '../districtTrend/yearData?defaultCityName=${district.city!}&districtName=${district.name!}®ion=${district.region!}&block=${district.block!}&keyword=${keyword!}';
|
|
var rentUrl = '../districtTrend/yearRentData?defaultCityName=${district.city!}&districtName=${district.name!}®ion=${district.region!}&block=${district.block!}&keyword=${keyword!}';
|
|
$.getJSON(encodeURI(url), function(data) {
|
|
if(data.series.length>0){
|
|
createChart('districtTrendsChart', data, true);
|
|
}else{
|
|
$(".charts").hide();
|
|
}
|
|
});
|
|
|
|
<#if (district.lat)?? && (district.lat) gt 0>
|
|
var lat = ${district.lat2} / 10000000000.0;
|
|
<#else>
|
|
var lat = 0;
|
|
</#if>
|
|
<#if (district.lng)?? && (district.lng) gt 0>
|
|
var lng = ${district.lng2} / 10000000000.0;
|
|
<#else>
|
|
var lng = 0;
|
|
</#if>
|
|
|
|
function initMap() {
|
|
var map = new BMap.Map("myMapObj");
|
|
map.enableScrollWheelZoom(true)
|
|
if(lat>0){
|
|
var point = new BMap.Point(lng, lat);
|
|
map.centerAndZoom(point, 16);
|
|
// 创建点坐标
|
|
var marker = new BMap.Marker(point);
|
|
map.addOverlay(marker);
|
|
}else{
|
|
map.centerAndZoom('${district.city}',15);
|
|
}
|
|
|
|
var flag = 1;
|
|
map.addEventListener("tilesloaded",function(){
|
|
if(flag==1 && $("#myMapObj").width() > 0){
|
|
map.setCenter(point);
|
|
flag += 1;
|
|
}
|
|
});
|
|
}
|
|
|
|
$(function(){initMap();});
|
|
</#if>
|
|
</script>
|
|
</body>
|
|
</html>
|
|
</#compress> |