This commit is contained in:
2018-04-16 14:24:45 +08:00
parent ed8d91fb1c
commit 665a443f73
7 changed files with 109 additions and 94 deletions
+1 -4
View File
@@ -852,9 +852,6 @@ input::-webkit-input-placeholder{
/* 图表 */ /* 图表 */
.chart{width:100%;height:250px;} .chart{width:100%;height:250px;}
.chart tspan{font-size:0.6rem;text-shadow:none;} .chart tspan{font-size:0.6rem;text-shadow:none;}
#tabChart{width:100%;height:360px;}
#tabChart1{width:100%;position:absolute;z-index:1;}
#tabChart2{width:100%;display:block;position:absolute;z-index:-1;}
.scoreBox{height:130px;position:relative;} .scoreBox{height:130px;position:relative;}
.score{width:250px;height:250px;margin:0 auto;margin-top:1rem;} .score{width:250px;height:250px;margin:0 auto;margin-top:1rem;}
.scoreText{width:250px;height:150px;position:absolute;top:0;left:50%;margin-left:-125px;} .scoreText{width:250px;height:150px;position:absolute;top:0;left:50%;margin-left:-125px;}
@@ -874,7 +871,7 @@ input::-webkit-input-placeholder{
.priceBox div em.up i{background:url(../images/up.png) no-repeat center center;background-size:100%;} .priceBox div em.up i{background:url(../images/up.png) no-repeat center center;background-size:100%;}
.priceBox div em.down i{background:url(../images/down.png) no-repeat center center;background-size:100%;} .priceBox div em.down i{background:url(../images/down.png) no-repeat center center;background-size:100%;}
.topic .topicTitle > div.content-block{float:right;margin-top:0.6rem;padding:0;} .topic .topicTitle > div.content-block{padding:0;margin:0;position:absolute;top:0.6rem;right:0;z-index:100;}
.topic .date{text-align:right;font-size:0.75rem;color:#ccc;padding-right:0.75rem;margin:0;} .topic .date{text-align:right;font-size:0.75rem;color:#ccc;padding-right:0.75rem;margin:0;}
.buttons-row .button{height:1.35rem;line-height:1.35rem;} .buttons-row .button{height:1.35rem;line-height:1.35rem;}
.buttons-row01 .button{border-radius:0.1rem;margin-left:0.5rem;padding:0;font-size:0.65rem;} .buttons-row01 .button{border-radius:0.1rem;margin-left:0.5rem;padding:0;font-size:0.65rem;}
+8 -8
View File
@@ -343,7 +343,7 @@ var option01 = {
legend: { legend: {
show: false, show: false,
top: 30, top: 30,
data: ['均价', '成交量'] data: ['均价']
}, },
tooltip: { tooltip: {
triggerOn: 'none', triggerOn: 'none',
@@ -382,8 +382,8 @@ var option01 = {
type: 'slider', type: 'slider',
xAxisIndex: [0, 1], xAxisIndex: [0, 1],
realtime: false, realtime: false,
start: 0, start: 5,
end: 100, end: 95,
top: 65, top: 65,
height: 20, 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', 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',
@@ -454,7 +454,7 @@ var option01 = {
formatter: '{value}\n' formatter: '{value}\n'
} }
}, { }, {
name: '成交量(套)', name: '',
nameRotate: 90, nameRotate: 90,
nameLocation: 'center', nameLocation: 'center',
nameGap: 5, nameGap: 5,
@@ -514,10 +514,10 @@ var option01 = {
borderColor0: '#88D053' borderColor0: '#88D053'
}, },
emphasis: { emphasis: {
color: 'black', color: '#F18D00',
color0: '#333', color0: '#666',
borderColor: 'black', borderColor: '#F18D00',
borderColor0: '#333' borderColor0: '#666'
} }
} }
}] }]
@@ -27,7 +27,7 @@ Vue.component('base-info-component', {
<li> <li>
<a class="item-content"> <a class="item-content">
<div class="item-inner" style="padding-top:0;"> <div class="item-inner" style="padding-top:0;">
<div class="item-title-row"> <div class="item-title-row" style="width:100%;">
<div class="item-title row"> <div class="item-title row">
<div class="col-50"> <div class="col-50">
<p> <p>
+70 -52
View File
@@ -30,9 +30,6 @@
.cardNearbyBox01 .cardNearby .card-header{padding-top:0;} .cardNearbyBox01 .cardNearby .card-header{padding-top:0;}
.topic .topicTitle > span.star{float:none;} .topic .topicTitle > span.star{float:none;}
.topic .topicTitle > span.star .icon{vertical-align:middle;} .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 {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;} .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;}
@@ -111,8 +108,29 @@
</div> </div>
<div class="topic"> <div class="topic">
<div class="topicTitle">小区走势分析</div> <div class="topicTitle">小区走势分析</div>
<div class="topicContent" style="padding:0;"> <div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
<div class="content-block content-block01 content-block01a"> <div class="topicTitle topicTitle01" style="position:relative;">均价
<div class="content-block">
<div class="buttons-row theme" id="trendDiv1">
<a t-v="6" class="tab-link button active" onclick="showTrends(6)">半年</a>
<a t-v="12" class="tab-link button" onclick="showTrends(12)">一年</a>
<a t-v="36" class="tab-link button" onclick="showTrends(36)">三年</a>
</div>
</div>
</div>
<div class="chart" id="chart01" style="height:320px;margin-top:-2.75rem;"></div>
<div class="topicTitle topicTitle01" style="position:relative;border-top:solid 1px #e7e7e7;">租金
<div class="content-block">
<div class="buttons-row theme" id="trendDiv2">
<a t-v="2" id="trendDivTab2" class="tab-link button active" onclick="showLoadRentTrends(2)">半年</a>
<a t-v="3" id="trendDivTab3" class="tab-link button" onclick="showLoadRentTrends(3)">一年</a>
</div>
</div>
</div>
<div class="chart" id="chart02"></div>
<!--<div class="content-block content-block01 content-block01a">
<div class="buttons-row theme" id="trendTabDiv"> <div class="buttons-row theme" id="trendTabDiv">
<a href="#tabChart1" class="tab-link button active" id="tabAvgDiv" @click="showChat(1)">均价</a> <a href="#tabChart1" class="tab-link button active" id="tabAvgDiv" @click="showChat(1)">均价</a>
<a href="#tabChart2" class="tab-link button" id="tabRentDiv" @click="showChat(2)">租金</a> <a href="#tabChart2" class="tab-link button" id="tabRentDiv" @click="showChat(2)">租金</a>
@@ -138,7 +156,7 @@
<div class="chart" id="chart02" style="margin-top:0.75rem;"></div> <div class="chart" id="chart02" style="margin-top:0.75rem;"></div>
</div> </div>
</div> </div>
</div> </div>-->
</div> </div>
</div> </div>
<!--<div class="card cardPrice cardPrice02" style="border-bottom:solid 0.5rem #f3f3f3;"> <!--<div class="card cardPrice cardPrice02" style="border-bottom:solid 0.5rem #f3f3f3;">
@@ -238,8 +256,8 @@ $.config = {router: false}
<script> <script>
var city = "上海" var city = "上海"
var region = "嘉定" var region = "长宁"
var name = "世盟壹天地" var name = "新泾三村"
//var lat = 31.292437 //var lat = 31.292437
//var lng = 121.48703 //var lng = 121.48703
@@ -316,50 +334,50 @@ function onPlusReady() {
/*baseInfo = new Vue({ //baseInfo = new Vue({
el: '#districtBaseInfo', // el: '#districtBaseInfo',
data: { // data: {
name : "", // name : "",
city:"", // city:"",
region: "", // region: "",
address: "", // address: "",
avgPrice:"", // avgPrice:"",
oneMonthUpDownRange:"", // oneMonthUpDownRange:"",
priceRate:"", // priceRate:"",
cityPrice:"", // cityPrice:"",
finishBuildingDate:"", // finishBuildingDate:"",
householdCount:"", // householdCount:"",
cubagePercent:"", // cubagePercent:"",
carSiteCount:"", // carSiteCount:"",
virescencePercent:"", // virescencePercent:"",
estateCharge:"", // estateCharge:"",
moreArea:"", // moreArea:"",
developer:"", // developer:"",
estateCompany:"", // estateCompany:"",
tags:[], // tags:[],
nearDists:[], // nearDists:[],
regionIndex:"", // regionIndex:"",
schoolIndex:"" // schoolIndex:""
//
}, // },
methods:{ // methods:{
showChat: function(type){ // showChat: function(type){
if(type == 2) { // if(type == 2) {
document.getElementById("tabChart2").style = "z-index:1"; // document.getElementById("tabChart2").style = "z-index:1";
document.getElementById("tabChart1").style = "z-index:-1"; // document.getElementById("tabChart1").style = "z-index:-1";
} else { // } else {
document.getElementById("tabChart2").style = "z-index:-1"; // document.getElementById("tabChart2").style = "z-index:-1";
document.getElementById("tabChart1").style = "z-index:1"; // document.getElementById("tabChart1").style = "z-index:1";
} // }
//
} // }
} // }
})*/ // })
//
/* 小区均价分析 */ // /* 小区均价分析 */
//loadKLineData(city, region, name); // loadKLineData(city, region, name);
/* 小区租金走势 */ // /* 小区租金走势 */
//loadRentTrends(city, region, name,2); // loadRentTrends(city, region, name,2);
function openMapWindow(){ function openMapWindow(){
clicked('arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng}); clicked('arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng});
+15 -15
View File
@@ -38,7 +38,7 @@
<div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId"> <div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId">
<div class="card-header"> <div class="card-header">
<label>{{myCityMap.city}}</label> <label>{{myCityMap.city}}</label>
<a v-if="collecd" class="button collection collection02 " @click="collectCity(myCityMap.city)">取消</a> <a v-if="collecd" class="button theme collection collection02 " @click="collectCity(myCityMap.city)">取消关注</a>
<a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city)">关注</a> <a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city)">关注</a>
</div> </div>
@@ -162,25 +162,25 @@ var cityInfoVue = new Vue({
} }
}); });
//document.addEventListener('plusready', onPlusReady, false); document.addEventListener('plusready', onPlusReady, false);
//function onPlusReady() { function onPlusReady() {
// var self = plus.webview.currentWebview(); var self = plus.webview.currentWebview();
// var city = self.city var city = self.city
// cityInfoVue.$data.city = city; cityInfoVue.$data.city = city;
// loadCurCity(city); loadCurCity(city);
// loadCityPriceInfo(city)
// loadUpOrDown(city);
// loadHotDistrict(city)
// loadCityPricesAndCounts(city)
//
//}
loadCurCity(city);
loadCityPriceInfo(city) loadCityPriceInfo(city)
loadUpOrDown(city); loadUpOrDown(city);
loadHotDistrict(city) loadHotDistrict(city)
loadCityPricesAndCounts(city) loadCityPricesAndCounts(city)
}
//loadCurCity(city);
// loadCityPriceInfo(city)
// loadUpOrDown(city);
// loadHotDistrict(city)
// loadCityPricesAndCounts(city)
+1 -1
View File
@@ -172,7 +172,7 @@
<div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId"> <div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId">
<div class="card-header"> <div class="card-header">
<label>{{myCityMap.city}}</label> <label>{{myCityMap.city}}</label>
<a v-if="collecd" class="button collection collection02 " @click="collectCity(myCityMap.city)">取消</a> <a v-if="collecd" class="button theme collection collection02 " @click="collectCity(myCityMap.city)">取消关注</a>
<a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city)">关注</a> <a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city)">关注</a>
</div> </div>
+13 -13
View File
@@ -61,8 +61,8 @@
<div class="item-title"><i class="icon icon-address02"></i>{{city}}{{region}}{{address}}</div> <div class="item-title"><i class="icon icon-address02"></i>{{city}}{{region}}{{address}}</div>
<div class="item-after"> <div class="item-after">
<a class="button theme collection collection01">关注</a> <a class="button theme collection collection01" onclick="doAddCollect()">关注</a>
<a class="button collection collection02 dn">取消关注</a> <a class="button collection collection02 dn" onclick="removeCollect()">取消关注</a>
</div> </div>
</div> </div>
<div class="item-subtitle"> <div class="item-subtitle">
@@ -212,17 +212,17 @@ function onPlusReady() {
}) })
} }
/*baseInfo = new Vue({ //baseInfo = new Vue({
el: '#districtBaseInfo', // el: '#districtBaseInfo',
data: { // data: {
name : "", // name : "",
city:"", // city:"",
region: "", // region: "",
address: "", // address: "",
tags:[] // tags:[]
} // }
})*/ // })
//
/* 小区租金走势 */ /* 小区租金走势 */
loadRentTrends(city, region, name); loadRentTrends(city, region, name);