城市区域排名
@@ -12,6 +12,10 @@ em{font-style:normal;color:#333;}
|
||||
em.up{color:#EB5F34;}
|
||||
em.down{color:#88D053;}
|
||||
*/
|
||||
::-webkit-scrollbar{display:none;}
|
||||
.bt{border-top:solid 0.5rem #f3f3f3;}
|
||||
.bb{border-bottom:solid 0.5rem #f3f3f3;}
|
||||
.tac{text-align:center;}
|
||||
.dn{display:none;}
|
||||
.di{display:inline;}
|
||||
|
||||
@@ -941,17 +945,28 @@ input::-webkit-input-placeholder{
|
||||
.cardCity01 .card-content-inner{padding-bottom:5rem;}
|
||||
.cardCity01 .card-footer{bottom:1.5rem;}
|
||||
|
||||
.list-block.media-list.cityList ul:before{height:0;}
|
||||
.list-block.media-list.cityList ul:after{height:0;}
|
||||
.list-block.media-list.cityList .item-inner{padding-right:0;padding-top:0;padding-bottom:0;min-height:1.5rem;}
|
||||
.list-block.media-list.cityList .item-inner:after{height:0;}
|
||||
.list-block.media-list.cityList .item-subtitle{color:#333;}
|
||||
.list-block.media-list.cityList ul li:nth-child(1) .item-subtitle{color:#999;}
|
||||
.list-block.media-list.cityList .item-subtitle div:first-child{margin-left:0;}
|
||||
.list-block.media-list.cityList .item-subtitle div.col-20:last-child em{color:#F18D00;}
|
||||
.list-block.media-list.cityList .item-subtitle div.col-20{position:relative;}
|
||||
.list-block.media-list.cityList .item-subtitle div.col-20 .button{width:auto;height:1.1rem;top:0;left:0;right:inherit;font-style:normal;line-height:1rem;}
|
||||
.list-block.media-list.cityList .item-subtitle div.col-25 .star .icon{margin-right:0;}
|
||||
.cardCity02{background:url(../images/rankingBg.png) no-repeat center 5rem;background-size:100%;padding:0 0.75rem;padding-top:2.5rem;padding-bottom:0.8rem;border-bottom:none;position:relative;}
|
||||
.cardCity02 .card-footer{background:rgba(255,255,255,0.7);border:solid 1px #e7e7e7;border-radius:0.4rem;padding-top:1.5rem;padding-bottom:0.5rem;bottom:0;}
|
||||
.cardCity02 .card-footer span{border-right:0;}
|
||||
.cardCity02 .card-footer span em{color:#EB5F34;display:block;}
|
||||
.cardCity02 .card-footer span:nth-child(2) em{color:#333;}
|
||||
.cardCity02 .card-footer img{width:3.65rem;position:absolute;top:-1.825rem;left:50%;margin-left:-1.825rem;}
|
||||
|
||||
|
||||
.list-block.cityList ul:before{height:0;}
|
||||
.list-block.cityList ul:after{height:0;}
|
||||
.list-block.cityList .item-inner{padding-right:0;padding-top:0;padding-bottom:0;min-height:1.5rem;}
|
||||
.list-block.cityList .item-inner:after{height:0;}
|
||||
.list-block.cityList .item-subtitle{color:#333;}
|
||||
.list-block.cityList ul li:nth-child(1) .item-subtitle{color:#999;}
|
||||
.list-block.cityList .item-subtitle div:first-child{margin-left:0;}
|
||||
.list-block.cityList .item-subtitle div.col-20:last-child em{color:#F18D00;}
|
||||
.list-block.cityList .item-subtitle div.col-20{position:relative;}
|
||||
.list-block.cityList .item-subtitle div.col-20 .button{width:auto;height:1.1rem;top:0;left:0;right:inherit;font-style:normal;line-height:1rem;}
|
||||
.list-block.cityList .item-subtitle div.col-25 .star .icon{margin-right:0;}
|
||||
.list-block.cityList .item-subtitle div em{font-size:0.7rem;}
|
||||
.list-block.cityList .item-subtitle div img{width:1rem;margin:0 auto;}
|
||||
.list-block.cityList > p{font-size:0.7rem;color:#999;text-align:center;}
|
||||
|
||||
.list-block.dataList ul:before{height:0;}
|
||||
.list-block.dataList ul:after{height:0;}
|
||||
|
||||
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 9.1 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
|
After Width: | Height: | Size: 9.0 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 18 KiB |
@@ -0,0 +1,157 @@
|
||||
<!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">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current" id="regionRank">
|
||||
<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>
|
||||
<button class="button button-link button-nav pull-right">
|
||||
<span class="icon icon-share"></span>
|
||||
</button>
|
||||
<h1 class="title">区域均价排行</h1>
|
||||
</header>
|
||||
<div class="content infinite-scroll infinite-scroll-bottom" data-distance="50">
|
||||
<div class="card cardPrice cardCity cardCity02">
|
||||
<div class="card-footer">
|
||||
<span>
|
||||
<em><strong>{{avgPrice}}</strong>元/㎡</em>
|
||||
<label>{{month}}月均价</label>
|
||||
</span>
|
||||
<span>
|
||||
<em><strong>{{region}}</strong></em>
|
||||
</span>
|
||||
<span>
|
||||
<em>
|
||||
<strong>{{oneMonthUpDownRange}}</strong>%
|
||||
<i v-if="oneMonthUpDownRange >= 0" class="icon icon-arrow-red"></i>
|
||||
<i v-if="oneMonthUpDownRange < 0" class="icon icon-arrow-green"></i>
|
||||
</em>
|
||||
<label>近30天涨跌幅</label>
|
||||
</span>
|
||||
<img src="../../images/rankingCup04.png">
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-block media-list cityList">
|
||||
<ul class="list-container">
|
||||
<div class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-subtitle row">
|
||||
<div class="col-15 tac">排名</div>
|
||||
<div class="col-25">区域</div>
|
||||
<div class="col-33">{{month}}月均价</div>
|
||||
<div class="col-25">近30天涨跌幅</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<li v-for="(info,index) in regionInfos">
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-subtitle row">
|
||||
<div class="col-15 tac" v-if="index > 2">{{index+1}}</div>
|
||||
<div class="col-15 tac" v-if="index <= 2"><img :src="'../../images/rankingImg0' + (index+1)+'a.png'"></div>
|
||||
<div class="col-25">{{info.region}}</div>
|
||||
<div class="col-33">{{info.avgPrice}}元/㎡</div>
|
||||
<div class="col-25" v-if="info.oneMonthUpDownRange > 0"><em class="up">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-red"></i></em></div>
|
||||
<div class="col-25" v-if="info.oneMonthUpDownRange < 0"><em class="down">{{info.oneMonthUpDownRange}}%<i class="icon icon-arrow-green"></i></em></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/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/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.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 date = new Date();
|
||||
var month = date.getMonth()+1;
|
||||
var regionsRankVue = new Vue({
|
||||
el: '#regionRank',
|
||||
data: {
|
||||
city:"",
|
||||
month:month,
|
||||
region:"",
|
||||
avgPrice:"",
|
||||
oneMonthUpDownRange:"",
|
||||
regionInfos : []
|
||||
}
|
||||
});
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
var city = self.city
|
||||
regionsRankVue.$data.city = city;
|
||||
loadRegionRank(city);
|
||||
}
|
||||
|
||||
//loadRegionInfo("上海");
|
||||
function loadRegionRank(city){
|
||||
axios.get("/rest/quotations/regionInfos",{
|
||||
params:{
|
||||
city : city
|
||||
}
|
||||
}).then(function (response) {
|
||||
var msg = response.data.data;
|
||||
if(response.data.status){
|
||||
if(msg!=null && msg.length>0){
|
||||
for(var i in msg){
|
||||
var da = msg[i]
|
||||
da.oneMonthUpDownRange = (da.oneMonthUpDownRange*100).toFixed(2)
|
||||
}
|
||||
regionsRankVue.$data.region = msg[0].region;
|
||||
regionsRankVue.$data.avgPrice = msg[0].avgPrice;
|
||||
regionsRankVue.$data.oneMonthUpDownRange = msg[0].oneMonthUpDownRange;
|
||||
regionsRankVue.$data.regionInfos = msg;
|
||||
}else{
|
||||
//控制显示无数据效果
|
||||
//$('#hasDataDiv').hide();
|
||||
//$('#noDataDiv').show();
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -51,7 +51,7 @@
|
||||
<!--<div class="pull-to-refresh-arrow"></div>-->
|
||||
</div>
|
||||
|
||||
<div class="card cardPrice" id="baseInfo" v-cloak>
|
||||
<div class="card cardPrice" id="baseInfo" v-cloak onclick="openRegionRank()">
|
||||
<div class="card-header">
|
||||
<span>{{topMonth}}月份均价</span>
|
||||
<span>
|
||||
@@ -2733,6 +2733,10 @@ function openIntelligentHouseView() {
|
||||
function openDistWindow(city, region, name){
|
||||
clicked('views/district/detail.html',true,false,{},{city:city,region:region,name:name});
|
||||
}
|
||||
|
||||
function openRegionRank(){
|
||||
clicked('views/city/regionRanking.html',true,false,{},{city:$("#input_city").text()});
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
/* 获取附近小区名称字数,截取附近小区名称前5字,并添加... */
|
||||
|
||||