378 lines
11 KiB
HTML
378 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 .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;}
|
|
.cardNearbyBox01 .cardNearby .card-header:nth-child(2){padding-top:0;}
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="page-group">
|
|
<div class="page page-current">
|
|
<header class="bar bar-nav barBorder">
|
|
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
|
<span class="icon icon-left"></span>
|
|
</button>
|
|
<h1 class="title">龙盛佳苑</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>上海市静安区沪太路1329弄</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>近地铁</small><small>公交多</small><small>买菜做饭</small></span>
|
|
</div>
|
|
<div class="item-subtitle row" style="margin-top:0.5rem;margin-bottom:0.3rem;">
|
|
<span class="star col-50">小区关注 <i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon"></i></span>
|
|
<span class="star col-50">生活便利 <i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon"></i></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="cardRentBox">
|
|
<div class="cardRentWin">
|
|
<div class="card cardRent">
|
|
<div class="card-content">
|
|
<div class="card-content-inner"><em>3450</em> 元/月<br><small>一室</small></div>
|
|
</div>
|
|
</div>
|
|
<div class="card cardRent">
|
|
<div class="card-content">
|
|
<div class="card-content-inner"><em>4400</em> 元/月<br><small>二室</small></div>
|
|
</div>
|
|
</div>
|
|
<div class="card cardRent">
|
|
<div class="card-content">
|
|
<div class="card-content-inner"><em>4991</em> 元/月<br><small>三室</small></div>
|
|
</div>
|
|
</div>
|
|
<div class="card cardRent">
|
|
<div class="card-content">
|
|
<div class="card-content-inner"><em>5213</em> 元/月<br><small>三室以上</small></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="baseInfo" class="list-block">
|
|
<base-info-component></base-info-component>
|
|
</div>
|
|
|
|
|
|
<div class="topic">
|
|
<div class="topicTitle" style="position:relative;">小区租金走势
|
|
<div class="content-block">
|
|
<div class="buttons-row theme">
|
|
<a href="#tabChartRent1" class="tab-link button active">半年</a>
|
|
<a href="#tabChartRent2" class="tab-link button">一年</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
|
|
<div class="chart" id="chart02"></div>
|
|
</div>
|
|
</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 href="#tabAround1" class="tab-link button active">公交</a>
|
|
<a href="#tabAround2" class="tab-link button">地铁</a>
|
|
<a href="#tabAround3" class="tab-link button">学校</a>
|
|
<a href="#tabAround4" class="tab-link button">医院</a>
|
|
<a href="#tabAround5" class="tab-link button">银行</a>
|
|
<a href="#tabAround6" class="tab-link button">购物</a>
|
|
</div>
|
|
</div>
|
|
<div class="districtMap" id="districtMap"></div>
|
|
<div class="list-block media-list">
|
|
<ul>
|
|
<li>
|
|
<a href="01_index05_around.html" 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>地址:沪太路1329弄</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>
|
|
</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>
|
|
var city = "杭州"
|
|
var region = "上城"
|
|
var name = "丁衙巷小区"
|
|
//var lat = 31.292437
|
|
//var lng = 121.48703
|
|
|
|
var lat;
|
|
var lng;
|
|
var address;
|
|
var tags;
|
|
|
|
|
|
</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>
|
|
|
|
// 创建根实例
|
|
new Vue({
|
|
el: '#baseInfo'
|
|
})
|
|
new Vue({
|
|
el: '#nearDistDiv'
|
|
})
|
|
|
|
/* 获取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 + "...");
|
|
}
|
|
});
|
|
|
|
/* 关注&已关注切换 */
|
|
$(".collection01").on("click", function () {
|
|
$(".collection01").hide();
|
|
$(".collection02").show();
|
|
$.toast("随时掌握房租变化");
|
|
});
|
|
$(".collection02").on("click", function () {
|
|
$(".collection02").hide();
|
|
$(".collection01").show();
|
|
$.toast("取消关注");
|
|
});
|
|
|
|
/* button状态切换 */
|
|
$(".content-block .button").on("click", function () {
|
|
$(this).parent().children().removeClass("active");
|
|
$(this).addClass("active");
|
|
});
|
|
|
|
/* 点击位置及周边跳转到位置及周边页 */
|
|
$("#aroundLink .button").on("click", function () {
|
|
window.location.href = "01_index05_around.html";
|
|
});
|
|
|
|
/* 点击附近小区跳转到小区详情页 */
|
|
$(".cardNearby").on("click", function(){
|
|
window.location.href = "01_index04_districtDetail.html";
|
|
});
|
|
|
|
/* 获取附近小区名称字数,截取附近小区名称前5字,并添加... */
|
|
$(document).ready(function () {
|
|
$(".cardNearby .card-header:nth-child(1)").each(function(){
|
|
var text = $(this).text();
|
|
var length = $(this).text().length;
|
|
var textStr = "";
|
|
if(length > 5){
|
|
textStr = text.substr(0,5);
|
|
$(this).text(textStr + "...");
|
|
}
|
|
});
|
|
});
|
|
|
|
/* 地图 */
|
|
$(document).ready(function(){
|
|
// 百度地图API功能
|
|
var map0 = new BMap.Map("districtMap");
|
|
var point0 = new BMap.Point(121.430836, 31.288597);
|
|
map0.centerAndZoom(point0, 17);
|
|
map0.enableScrollWheelZoom(true); // 开启鼠标滚轮缩放
|
|
// 编写自定义函数,创建标注
|
|
var marker0 = new BMap.Marker(point0)
|
|
map0.addOverlay(marker0);
|
|
// marker0.addEventListener("click", function(){
|
|
// this.openInfoWindow(new BMap.InfoWindow('龙盛佳苑<br>沪太路1329弄<br>均价:65241元/㎡'));
|
|
// });
|
|
});
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript" src="js/echarts.js" charset="utf-8"></script>
|
|
|
|
<script>
|
|
|
|
/* 小区租金走势 */
|
|
var option02 = {
|
|
tooltip: {
|
|
trigger: 'axis',
|
|
textStyle: {
|
|
fontFamily: 'arial,华文细黑',
|
|
fontSize: 12
|
|
},
|
|
formatter: '{a0}: {c0}元/月<br>{a1}: {c1}元/月<br>{a2}: {c2}元/月<br>{a3}: {c3}元/月<br>{a4}: {c4}元/月'
|
|
},
|
|
grid:{
|
|
x: 54,
|
|
y: 10,
|
|
x2: 16,
|
|
y2: 60,
|
|
borderWidth: 1
|
|
},
|
|
color: ['#F88C9F', '#FFBF5C', '#AAD672', '#78CDE6', '#AE94E9'],
|
|
legend: {
|
|
data: ['一室', '二室', '三室', '四室', '五室'],
|
|
y: 'bottom',
|
|
textStyle: {
|
|
fontFamily: '华文细黑',
|
|
fontWeight: 'bold'
|
|
},
|
|
itemWidth: 16,
|
|
itemHeight: 8
|
|
},
|
|
xAxis: {
|
|
type: 'category',
|
|
boundaryGap: false,
|
|
axisLine: {
|
|
lineStyle: {
|
|
color: '#ccc'
|
|
}
|
|
},
|
|
axisLabel: {
|
|
textStyle: {
|
|
fontFamily: 'arial',
|
|
color: '#666'
|
|
}
|
|
},
|
|
data: ['2017-02', '2017-03', '2017-04', '2017-05', '2017-06', '2017-07',
|
|
'2017-08', '2017-09', '2017-10', '2017-11', '2017-12', '2018-01'],
|
|
},
|
|
yAxis: {
|
|
type: 'value',
|
|
axisLine: {
|
|
lineStyle: {
|
|
color: '#ccc'
|
|
}
|
|
},
|
|
axisLabel: {
|
|
textStyle: {
|
|
fontFamily: 'arial',
|
|
color: '#666'
|
|
}
|
|
}
|
|
},
|
|
series: [
|
|
{
|
|
name: '一室',
|
|
type: 'line',
|
|
symbol: 'circle',
|
|
symbolSize: 6,
|
|
data: [2200, 2040, 2790, 2940, 2360, 2440, 2220, 2490, 2740, 2480, 2500, 2860]
|
|
},
|
|
{
|
|
name: '二室',
|
|
type: 'line',
|
|
symbol: 'circle',
|
|
symbolSize: 6,
|
|
data: [3200, 3040, 3790, 3940, 3360, 3440, 3220, 3490, 3740, 3480, 3500, 3860]
|
|
},
|
|
{
|
|
name: '三室',
|
|
type: 'line',
|
|
symbol: 'circle',
|
|
symbolSize: 6,
|
|
data: [4200, 4040, 4790, 4940, 4360, 4440, 4220, 4490, 4740, 4480, 4500, 4860]
|
|
},
|
|
{
|
|
name: '四室',
|
|
type: 'line',
|
|
symbol: 'circle',
|
|
symbolSize: 6,
|
|
data: [5200, 5040, 5790, 5940, 5360, 5440, 5220, 5490, 5740, 5480, 5500, 5860]
|
|
},
|
|
{
|
|
name: '五室',
|
|
type: 'line',
|
|
symbol: 'circle',
|
|
symbolSize: 6,
|
|
data: [6200, 6040, 6790, 6940, 6360, 6440, 6220, 6490, 6740, 6480, 6500, 6860]
|
|
}
|
|
]
|
|
};
|
|
var myChart02 = echarts.init(document.getElementById('chart02'));
|
|
myChart02.setOption(option02,true);
|
|
|
|
</script>
|
|
|
|
</body>
|
|
</html> |