This commit is contained in:
2018-04-13 18:26:36 +08:00
parent 4f263c4c72
commit e26aa7ac7f
8 changed files with 72 additions and 30 deletions
+12 -2
View File
@@ -5,6 +5,7 @@ var dates;
var data;
var volumes;
var curOption;
var mapLoadCount = 0;
/* 关注&已关注切换 */
@@ -89,11 +90,20 @@ $("#tabRentDiv").on("click", function () {
$("#tabChart1").css("z-index","-1");
});
var t1 = window.setTimeout(loadMap,1000);
var t1 = window.setInterval(loadMap,1000);
function loadMap(){
mapLoadCount++;
if(lng && lat){
loadMapPoi();
window.clearTimeout(t1);
$("#mapDiv").show();
window.clearInterval(t1);
}else{
if(mapLoadCount == 10){
$("#mapDiv").hide();
window.clearInterval(t1);
}else{
$("#mapDiv").hide();
}
}
}
+14 -2
View File
@@ -530,7 +530,11 @@ function showRegionInfo(city){
function collectCity(city, index){
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
clicked('../user/codeSms.html',true,false,{},{},function(){
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
collectCity(city)
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
plus.webview.getWebviewById('views/user/userInfo.html').reload();
})
return;
} else {
@@ -571,12 +575,20 @@ function docollectCity(city){
}
}
if(isLast){
window.location.reload();
//window.location.reload();
$("a[href='#tabQuotation0']").click();
}
myDatasVue.$data.cityDatas = newRet1;
citysVue.$data.citys = newRet2
}else{
alert(msg);
var datas = myDatasVue.$data.cityDatas
for(var i in datas){
var obj = datas[i]
if(obj.city == city){
obj.colled = true;
}
}
}
}
+14 -3
View File
@@ -1568,7 +1568,9 @@
"resources": [
"/views/user/bindingMobile.html"
],
"refer": [],
"refer": [
"views/user/passLogin.html"
],
"priority": 0
},
"views/district/detail.html": {
@@ -1617,7 +1619,8 @@
"refer": [
"views/user/passLogin.html",
"views/district/detail.html",
"views/setting/setting.html"
"views/setting/setting.html",
"views/user/codeSms.html"
],
"priority": 0
},
@@ -1670,7 +1673,15 @@
"views/house/regions.html",
"views/district/detail.html",
"views/user/codeSms.html",
"views/house/cityDetail.html"
"views/house/cityDetail.html",
"views/user/passLogin.html"
],
"priority": 0
},
"views/house/houseManageList.html": {
"resources": [],
"refer": [
"views/house/add.html"
],
"priority": 0
}
+1 -1
View File
@@ -65,7 +65,7 @@ Vue.component('near-dist-component', {
});
},
showDistrict:function(index){
clicked('../district/detail.html',true,false,{},{city:distDatas.nearDists[index].city,region:distDatas.nearDists[index].region,name:distDatas.nearDists[index].name});
clicked('../district/detail.html',true,false,{},{city:distDatas.nearDists[index].city,region:distDatas.nearDists[index].district,name:distDatas.nearDists[index].name});
}
},
mounted:function(){
+1 -1
View File
@@ -165,7 +165,7 @@
</div>
<div class="topic">
<div class="topic" id="mapDiv">
<div class="topicTitle">位置及周边</div>
<div class="topicContent" style="padding:0;">
<div class="content-block content-block01 content-block01a" id="aroundLink">
+2 -1
View File
@@ -180,7 +180,8 @@
<span>当前参考均价</span>
</div>
<div class="card-content">
<div class="card-content-inner">{{myCityMap.cityTopMonthAvgPrice}}<span>元/㎡</span></div>
<div class="card-content-inner" v-if="myCityMap.cityTopMonthAvgPrice > 0">{{myCityMap.cityTopMonthAvgPrice}}<span>元/㎡</span></div>
<div class="card-content-inner" v-else>暂无</div>
</div>
<div class="card-footer">
<span v-if="myCityMap.oneMonthUpDownRange >= 0">
+27 -20
View File
@@ -27,6 +27,9 @@
.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;}
.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:11px;left:0;z-index:100;}
.loadingBg .infinite-scroll-preloader{margin-top:30%;}
</style>
</head>
@@ -101,7 +104,7 @@
</div>
</div>
<div class="topic">
<div class="topic" id="mapDiv">
<div class="topicTitle">位置及周边</div>
<div class="topicContent" style="padding:0;">
<div class="content-block content-block01 content-block01a" id="aroundLink">
@@ -171,24 +174,15 @@ $.config = {router: false}
<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 city = "北京"
var region = "顺义"
var name = "龙湾别墅五期"
var city = "上海"
var region = "闵行"
var name = "卓越维港别墅"
var lat;
var lng;
var address;
var tags;
var baseInfo = new Vue({
el: '#districtBaseInfo',
data: {
name : "",
city:"",
region: "",
address: "",
tags:[]
}
})
var baseInfo ;
@@ -206,15 +200,28 @@ function onPlusReady() {
region = self.region
name = self.name;
// 创建根实例
new Vue({
el: '#baseInfo'
baseInfo = new Vue({
el: '#districtBaseInfo',
data: {
name : "",
city:"",
region: "",
address: "",
tags:[]
}
})
}
//new Vue({
// el: '#baseInfo'
//})
/*baseInfo = new Vue({
el: '#districtBaseInfo',
data: {
name : "",
city:"",
region: "",
address: "",
tags:[]
}
})*/
/* 小区租金走势 */
+1
View File
@@ -109,6 +109,7 @@ function logout() {
//退出登录之前loading下个人中心
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
plus.webview.getWebviewById('views/user/userInfo.html').reload();
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
timer.start();
}