1102 lines
45 KiB
HTML
1102 lines
45 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/city.css">
|
||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||
|
||
<style>
|
||
.cardInfo02 .item-title{white-space:normal;text-align:justify;display:block;}
|
||
.cardInfo02 .item-subtitle{margin-top:0.2rem;}
|
||
.cardCity01 .card-footer span:nth-child(2){text-align:center;}
|
||
.cardNearbyBox01 .cardNearby .card-content-inner{padding-bottom:0.25rem;}
|
||
</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="buttons-tab fixed-tab theme">
|
||
<a href="#tabQuotation1" class="tab-link active button">全国</a>
|
||
<a href="#tabQuotation2" class="tab-link button">上海</a>
|
||
<a href="#tabQuotation3" class="tab-link button">添加</a>
|
||
</div>
|
||
|
||
<div class="tabs">
|
||
<div id="tabQuotation1" class="tab active">
|
||
<div class="card cardPrice cardPrice01 cardCity" id="countryInfo">
|
||
<div class="card-header">
|
||
<label>全国</label>
|
||
</div>
|
||
<div class="card-header">
|
||
<span>{{nowYear}}年{{nowMonth}}月全国{{cityCount}}个城市房价</span>
|
||
</div>
|
||
<div class="card-content">
|
||
<div class="card-content-inner row">
|
||
<span class="col-50">
|
||
<em class="up"><strong>{{upRate}}</strong>%</em>
|
||
<label>城市上涨</label>
|
||
</span>
|
||
<span class="col-50">
|
||
<em class="down"><strong>{{downRate}}</strong>%</em>
|
||
<label>城市下跌</label>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-footer">
|
||
<span>
|
||
<label>平均涨幅:</label>
|
||
<em><strong>{{(avgUpRate*100).toFixed(2)}}</strong>%<i class="icon icon-arrow-red"></i></em>
|
||
</span>
|
||
<span>
|
||
<label>平均跌幅:</label>
|
||
<em><strong>{{(avgUownRate*(-100)).toFixed(2)}}</strong>%<i class="icon icon-arrow-green"></i></em>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div id="myFocusFirstPage">
|
||
<my_focus></my_focus>
|
||
</div>
|
||
<div class="cardNearbyBox cardNearbyBox01 cardRankingBox cardRankingBox01" id="countryRank">
|
||
<div class="cardNearbyWin">
|
||
<div class="card cardNearby cardRanking" v-for="item in datas">
|
||
<div class="card-header" v-if="item.type==0">
|
||
城市涨幅排行
|
||
</div>
|
||
<div class="card-header" v-else-if="item.type==1">
|
||
城市潜力排行
|
||
</div>
|
||
<div class="card-header" v-else-if="item.type==2">
|
||
城市均价排行
|
||
</div>
|
||
<div class="card-header"><em>①</em>{{item.city}}</div>
|
||
<div class="card-content">
|
||
<div class="card-content-inner" v-if="item.type==0">
|
||
<em class="up">{{item.oneMonthUpDownRange*100}}%<i class="icon icon-arrow-red"></i></em>
|
||
</div>
|
||
<div class="card-content-inner" v-else-if="item.type==1">
|
||
潜力指数
|
||
</div>
|
||
<div class="card-content-inner" v-else-if="item.type==2">
|
||
<em class="up">{{Math.abs(item.oneMonthUpDownRange*100)}}%
|
||
<i class="icon icon-arrow-red" v-show="item.oneMonthUpDownRange>0"></i>
|
||
<i class="icon icon-arrow-green" v-show="item.oneMonthUpDownRange<0"></i>
|
||
</em>
|
||
</div>
|
||
</div>
|
||
<div class="card-footer" v-if="item.type==1">
|
||
<span class="star" v-if="item.index <=4">
|
||
<i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
||
</span>
|
||
<span class="star" v-else-if="item.index >=5 && item.index<15">
|
||
<i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
||
</span>
|
||
<span class="star" v-else-if="item.index >=15 && item.index<25">
|
||
<i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
||
</span>
|
||
<span class="star" v-else-if="item.index >=25 && item.index<35">
|
||
<i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
||
</span>
|
||
<span class="star" v-else-if="item.index >=35 && item.index<45">
|
||
<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
||
</span>
|
||
<span class="star" v-else-if="item.index >=45 && item.index<55">
|
||
<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star02"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
||
</span>
|
||
<span class="star" v-else-if="item.index >=55 && item.index<65">
|
||
<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i>
|
||
</span>
|
||
<span class="star" v-else-if="item.index >=65 && item.index<75">
|
||
<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 icon-star"></i>
|
||
</span>
|
||
<span class="star" v-else-if="item.index >=75 && item.index<85">
|
||
<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 icon-star"></i>
|
||
</span>
|
||
<span class="star" v-else-if="item.index >=85 && item.index<95">
|
||
<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 icon-star02"></i>
|
||
</span>
|
||
<span class="star" v-else>
|
||
<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 icon-star01"></i>
|
||
</span>
|
||
</div>
|
||
<div class="card-footer" v-else>
|
||
<em>{{item.avgPrice}}元/㎡</em>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="topic">
|
||
<div class="topicTitle">房产热点城市</div>
|
||
<div class="topicContent cityImgBox row">
|
||
<div class="col-33">
|
||
<img src="../../images/cityImg01.png">
|
||
<p>北京</p>
|
||
</div>
|
||
<div class="col-33">
|
||
<img src="../../images/cityImg02.png">
|
||
<p>上海</p>
|
||
</div>
|
||
<div class="col-33">
|
||
<img src="../../images/cityImg03.png">
|
||
<p>深圳</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="swiper-slide">
|
||
<div class="card cardPrice cardPrice01 cardCity01">
|
||
<div class="card-header">
|
||
<label>上海</label>
|
||
<a class="button theme collection collection01">关注</a>
|
||
<a class="button collection collection02 dn">取消</a>
|
||
</div>
|
||
<div class="card-header">
|
||
<span>当前参考均价</span>
|
||
</div>
|
||
<div class="card-content">
|
||
<div class="card-content-inner">65079<span>元/㎡</span></div>
|
||
</div>
|
||
<div class="card-footer">
|
||
<span>
|
||
<em><strong>3.37</strong>%<i class="icon icon-arrow-green"></i></em>
|
||
<label>近30天涨跌幅</label>
|
||
</span>
|
||
<span>
|
||
<em><strong>5</strong></em>
|
||
<label>城市涨跌排名</label>
|
||
</span>
|
||
<span>
|
||
<em><strong>12</strong>%<i class="icon icon-arrow-green"></i></em>
|
||
<label>下跌概率</label>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="card cardPrice cardPrice02 cardPrice02a" style="border-bottom:solid 0.5rem #f3f3f3;">
|
||
<div class="card-footer">
|
||
<span>
|
||
<img src="../../images/photo.png">
|
||
<em><strong>老罗说行情</strong></em>
|
||
</span>
|
||
<span>
|
||
<label style="color:#666;">本小区2月活跃度为20;价格近3个月处于下跌趋势,小区物业一般,交通不便利,所属板块为不活跃。</label>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="topic">
|
||
<div class="topicTitle topicTitle02">2018年1月楼市行情<span><a href="02_quotation02_ranking.html">区县涨跌详情<i class="icon icon-right"></i></a></span></div>
|
||
<div class="topicContent" style="padding-top:0;">
|
||
<div class="chartBox row">
|
||
<span class="col-50">
|
||
<div class="chart" id="chartUp"></div>
|
||
<label>平均涨幅:</label>
|
||
<em><strong>2.13</strong>%<i class="icon icon-arrow-red"></i></em>
|
||
</span>
|
||
<span class="col-50">
|
||
<div class="chart" id="chartDown"></div>
|
||
<label>平均跌幅:</label>
|
||
<em><strong>1.41</strong>%<i class="icon icon-arrow-green"></i></em>
|
||
</span>
|
||
</div>
|
||
</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">
|
||
<a href="#tabChart1" class="tab-link button active" id="tabAvg">均价</a>
|
||
<a href="#tabChart2" class="tab-link button" id="tabRent">租金</a>
|
||
</div>
|
||
</div>
|
||
<div id="tabChart" class="tabs">
|
||
<div id="tabChart1" class="tab 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;">
|
||
<a href="#tabChartAvg1" class="tab-link button active">半年</a>
|
||
<a href="#tabChartAvg2" class="tab-link button">一年</a>
|
||
<a href="#tabChartAvg3" class="tab-link button">三年</a>
|
||
</div>
|
||
<div class="chart" id="chart01" style="height:360px;"></div>
|
||
</div>
|
||
</div>
|
||
<div id="tabChart2" class="tab">
|
||
<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;">
|
||
<a href="#tabChartRent1" class="tab-link button active">半年</a>
|
||
<a href="#tabChartRent2" class="tab-link button">一年</a>
|
||
</div>
|
||
<div class="chart" id="chart02" style="margin-top:1.25rem;"></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="topic">
|
||
<div class="topicTitle topicTitle03"><img src="../../images/lineImg.png">城市报告<img src="../../images/lineImg.png"></div>
|
||
<div class="topicContent" style="padding:0;padding-bottom:0.5rem;">
|
||
<div class="content-block content-block01 content-block01a" style="padding-bottom:0.5rem;">
|
||
<div class="buttons-row theme">
|
||
<a href="#tabCityReport1" class="tab-link button active">人口</a>
|
||
<a href="#tabCityReport2" class="tab-link button">经济</a>
|
||
<a href="#tabCityReport3" class="tab-link button">景点/高校</a>
|
||
<a href="#tabCityReport4" class="tab-link button">气候</a>
|
||
<a href="#tabCityReport5" class="tab-link button">交通</a>
|
||
</div>
|
||
</div>
|
||
<div class="tabs">
|
||
<div id="tabCityReport1" class="tab active">
|
||
<div class="list-block dataList">
|
||
<ul>
|
||
<li class="item-content">
|
||
<div class="item-inner">
|
||
<div class="item-text">总人口:<em>2418.33万</em><small>(2017年常住人口)</small></div>
|
||
</div>
|
||
</li>
|
||
<li class="item-content">
|
||
<div class="item-inner">
|
||
<div class="item-text">面积:<em>6340k㎡</em></div>
|
||
</div>
|
||
</li>
|
||
<li class="item-content">
|
||
<div class="item-inner">
|
||
<div class="item-text">发展指数:<em>0.852</em><small>(极高,2014年)</small></div>
|
||
</div>
|
||
</li>
|
||
<li class="item-content">
|
||
<div class="item-inner">
|
||
<div class="item-text">行政区级别:<em>直辖市</em></div>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div id="tabCityReport2" class="tab">
|
||
<div class="list-block dataList">
|
||
<ul>
|
||
<li class="item-content">
|
||
<div class="item-inner">
|
||
<div class="item-text">生产总值:<em>30133.86亿元</em><small>(2017年)</small></div>
|
||
</div>
|
||
</li>
|
||
<li class="item-content">
|
||
<div class="item-inner">
|
||
<div class="item-text">人均生产总值:<em>124536元</em><small>(2017年)</small></div>
|
||
</div>
|
||
</li>
|
||
<li class="item-content">
|
||
<div class="item-inner">
|
||
<div class="item-text">人均支配收入:<em>58988元</em><small>(2017年)</small></div>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div id="tabCityReport3" class="tab">
|
||
<div class="list-block dataList">
|
||
<ul>
|
||
<li class="item-content">
|
||
<div class="item-inner">
|
||
<div class="item-text">著名景点:<em>外滩、豫园、南京路、人民广场、静安寺、新天地、迪士尼乐园等</em></div>
|
||
</div>
|
||
</li>
|
||
<li class="item-content">
|
||
<div class="item-inner">
|
||
<div class="item-text">著名高校:<em>复旦、交大、同济、华东师大等</em></div>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div id="tabCityReport4" class="tab">
|
||
<div class="list-block dataList">
|
||
<ul>
|
||
<li class="item-content">
|
||
<div class="item-inner">
|
||
<div class="item-text">气候条件:<em>亚热带季风气候</em></div>
|
||
</div>
|
||
</li>
|
||
<li class="item-content">
|
||
<div class="item-inner">
|
||
<div class="item-text">地理位置:<em>长江入海口南岸,东海之滨</em></div>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div id="tabCityReport5" class="tab">
|
||
<div class="list-block dataList">
|
||
<ul>
|
||
<li class="item-content">
|
||
<div class="item-inner">
|
||
<div class="item-text">机场:<em>上海虹桥国际机场、上海浦东国际机场</em></div>
|
||
</div>
|
||
</li>
|
||
<li class="item-content">
|
||
<div class="item-inner">
|
||
<div class="item-text">火车站:<em>上海站、上海虹桥站、上海南站</em></div>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!--
|
||
<div class="topic">
|
||
<div class="topicTitle topicTitle03"><img src="../../images/lineImg.png">城市动态<img src="../../images/lineImg.png"></div>
|
||
<div class="topicContent" style="padding:0;padding-bottom:0.5rem;">
|
||
<div class="list-block dataList dataList01">
|
||
<ul>
|
||
<li class="item-content">
|
||
<div class="item-inner">
|
||
<div class="item-text">规划地铁15号线,一期工程计划将于2018年底正式通车运行。</div>
|
||
</div>
|
||
</li>
|
||
<li class="item-content">
|
||
<div class="item-inner">
|
||
<div class="item-text">规划地铁16号线,一期工程计划于2018年底正式通车。</div>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
-->
|
||
<div class="topic">
|
||
<div class="topicTitle">热门小区</div>
|
||
<div class="topicContent" style="padding:0;">
|
||
<div class="cardNearbyBox cardNearbyBox01">
|
||
<div class="cardNearbyWin">
|
||
<div class="card cardNearby">
|
||
<div class="card-header">定远小区</div>
|
||
<div class="card-content">
|
||
<div class="card-content-inner">68777元/㎡</div>
|
||
</div>
|
||
</div>
|
||
<div class="card cardNearby">
|
||
<div class="card-header">定远小区</div>
|
||
<div class="card-content">
|
||
<div class="card-content-inner">68777元/㎡</div>
|
||
</div>
|
||
</div>
|
||
<div class="card cardNearby">
|
||
<div class="card-header">定远小区</div>
|
||
<div class="card-content">
|
||
<div class="card-content-inner">68777元/㎡</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="swiper-slide">
|
||
<div class="card cardPrice cardPrice01 cardCity">
|
||
<div class="card-header">
|
||
<label>添加</label>
|
||
</div>
|
||
<div class="card-content">
|
||
<div class="card-content-inner row" style="padding-right:0;">
|
||
<span class="col-60 open-about01">
|
||
<i class="icon icon-add"></i>
|
||
<label>添加关注城市</label>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="myFocus">
|
||
<my_focus></my_focus>
|
||
</div>
|
||
|
||
<div class="topic">
|
||
<div class="topicTitle">城市房价TOP10</div>
|
||
<div class="topicContent" style="padding:0;padding-bottom:0.5rem;">
|
||
<div class="content-block content-block01 content-block01a" style="padding-bottom:0.5rem;">
|
||
<div class="buttons-row theme">
|
||
<a href="#tabCityRanking1" class="tab-link button active">涨幅榜</a>
|
||
<a href="#tabCityRanking2" class="tab-link button">潜力榜</a>
|
||
</div>
|
||
</div>
|
||
<div class="tabs">
|
||
<div id="tabCityRanking1" class="tab active">
|
||
<div id="cityIncreaseRanking">
|
||
<city_increase_ranking></city_increase_ranking>
|
||
</div>
|
||
</div>
|
||
<div id="tabCityRanking2" class="tab">
|
||
<div id="cityPotentialRanking">
|
||
<city_potential_ranking></city_potential_ranking>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<!-- About Popup -->
|
||
<div id="cityChoose">
|
||
<city_choose v-bind:city1="city"></city_choose>
|
||
</div>
|
||
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></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="../../config.js"></script>
|
||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></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="../component/myFocusComponent.js"></script>
|
||
<script type="text/javascript" src="../component/cityIncreaseRankingComponent.js"></script>
|
||
<script type="text/javascript" src="../component/cityPotentialRankingComponent.js"></script>
|
||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||
<script type="text/javascript" src="../component/cityChooseComponent.js"></script>
|
||
<script>
|
||
document.addEventListener('plusready', onPlusReady, false);
|
||
function onPlusReady(){
|
||
var myFocus = new Vue({
|
||
el:"#myFocus"
|
||
})
|
||
var cityIncreaseRanking = new Vue({
|
||
el:"#cityIncreaseRanking"
|
||
})
|
||
var cityPotentialRanking = new Vue({
|
||
el:"#cityPotentialRanking"
|
||
})
|
||
var cityChoose = new Vue({
|
||
el:"#cityChoose",
|
||
data:{
|
||
city:''
|
||
}
|
||
})
|
||
plus.geolocation.getCurrentPosition(function(p){
|
||
//province = p.address.province;
|
||
var cityStr = p.address.city;
|
||
if(cityStr){
|
||
cityChoose.city = cityStr.endsWith("市")?cityStr.substring(0,cityStr.length-1):cityStr;
|
||
}
|
||
//region = p.address.district;
|
||
}, function(e){
|
||
},
|
||
{
|
||
provider:'baidu',
|
||
enableHighAccuracy:true,
|
||
coordsType:'bd09ll'
|
||
}
|
||
);
|
||
/* 关注&已关注切换 */
|
||
$(".collection01").on("click", function () {
|
||
$(this).hide();
|
||
$(this).next().show();
|
||
$.toast("已关注");
|
||
});
|
||
$(".collection02").on("click", function () {
|
||
$(this).hide();
|
||
$(this).prev().show();
|
||
$.toast("取消关注");
|
||
});
|
||
|
||
/* button状态切换 */
|
||
$(".content-block .button").on("click", function () {
|
||
$(this).parent().children().removeClass("active");
|
||
$(this).addClass("active");
|
||
});
|
||
|
||
/* 图表切换 */
|
||
$("#tabAvg").on("click", function () {
|
||
$("#tabChart1").css("z-index","1");
|
||
$("#tabChart2").css("z-index","-1");
|
||
});
|
||
$("#tabRent").on("click", function () {
|
||
$("#tabChart2").css("z-index","1");
|
||
$("#tabChart1").css("z-index","-1");
|
||
});
|
||
/* 弹出城市选择页面 */
|
||
$(document).on("click",".open-about01", function () {
|
||
markFocus();
|
||
$.popup(".popup-about01");
|
||
});
|
||
/* 定位城市 */
|
||
$("body").on("click", ".letter a", function () {
|
||
var s = $(this).html();
|
||
$(".popup-about01 .content").scrollTop(0);
|
||
$(".popup-about01 .content").scrollTop($("#" + s + "1").offset().top - 106);
|
||
});
|
||
$("#tabCity1 .content-block01").scroll(function () {
|
||
$("#tabCity1 .content-block01 .letter").css("position","absolute");
|
||
$("#tabCity1 .content-block01 .letter").css("top", 85 - $("#cityContainer").position().top);
|
||
});
|
||
|
||
/* 获取城市 */
|
||
$(".popup-about01 .cityGPS").on("click", function () {
|
||
$("#input_city").val($(this).find("p").text());
|
||
$(".cityChoice a").text($(this).find("p").text());
|
||
$(".popup-about01 p").removeClass("active");
|
||
addFocus($(this).find("p").text())
|
||
});
|
||
$(".popup-about01 p").on("click", function () {
|
||
$("#input_city").val($(this).text());
|
||
$(".cityChoice a").text($(this).text());
|
||
$(".popup-about01 p").removeClass("active");
|
||
$(this).addClass("active");
|
||
var city = $(this).text()
|
||
addFocus(city)
|
||
});
|
||
/* 点击热门小区跳转到小区详情页 */
|
||
$(".cardNearby").on("click", function(){
|
||
window.location.href = "01_index04_districtDetail.html";
|
||
});
|
||
|
||
}
|
||
|
||
//加载首页全国数据
|
||
$(function() {
|
||
var date=new Date;
|
||
var year=date.getFullYear();
|
||
var month=date.getMonth()+1;
|
||
axios.get("/rest/quotations/countrywideInfo", {
|
||
params: {
|
||
|
||
}
|
||
})
|
||
.then(function (response) {
|
||
new Vue({
|
||
el: '#countryInfo',
|
||
data: {
|
||
nowYear : year,
|
||
nowMonth : month,
|
||
cityCount : response.data.data.cityCount,
|
||
upRate : response.data.data.upRate,
|
||
downRate : response.data.data.downRate,
|
||
avgUpRate : response.data.data.avgUpRate,
|
||
avgUownRate : response.data.data.avgUownRate
|
||
}
|
||
})
|
||
|
||
})
|
||
.catch(function (error) {
|
||
console.log(error);
|
||
});
|
||
|
||
axios.get("/rest/quotations/levelCityInfo", {
|
||
params: {
|
||
|
||
}
|
||
})
|
||
.then(function (response) {
|
||
//0:涨幅排行 1:潜力排行 2:均价排行
|
||
new Vue({
|
||
el: '#countryRank',
|
||
data: {
|
||
datas : response.data.data
|
||
}
|
||
})
|
||
|
||
})
|
||
.catch(function (error) {
|
||
console.log(error);
|
||
});
|
||
|
||
});
|
||
</script>
|
||
<script>
|
||
|
||
|
||
|
||
/* 获取资讯正文字数,截取资讯正文前30字,并添加... */
|
||
$(document).ready(function () {
|
||
/*var text = $(".cardInfo02 .item-title").text();
|
||
var length = $(".cardInfo02 .item-title").text().length;
|
||
var textStr = "";
|
||
if(length > 30){
|
||
textStr = text.substr(0,30);
|
||
$(".cardInfo02 .item-title").text(textStr + "...");
|
||
}*/
|
||
});
|
||
|
||
|
||
|
||
|
||
/* 获取热门小区名称字数,截取热门小区名称前5字,并添加... */
|
||
$(document).ready(function () {
|
||
$(".item02 .cardNearby .card-header").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).on("click",".open-about01", function () {
|
||
// markFocus();
|
||
// $.popup(".popup-about01");
|
||
//});
|
||
function markFocus(){
|
||
$("input").blur()
|
||
$("#citySearchInp").val("");
|
||
$("#selectContainer").hide();
|
||
$("p.close-popup").removeClass("collectionCity");
|
||
$("p.close-popup").removeClass("active");
|
||
axios.get("/rest/quotations/userCollectCitys").then(function(response){
|
||
var collects = response.data.data;
|
||
$("p.close-popup").each(function(){
|
||
var text = $(this).text();
|
||
//设置关注城市
|
||
if(collects){
|
||
if(collects.indexOf(text)>-1){
|
||
$(this).addClass("collectionCity");
|
||
if($(this).find("i").length==0){
|
||
$(this).append('<i class="icon-collection03"></i>');
|
||
}else{
|
||
$(this).find("i").addClass("icon-collection03");
|
||
}
|
||
}
|
||
}
|
||
//设置当前城市选中
|
||
if(typeof(curCity)!="undefined"){
|
||
if(curCity && text == curCity){
|
||
$(this).addClass("active");
|
||
}
|
||
}
|
||
});
|
||
}).catch(function(error){
|
||
console.log(error)
|
||
})
|
||
}
|
||
|
||
function addFocus(city){
|
||
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||
}).catch(function(error){
|
||
console.log(error)
|
||
})
|
||
}
|
||
|
||
</script>
|
||
|
||
<script type="text/javascript" src="../../js/echarts.js" charset="utf-8"></script>
|
||
|
||
<script>
|
||
|
||
/* 小区上涨 */
|
||
var dataUp = [{value: 67, name: ''}, {value: 33, name: ''}];
|
||
optionUp = {
|
||
title: {
|
||
text: dataUp[0].value + '%',
|
||
subtext: '小区上涨',
|
||
x: 'center',
|
||
y: 'center',
|
||
itemGap: -8,
|
||
textStyle: {
|
||
fontFamily: 'Arial, Verdana, sans-serif',
|
||
fontSize: 30,
|
||
color: '#333',
|
||
fontWeight: 'normal'
|
||
},
|
||
subtextStyle: {
|
||
fontFamily: '华文细黑',
|
||
fontSize: 12,
|
||
color: '#666'
|
||
}
|
||
},
|
||
color: ['#EB5F34', '#e7e7e7'],
|
||
series: [
|
||
{
|
||
name: '小区上涨',
|
||
type: 'pie',
|
||
radius: ['90%', '100%'],
|
||
itemStyle: {
|
||
normal: {
|
||
label: {
|
||
show: true
|
||
},
|
||
labelLine: {
|
||
show: false
|
||
}
|
||
}
|
||
},
|
||
data: dataUp
|
||
}
|
||
]
|
||
};
|
||
var myChartUp = echarts.init(document.getElementById('chartUp'));
|
||
myChartUp.setOption(optionUp,true);
|
||
|
||
/* 小区下跌 */
|
||
var dataDown = [{value: 31, name: ''}, {value: 69, name: ''}];
|
||
optionDown = {
|
||
title: {
|
||
text: dataDown[0].value + '%',
|
||
subtext: '小区下跌',
|
||
x: 'center',
|
||
y: 'center',
|
||
itemGap: -8,
|
||
textStyle: {
|
||
fontFamily: 'Arial, Verdana, sans-serif',
|
||
fontSize: 30,
|
||
color: '#333',
|
||
fontWeight: 'normal'
|
||
},
|
||
subtextStyle: {
|
||
fontFamily: '华文细黑',
|
||
fontSize: 12,
|
||
color: '#666'
|
||
}
|
||
},
|
||
color: ['#88D053', '#e7e7e7'],
|
||
series: [
|
||
{
|
||
name: '小区下跌',
|
||
type: 'pie',
|
||
radius: ['90%', '100%'],
|
||
itemStyle: {
|
||
normal: {
|
||
label: {
|
||
show: true
|
||
},
|
||
labelLine: {
|
||
show: false
|
||
}
|
||
}
|
||
},
|
||
data: dataDown
|
||
}
|
||
]
|
||
};
|
||
var myChartDown = echarts.init(document.getElementById('chartDown'));
|
||
myChartDown.setOption(optionDown,true);
|
||
|
||
/* 城市均价分析 */
|
||
var rawData = [["2015/1/5","3258.63","3350.52","115.84","3.58%","3253.88","3369.28","531352384","54976008","-"],["2015/1/6","3330.8","3351.45","0.93","0.03%","3303.18","3394.22","501661696","53239848","-"],["2015/1/7","3326.65","3373.95","22.51","0.67%","3312.21","3374.9","391918880","43641672","-"],["2015/1/8","3371.96","3293.46","-80.5","-2.39%","3285.09","3381.57","371131200","39923032","-"],["2015/1/9","3276.97","3285.41","-8.04","-0.24%","3267.51","3404.83","410240864","45864804","-"],["2015/1/12","3258.21","3229.32","-56.1","-1.71%","3191.58","3275.19","322064672","36627308","-"],["2015/1/13","3223.54","3235.3","5.98","0.19%","3214.41","3259.39","230725760","27358878","-"],["2015/1/14","3242.34","3222.44","-12.86","-0.40%","3193.98","3268.48","240190752","26720452","-"],["2015/1/15","3224.07","3336.46","114.02","3.54%","3207.54","3337.08","282546240","33061054","-"],["2015/1/16","3343.6","3376.5","40.04","1.20%","3340.49","3400.32","339876768","39225388","-"],["2015/1/19","3189.73","3116.35","-260.14","-7.70%","3095.07","3262.21","401098784","40988600","-"],["2015/1/20","3114.56","3173.05","56.7","1.82%","3100.48","3190.25","357080800","41629524","-"],["2015/1/21","3189.08","3323.61","150.56","4.74%","3178.34","3337","410956032","47375868","-"],["2015/1/22","3327.32","3343.34","19.73","0.59%","3293.98","3352.38","353382976","40787408","-"],["2015/1/23","3357.1","3351.76","8.42","0.25%","3328.29","3406.79","366249248","42097952","-"],["2015/1/26","3347.26","3383.18","31.42","0.94%","3321.31","3384.8","317540992","35842744","-"],["2015/1/27","3389.85","3352.96","-30.22","-0.89%","3290.22","3390.22","374517568","41829884","-"],["2015/1/28","3325.72","3305.74","-47.22","-1.41%","3294.66","3354.8","301927104","34156428","-"],["2015/1/29","3259","3262.3","-43.43","-1.31%","3234.24","3286.79","274658624","29642450","-"],["2015/1/30","3273.75","3210.36","-51.94","-1.59%","3210.31","3288.5","258312544","28426564","-"],["2015/2/2","3148.14","3128.3","-82.06","-2.56%","3122.57","3175.13","250861632","26684996","-"],["2015/2/3","3156.09","3204.91","76.61","2.45%","3129.73","3207.94","248192160","28335594","-"],["2015/2/4","3212.82","3174.13","-30.78","-0.96%","3171.14","3238.98","249098080","29015516","-"],["2015/2/5","3251.21","3136.53","-37.6","-1.18%","3135.82","3251.21","306139296","34826696","-"],["2015/2/6","3120.09","3075.91","-60.62","-1.93%","3052.94","3129.54","246749680","26650278","-"],["2015/2/9","3063.51","3095.12","19.22","0.62%","3049.11","3119.03","206108384","24071968","-"],["2015/2/10","3090.49","3141.59","46.47","1.50%","3084.25","3142.1","193817136","22508492","-"],["2015/2/11","3145.76","3157.7","16.11","0.51%","3139.05","3166.42","172840096","21086256","-"],["2015/2/12","3157.96","3173.42","15.71","0.50%","3134.24","3181.77","194592320","22969158","-"],["2015/2/13","3186.81","3203.83","30.41","0.96%","3182.79","3237.16","261290432","29301768","-"],["2015/2/16","3206.14","3222.36","18.54","0.58%","3195.88","3228.85","223797440","26595070","-"],["2015/2/17","3230.88","3246.91","24.54","0.76%","3230.77","3255.73","228332624","26334004","-"],["2015/2/25","3256.48","3228.84","-18.06","-0.56%","3215.55","3257.22","233348096","26514336","-"],["2015/2/26","3222.15","3298.36","69.52","2.15%","3202.19","3300.62","301263872","33434746","-"],["2015/2/27","3296.83","3310.3","11.94","0.36%","3291.01","3324.55","299163712","33501958","-"],["2015/3/2","3332.72","3336.28","25.98","0.78%","3298.67","3336.76","346445664","41025956","-"],["2015/3/3","3317.7","3263.05","-73.23","-2.20%","3260.43","3317.7","382044608","44159348","-"],["2015/3/4","3264.18","3279.53","16.48","0.51%","3250.48","3286.59","293639520","34678976","-"],["2015/3/5","3264.08","3248.48","-31.06","-0.95%","3221.67","3266.64","320663584","37358000","-"],["2015/3/6","3248.04","3241.19","-7.29","-0.22%","3234.53","3266.93","282915808","32834414","-"],["2015/3/9","3224.31","3302.41","61.22","1.89%","3198.37","3307.7","321495456","35992752","-"],["2015/3/10","3289.08","3286.07","-16.34","-0.49%","3277.09","3309.92","285817568","32995596","-"],["2015/3/11","3289.59","3290.9","4.83","0.15%","3278.47","3325.05","282985536","32757308","-"],["2015/3/12","3314.81","3349.32","58.42","1.78%","3300.49","3360.05","357295104","40719240","-"],["2015/3/13","3359.49","3372.91","23.59","0.70%","3352.15","3391.25","328410144","37404140","-"],["2015/3/16","3391.16","3449.3","76.39","2.26%","3377.09","3449.3","399132416","47935532","-"],["2015/3/17","3469.6","3502.85","53.54","1.55%","3459.69","3504.12","520939520","60150068","-"],["2015/3/18","3510.5","3577.3","74.45","2.13%","3503.85","3577.66","545217152","61736700","-"],["2015/3/19","3576.02","3582.27","4.97","0.14%","3546.84","3600.68","537346624","61224968","-"],["2015/3/20","3587.08","3617.32","35.05","0.98%","3569.38","3632.34","516661664","65177196","-"],["2015/3/23","3640.1","3687.73","70.41","1.95%","3635.49","3688.25","536062816","66157464","-"],["2015/3/24","3692.57","3691.41","3.68","0.10%","3600.7","3715.87","639554688","75488472","-"],["2015/3/25","3680.95","3660.73","-30.68","-0.83%","3634.56","3693.15","521886336","64549892","-"],["2015/3/26","3641.94","3682.09","21.37","0.58%","3615.01","3707.32","488647200","61951560","-"],["2015/3/27","3686.13","3691.1","9","0.24%","3656.83","3710.48","408945184","50929848","-"],["2015/3/30","3710.61","3786.57","95.47","2.59%","3710.61","3795.94","564702400","69212536","-"],["2015/3/31","3822.99","3747.9","-38.67","-1.02%","3737.04","3835.57","561676032","72129488","-"],["2015/4/1","3748.34","3810.29","62.4","1.66%","3742.21","3817.08","447458304","59241832","-"],["2015/4/2","3827.69","3825.78","15.49","0.41%","3775.89","3835.45","479299680","63202892","-"],["2015/4/3","3803.38","3863.93","38.14","1.00%","3792.21","3864.41","473033312","63565136","-"]];
|
||
|
||
var colorList = ['#c23531', '#2f4554', '#61a0a8', '#d48265', '#91c7ae', '#749f83', '#ca8622', '#bda29a', '#6e7074', '#546570', '#c4ccd3'];
|
||
var labelFont = 'bold 12px Sans-serif';
|
||
|
||
function calculateMA(dayCount, data) {
|
||
var result = [];
|
||
for (var i = 0, len = data.length; i < len; i++) {
|
||
if (i < dayCount) {
|
||
result.push('-');
|
||
continue;
|
||
}
|
||
var sum = 0;
|
||
for (var j = 0; j < dayCount; j++) {
|
||
sum += data[i - j][1];
|
||
}
|
||
result.push((sum / dayCount).toFixed(2));
|
||
}
|
||
return result;
|
||
}
|
||
|
||
var dates = ["2016-03-29", "2016-03-30", "2016-03-31", "2016-04-01", "2016-04-04", "2016-04-05", "2016-04-06", "2016-04-07", "2016-04-08", "2016-04-11", "2016-04-12", "2016-04-13", "2016-04-14", "2016-04-15", "2016-04-18", "2016-04-19", "2016-04-20", "2016-04-21", "2016-04-22", "2016-04-25", "2016-04-26", "2016-04-27", "2016-04-28", "2016-04-29", "2016-05-02", "2016-05-03", "2016-05-04", "2016-05-05", "2016-05-06", "2016-05-09", "2016-05-10", "2016-05-11", "2016-05-12", "2016-05-13", "2016-05-16", "2016-05-17", "2016-05-18", "2016-05-19", "2016-05-20", "2016-05-23", "2016-05-24", "2016-05-25", "2016-05-26", "2016-05-27", "2016-05-31", "2016-06-01", "2016-06-02", "2016-06-03", "2016-06-06", "2016-06-07", "2016-06-08", "2016-06-09", "2016-06-10", "2016-06-13", "2016-06-14", "2016-06-15", "2016-06-16", "2016-06-17", "2016-06-20", "2016-06-21", "2016-06-22"];
|
||
var data = [[17512.58,17633.11,17434.27,17642.81,86160000],[17652.36,17716.66,17652.36,17790.11,79330000],[17716.05,17685.09,17669.72,17755.7,102600000],[17661.74,17792.75,17568.02,17811.48,104890000],[17799.39,17737,17710.67,17806.38,85230000],[17718.03,17603.32,17579.56,17718.03,115230000],[17605.45,17716.05,17542.54,17723.55,99410000],[17687.28,17541.96,17484.23,17687.28,90120000],[17555.39,17576.96,17528.16,17694.51,79990000],[17586.48,17556.41,17555.9,17731.63,107100000],[17571.34,17721.25,17553.57,17744.43,81020000],[17741.66,17908.28,17741.66,17918.35,91710000],[17912.25,17926.43,17885.44,17962.14,84510000],[17925.95,17897.46,17867.41,17937.65,118160000],[17890.2,18004.16,17848.22,18009.53,89390000],[18012.1,18053.6,17984.43,18103.46,89820000],[18059.49,18096.27,18031.21,18167.63,100210000],[18092.84,17982.52,17963.89,18107.29,102720000],[17985.05,18003.75,17909.89,18026.85,134120000],[17990.94,17977.24,17855.55,17990.94,83770000],[17987.38,17990.32,17934.17,18043.77,92570000],[17996.14,18041.55,17920.26,18084.66,109090000],[18023.88,17830.76,17796.55,18035.73,100920000],[17813.09,17773.64,17651.98,17814.83,136670000],[17783.78,17891.16,17773.71,17912.35,80100000],[17870.75,17750.91,17670.88,17870.75,97060000],[17735.02,17651.26,17609.01,17738.06,95020000],[17664.48,17660.71,17615.82,17736.11,81530000],[17650.3,17740.63,17580.38,17744.54,80020000],[17743.85,17705.91,17668.38,17783.16,85590000],[17726.66,17928.35,17726.66,17934.61,75790000],[17919.03,17711.12,17711.05,17919.03,87390000],[17711.12,17720.5,17625.38,17798.19,88560000],[17711.12,17535.32,17512.48,17734.74,86640000],[17531.76,17710.71,17531.76,17755.8,88440000],[17701.46,17529.98,17469.92,17701.46,103260000],[17501.28,17526.62,17418.21,17636.22,79120000],[17514.16,17435.4,17331.07,17514.16,95530000],[17437.32,17500.94,17437.32,17571.75,111990000],[17507.04,17492.93,17480.05,17550.7,87790000],[17525.19,17706.05,17525.19,17742.59,86480000],[17735.09,17851.51,17735.09,17891.71,79180000],[17859.52,17828.29,17803.82,17888.66,68940000],[17826.85,17873.22,17824.73,17873.22,73190000],[17891.5,17787.2,17724.03,17899.24,147390000],[17754.55,17789.67,17664.79,17809.18,78530000],[17789.05,17838.56,17703.55,17838.56,75560000],[17799.8,17807.06,17689.68,17833.17,82270000],[17825.69,17920.33,17822.81,17949.68,71870000],[17936.22,17938.28,17936.22,18003.23,78750000],[17931.91,18005.05,17931.91,18016,71260000],[17969.98,17985.19,17915.88,18005.22,69690000],[17938.82,17865.34,17812.34,17938.82,90540000],[17830.5,17732.48,17731.35,17893.28,101690000],[17710.77,17674.82,17595.79,17733.92,93740000],[17703.65,17640.17,17629.01,17762.96,94130000],[17602.23,17733.1,17471.29,17754.91,91950000],[17733.44,17675.16,17602.78,17733.44,248680000],[17736.87,17804.87,17736.87,17946.36,99380000],[17827.33,17829.73,17799.8,17877.84,85130000],[17832.67,17780.83,17770.36,17920.16,89440000]];
|
||
var volumes = [86160000,79330000,102600000,104890000,85230000,115230000,99410000,90120000,79990000,107100000,81020000,91710000,84510000,118160000,89390000,89820000,100210000,102720000,134120000,83770000,92570000,109090000,100920000,136670000,80100000,97060000,95020000,81530000,80020000,85590000,75790000,87390000,88560000,86640000,88440000,103260000,79120000,95530000,111990000,87790000,86480000,79180000,68940000,73190000,147390000,78530000,75560000,82270000,71870000,78750000,71260000,69690000,90540000,101690000,93740000,94130000,91950000,248680000,99380000,85130000,89440000];
|
||
|
||
var option01 = {
|
||
animation: false,
|
||
color: colorList,
|
||
title: {
|
||
text: null,
|
||
left: 'center'
|
||
},
|
||
legend: {
|
||
show: false,
|
||
top: 30,
|
||
data: ['均价']
|
||
},
|
||
tooltip: {
|
||
triggerOn: 'none',
|
||
transitionDuration: 0,
|
||
confine: true,
|
||
bordeRadius: 4,
|
||
borderWidth: 1,
|
||
borderColor: '#333',
|
||
backgroundColor: 'rgba(255,255,255,0.9)',
|
||
textStyle: {
|
||
fontSize: 12,
|
||
color: '#333'
|
||
},
|
||
position: function (pos, params, el, elRect, size) {
|
||
var obj = {
|
||
top: 60
|
||
};
|
||
obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 5;
|
||
return obj;
|
||
}
|
||
},
|
||
axisPointer: {
|
||
link: [{
|
||
xAxisIndex: [0, 1]
|
||
}]
|
||
},
|
||
dataZoom: [{
|
||
type: 'slider',
|
||
xAxisIndex: [0, 1],
|
||
realtime: false,
|
||
start: 20,
|
||
end: 70,
|
||
top: 65,
|
||
height: 20,
|
||
handleIcon: 'M10.7,11.9H9.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
|
||
handleSize: '120%'
|
||
}],
|
||
xAxis: [{
|
||
type: 'category',
|
||
data: dates,
|
||
boundaryGap : false,
|
||
axisLine: { lineStyle: { color: '#666' } },
|
||
axisLabel: {
|
||
formatter: function (value) {
|
||
return echarts.format.formatTime('MM-dd', value);
|
||
}
|
||
},
|
||
min: 'dataMin',
|
||
max: 'dataMax',
|
||
axisPointer: {
|
||
show: true
|
||
}
|
||
}, {
|
||
type: 'category',
|
||
gridIndex: 1,
|
||
data: dates,
|
||
scale: true,
|
||
boundaryGap : false,
|
||
splitLine: {show: false},
|
||
axisLabel: {show: false},
|
||
axisTick: {show: false},
|
||
axisLine: {lineStyle: { color: '#fff' } },
|
||
splitNumber: 20,
|
||
min: 'dataMin',
|
||
max: 'dataMax',
|
||
axisPointer: {
|
||
type: 'shadow',
|
||
label: {show: false},
|
||
triggerTooltip: true,
|
||
handle: {
|
||
show: true,
|
||
margin: -20,
|
||
color: '#F18D00'
|
||
}
|
||
}
|
||
}],
|
||
yAxis: [{
|
||
name: '',
|
||
nameRotate: 90,
|
||
nameLocation: 'center',
|
||
nameGap: 5,
|
||
position: 'right',
|
||
nameTextStyle: {
|
||
color: '#999'
|
||
},
|
||
scale: true,
|
||
splitNumber: 2,
|
||
axisLine: {lineStyle: { color: '#666' } },
|
||
splitLine: {show: true },
|
||
axisTick: {show: false },
|
||
axisLabel: {
|
||
inside: true,
|
||
formatter: '{value}\n'
|
||
}
|
||
}, {
|
||
show: false,
|
||
name: '',
|
||
nameRotate: 90,
|
||
nameLocation: 'center',
|
||
nameGap: 5,
|
||
position: 'right',
|
||
nameTextStyle: {
|
||
color: '#999'
|
||
},
|
||
scale: true,
|
||
gridIndex: 1,
|
||
splitNumber: 2,
|
||
axisLabel: {show: false},
|
||
axisLine: {show: false},
|
||
axisTick: {show: false},
|
||
splitLine: {show: false}
|
||
}],
|
||
grid: [{
|
||
left: 20,
|
||
right: 20,
|
||
top: 110,
|
||
height: 120
|
||
}, {
|
||
left: 20,
|
||
right: 20,
|
||
height: 40,
|
||
top: 260
|
||
}],
|
||
graphic: [{
|
||
type: 'group',
|
||
left: 'center',
|
||
top: 70,
|
||
width: 300,
|
||
bounding: 'raw'
|
||
}],
|
||
series: [{
|
||
name: '均价',
|
||
type: 'candlestick',
|
||
data: data,
|
||
itemStyle: {
|
||
normal: {
|
||
color: '#EB5F34',
|
||
color0: '#88D053',
|
||
borderColor: '#EB5F34',
|
||
borderColor0: '#88D053'
|
||
},
|
||
emphasis: {
|
||
color: '#F18D00',
|
||
color0: '#666',
|
||
borderColor: '#F18D00',
|
||
borderColor0: '#666'
|
||
}
|
||
}
|
||
}]
|
||
};
|
||
var myChart01 = echarts.init(document.getElementById('chart01'));
|
||
myChart01.setOption(option01,true);
|
||
|
||
/* 城市租金走势 */
|
||
var option02 = {
|
||
tooltip: {
|
||
trigger: 'axis',
|
||
textStyle: {
|
||
fontFamily: 'Arial, Verdana, sans-serif, 华文细黑',
|
||
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, Verdana, sans-serif',
|
||
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, Verdana, sans-serif',
|
||
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> |