347 lines
11 KiB
HTML
347 lines
11 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<title>小区详情</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">
|
|
|
|
<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
|
|
<link rel="stylesheet" href="../../css/main.css">
|
|
<link rel="stylesheet" href="../../css/theme-orange.css">
|
|
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script>
|
|
|
|
|
|
<style>
|
|
.list-block ul:before{height:0;}
|
|
.list-block ul:after{height:0;}
|
|
.list-block.media-list ul:after{height:1px;}
|
|
.list-block .item-inner:after{height:0;}
|
|
.list-block .item-title{font-size:0.85rem;}
|
|
.list-block.media-list .item-title{font-size:0.75rem;}
|
|
.topicContent .list-block ul:after{height:0;}
|
|
.districtMap + .list-block.media-list span{line-height:1.2rem;}
|
|
.collection02{border:solid 1px #C3C0BC;color:#C3C0BC;}
|
|
.cardPrice01 .card-footer span{width:33%;}
|
|
.cardPrice01 .card-footer span:nth-child(2){text-align:center;}
|
|
.cardNearbyBox01 .cardNearby .card-header{padding-top:0;}
|
|
.topic .topicTitle > span.star{float:none;}
|
|
.topic .topicTitle > span.star .icon{vertical-align:middle;}
|
|
.tabs{width:100%;height:350px;}
|
|
.tabChart1{z-index:1;}
|
|
.tabChart2{z-index:-1;}
|
|
|
|
.mark-icon-box {width:24px;height:30px;position:absolute;z-index:98;}
|
|
.mark-icon-box .mark-icon {width: 20px;height: 30px;display: block;cursor: pointer;font-size: 14px; color: #fff;font-weight: bold;text-align: center;line-height: 24px;background: url(../../images/dw.png) no-repeat;}
|
|
|
|
.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:11px;left:0;z-index:100;}
|
|
.loadingBg .infinite-scroll-preloader{margin-top:30%;}
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="page-group">
|
|
<div class="page page-current" id="districtBaseInfo">
|
|
|
|
<div class="loadingBg">
|
|
<div class="infinite-scroll-preloader">
|
|
<div class="preloader"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<header class="bar bar-nav barBorder ">
|
|
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
|
<span class="icon icon-left"></span>
|
|
</button>
|
|
<h1 class="title">{{name}}</h1>
|
|
</header>
|
|
<div class="content">
|
|
<div class="list-block media-list topList">
|
|
<ul>
|
|
<li>
|
|
<div class="item-content">
|
|
<div class="item-inner">
|
|
<div class="item-title-row" style="max-width:80%;">
|
|
<div class="item-title"><i class="icon icon-address02"></i>{{city}}{{region}}{{address}}</div>
|
|
|
|
<div class="item-after">
|
|
<a class="button theme collection collection01">关注</a>
|
|
<a class="button collection collection02 dn">取消关注</a>
|
|
</div>
|
|
</div>
|
|
<div class="item-subtitle">
|
|
<span class="tag" style="margin-top:0.5rem;">
|
|
<small v-for="tag in tags">{{tag}}</small>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="card cardPrice cardPrice01">
|
|
<div class="card-header">
|
|
<span>当前参考均价</span>
|
|
</div>
|
|
<div class="card-content">
|
|
<div class="card-content-inner">{{avgPrice}}<span>元/㎡</span></div>
|
|
</div>
|
|
<div class="card-footer">
|
|
<span>
|
|
<em v-if="oneMonthUpDownRange < 0"><strong>{{oneMonthUpDownRange*(-1)}}</strong>%<i class="icon icon-arrow-green"></i></em>
|
|
<em v-else><strong>{{oneMonthUpDownRange}}</strong>%<i class="icon icon-arrow-red"></i></em>
|
|
<label>近30天涨跌幅</label>
|
|
</span>
|
|
<span v-if="priceRate">
|
|
<em><strong>{{priceRate}}</strong></em>
|
|
<label>小区均价排名</label>
|
|
</span>
|
|
|
|
<span>
|
|
<em v-if="avgPrice >= cityPrice">高 <strong>{{avgPrice - cityPrice}}</strong> 元</em>
|
|
<em v-else>低<strong>{{cityPrice - avgPrice}}</strong> 元</em>
|
|
<label>相比{{city}}均价</label>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="topic">
|
|
<div class="topicTitle">小区走势分析</div>
|
|
<div class="topicContent" style="padding:0;">
|
|
<div class="content-block content-block01 content-block01a">
|
|
<div class="buttons-row theme" id="trendTabDiv">
|
|
<a href="#tabChart1" class="tab-link button active" id="tabAvgDiv">均价</a>
|
|
<a href="#tabChart2" class="tab-link button" id="tabRentDiv">租金</a>
|
|
</div>
|
|
</div>
|
|
<div class="tabs">
|
|
<div id="tabChart1" class="tab tabChart1 active">
|
|
<div class="content-block content-block01a" style="margin:0;padding-left:0;padding-right:0;">
|
|
<div class="buttons-row theme" style="padding:0 0.75rem;" id="trendDiv1">
|
|
<a t-v="6" class="tab-link button active">半年</a>
|
|
<a t-v="12" class="tab-link button">一年</a>
|
|
<a t-v="36" class="tab-link button">三年</a>
|
|
</div>
|
|
<div class="chart" id="chart01" style="height:360px;"></div>
|
|
</div>
|
|
</div>
|
|
<div id="tabChart2" class="tab tabChart2" style="display: block;">
|
|
<div class="content-block content-block01a" style="margin:0;padding-left:0;padding-right:0;">
|
|
<div class="buttons-row theme" style="padding:0 0.75rem;" id="trendDiv2">
|
|
<a t-v="2" class="tab-link button active">半年</a>
|
|
<a t-v="3" class="tab-link button">一年</a>
|
|
</div>
|
|
<div class="chart" id="chart02" style="margin-top:0.75rem;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--<div class="card cardPrice cardPrice02" style="border-bottom:solid 0.5rem #f3f3f3;">
|
|
<div class="card-footer">
|
|
<span>
|
|
<em><strong>有房说</strong></em>
|
|
</span>
|
|
<span>
|
|
<label style="color:#666;">本小区2月活跃度为20;价格近3个月处于下跌趋势,小区物业一般,交通不便利,所属板块为不活跃。</label>
|
|
</span>
|
|
</div>
|
|
</div>-->
|
|
|
|
<div class="topic" id="distLevelDiv">
|
|
<div class="topicTitle" style="font-size:0.7rem;">小区评级结果:<span class="star"></span></div>
|
|
<div class="topicContent" style="padding:0;">
|
|
<div class="chart" id="chart03"></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="baseInfo" class="list-block">
|
|
<base-info-component></base-info-component>
|
|
</div>
|
|
|
|
|
|
<div class="topic">
|
|
<div class="topicTitle">位置及周边</div>
|
|
<div class="topicContent" style="padding:0;">
|
|
<div class="content-block content-block01 content-block01a" id="aroundLink">
|
|
<div class="buttons-row theme">
|
|
<a class="tab-link button active" id="bus">公交</a>
|
|
<a class="tab-link button" id="subway">地铁</a>
|
|
<a class="tab-link button" id="school">学校</a>
|
|
<a class="tab-link button" id="hos">医院</a>
|
|
<a class="tab-link button" id="bank">银行</a>
|
|
<a class="tab-link button" id="supermark">购物</a>
|
|
</div>
|
|
</div>
|
|
<div class="districtMap" id="districtMap"></div>
|
|
<div class="list-block media-list">
|
|
<ul>
|
|
<li>
|
|
<a onclick="openMapWindow()" class="item-link item-content">
|
|
<div class="item-inner">
|
|
<div class="item-title-row">
|
|
<div class="item-title"><i class="icon icon-address03" style="margin-right:0.3rem;"></i><span>地址:{{address}}</span></div>
|
|
<div class="item-after"><span>详情</span></div>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="nearDistDiv">
|
|
<near-dist-component></near-dist-component>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="content contentSuggest dn" id="noDataDiv">
|
|
<div class="noData">
|
|
<img src="../../images/noData.png">
|
|
<p>您的小区数据目前仍在更新<br>敬请期待</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
|
<script type="text/javascript" src="http://api.map.baidu.com/library/RichMarker/1.2/src/RichMarker_min.js "></script>
|
|
<script>
|
|
|
|
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
|
Zepto = $
|
|
$.config = {router: false}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="../../js/vue.js"></script>
|
|
<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
|
|
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
|
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
|
|
<script type="text/javascript" src="../../config.js"></script>
|
|
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
|
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
|
<script type="text/javascript" src="../../js/echarts.js"></script>
|
|
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
|
|
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
|
|
|
|
|
<script>
|
|
var city = "上海"
|
|
var region = "长宁"
|
|
var name = "新泾三村"
|
|
//var lat = 31.292437
|
|
//var lng = 121.48703
|
|
|
|
// var city="安阳"
|
|
// var region="安阳"
|
|
// var name="宜和苑"
|
|
|
|
var lat;
|
|
var lng;
|
|
var address;
|
|
var tags;
|
|
|
|
var baseInfo = new Vue({
|
|
el: '#districtBaseInfo',
|
|
data: {
|
|
name : "",
|
|
city:"",
|
|
region: "",
|
|
address: "",
|
|
avgPrice:"",
|
|
oneMonthUpDownRange:"",
|
|
priceRate:"",
|
|
cityPrice:"",
|
|
finishBuildingDate:"",
|
|
householdCount:"",
|
|
cubagePercent:"",
|
|
carSiteCount:"",
|
|
virescencePercent:"",
|
|
estateCharge:"",
|
|
moreArea:"",
|
|
developer:"",
|
|
estateCompany:"",
|
|
tags:[],
|
|
nearDists:[],
|
|
regionIndex:"",
|
|
schoolIndex:""
|
|
|
|
}
|
|
})
|
|
|
|
var myChart01 = echarts.init(document.getElementById('chart01'));
|
|
</script>
|
|
<script type="text/javascript" src="../../js/district/districtDetail.js"></script>
|
|
<script type='text/javascript' src='../../js/district/district-map.js' charset='utf-8'></script>
|
|
<script type='text/javascript' src='../component/baseInfoComponent.js' charset='utf-8'></script>
|
|
<script type='text/javascript' src='../component/nearDist.js' charset='utf-8'></script>
|
|
<script>
|
|
//loadDistrictInfo();
|
|
|
|
document.addEventListener('plusready', onPlusReady, false);
|
|
function onPlusReady() {
|
|
var self = plus.webview.currentWebview();
|
|
city = self.city
|
|
region = self.region
|
|
name = self.name;
|
|
// loadDistrictInfo();
|
|
// 创建根实例
|
|
new Vue({
|
|
el: '#baseInfo'
|
|
})
|
|
}
|
|
|
|
//new Vue({
|
|
// el: '#baseInfo'
|
|
// })
|
|
// })
|
|
|
|
function openMapWindow(){
|
|
clicked('arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng});
|
|
}
|
|
|
|
/* 获取title字数,截取title前12字,并添加... */
|
|
$(document).ready(function () {
|
|
var text = $("header .title").text();
|
|
var length = $("header .title").text().length;
|
|
var textStr = "";
|
|
if(length > 12){
|
|
textStr = text.substr(0,12);
|
|
$("header .title").text(textStr + "...");
|
|
}
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<script>
|
|
var t1 = window.setInterval(loadMap,1000);
|
|
function loadMap(){
|
|
if(lng && lat){
|
|
loadMapPoi();
|
|
window.clearInterval(t1);
|
|
}
|
|
}
|
|
/* 小区均价分析 */
|
|
loadKLineData(city, region, name);
|
|
/* 小区租金走势 */
|
|
loadRentTrends(city, region, name);
|
|
|
|
|
|
</script>
|
|
|
|
</body>
|
|
</html> |