新增单独的城市
This commit is contained in:
@@ -0,0 +1,184 @@
|
||||
<!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="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
</header>
|
||||
|
||||
<div class="content" id="cityInfo">
|
||||
<div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId">
|
||||
<div class="card-header">
|
||||
<label>{{myCityMap.city}}</label>
|
||||
<a v-if="collecd" class="button collection collection02 " @click="collectCity(myCityMap.city)">取消</a>
|
||||
<a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city)">关注</a>
|
||||
|
||||
</div>
|
||||
<div class="card-header">
|
||||
<span>当前参考均价</span>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">{{myCityMap.cityTopMonthAvgPrice}}<span>元/㎡</span></div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<span v-if="myCityMap.oneMonthUpDownRange >= 0">
|
||||
<em><strong>{{myCityMap.oneMonthUpDownRange}}</strong>%<i class="icon icon-arrow-red"></i></em>
|
||||
<label>近30天涨跌幅</label>
|
||||
</span>
|
||||
<span v-else>
|
||||
<em><strong>{{myCityMap.oneMonthUpDownRange}}</strong>%<i class="icon icon-arrow-green"></i></em>
|
||||
<label>近30天涨跌幅</label>
|
||||
</span>
|
||||
<span>
|
||||
<em><strong>{{myCityMap.rangeLevel}}</strong></em>
|
||||
<label>城市涨跌排名</label>
|
||||
</span>
|
||||
<span v-if="myCityMap.index < 50">
|
||||
<em><strong>{{myCityMap.downChance}}</strong>%<i class="icon icon-arrow-green"></i></em>
|
||||
<label>下跌概率</label>
|
||||
</span>
|
||||
<span v-else>
|
||||
<em><strong>{{myCityMap.downChance}}</strong>%<i class="icon icon-arrow-red"></i></em>
|
||||
<label>上涨概率</label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicTitle topicTitle02">{{myCityMap.time}}楼市行情<span><a @click="showRegionInfo(myCityMap.city)">区县涨跌详情<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="up_chart"></div>
|
||||
</span>
|
||||
<span class="col-50">
|
||||
<div class="chart" id="down_chart"></div>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topic" id="trendChartDiv">
|
||||
<div class="topicTitle" style="position:relative;">城市均价及挂牌走势
|
||||
<div class="content-block">
|
||||
<div class="buttons-row theme" id="trendDiv">
|
||||
<a class="tab-link button active" v="2" v-bind:city="myCityMap.city" @click="clickTrend(myCityMap.city, 2)">半年</a>
|
||||
<a class="tab-link button" v="3" v-bind:city="myCityMap.city" @click="clickTrend(myCityMap.city, 3)">一年</a>
|
||||
<a class="tab-link button" v="5" v-bind:city="myCityMap.city" @click="clickTrend(myCityMap.city, 5)">三年</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topicContent" style="padding:0;">
|
||||
<div class="chart" id="price_chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicTitle">热门小区</div>
|
||||
<div class="topicContent" style="padding:0;">
|
||||
<div class="cardNearbyBox cardNearbyBox01">
|
||||
<div class="cardNearbyWin" style="width: 38rem;">
|
||||
<div class="card cardNearby" v-for="nearDist in nears" @click="showDistrictDetail(nearDist.city, nearDist.region, nearDist.name)">
|
||||
<div class="card-header">{{nearDist.sname}}</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">{{nearDist.avgPrice}}元/㎡</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</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="../../js/log/log_stat.js" ></script>
|
||||
<script type="text/javascript" src="../../js/echarts.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/highcharts-4.2.3.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/quotations/cityDetail.js" ></script>
|
||||
|
||||
<script>
|
||||
var date = new Date();
|
||||
var year = date.getFullYear()+'年';
|
||||
var month = date.getMonth()+1+'月';
|
||||
var city = "天津"
|
||||
var cityInfoVue = new Vue({
|
||||
el: '#cityInfo',
|
||||
data: {
|
||||
city:"",
|
||||
month:month,
|
||||
collecd:false,
|
||||
nears:[],
|
||||
myCityMap : []
|
||||
}
|
||||
});
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
var city = self.city
|
||||
cityInfoVue.$data.city = city;
|
||||
loadMyCollectCity();
|
||||
loadCityPriceInfo(city)
|
||||
loadUpOrDown(city);
|
||||
loadHotDistrict(city)
|
||||
loadCityPricesAndCounts(city)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -19,6 +19,9 @@
|
||||
.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;}
|
||||
.tabs .topic{margin-bottom:0;}
|
||||
.buttons-tab{overflow-x:auto;border-bottom:solid 1px #e7e7e7;}
|
||||
.buttons-tab:after{height:0;}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
@@ -148,15 +151,15 @@
|
||||
<div class="topic">
|
||||
<div class="topicTitle">房产热点城市</div>
|
||||
<div class="topicContent cityImgBox row">
|
||||
<div class="col-33">
|
||||
<img src="../../images/cityImg01.png">
|
||||
<div class="col-33" >
|
||||
<img src="../../images/cityImg01.png" onclick="hotCity('北京')">
|
||||
<p>北京</p>
|
||||
</div>
|
||||
<div class="col-33">
|
||||
<div class="col-33" onclick="hotCity('上海')">
|
||||
<img src="../../images/cityImg02.png">
|
||||
<p>上海</p>
|
||||
</div>
|
||||
<div class="col-33">
|
||||
<div class="col-33" onclick="hotCity('深圳')">
|
||||
<img src="../../images/cityImg03.png">
|
||||
<p>深圳</p>
|
||||
</div>
|
||||
@@ -1476,6 +1479,10 @@ function addFocus(city){
|
||||
})
|
||||
}
|
||||
|
||||
function hotCity(city){
|
||||
clicked('../house/cityDetail.html',true,false,{},{city:city});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user