Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1

This commit is contained in:
2018-04-16 14:24:55 +08:00
5 changed files with 69 additions and 25 deletions
+22 -13
View File
@@ -36,8 +36,8 @@
</button>-->
<h1 class="title">房产行情</h1>
</header>
<div class="content" >
<div class="buttons-tab theme" id="tabCityDiv" >
<div class="content">
<div class="buttons-tab theme" id="tabCityDiv" v-cloak>
<a href="#tabQuotation1" class="tab-link active button">全国</a>
<div v-for="mycollectcity in citys" >
<a class="tab-link button" @click="clickCity(mycollectcity)" v-bind:vcity="mycollectcity">{{mycollectcity}}</a>
@@ -46,8 +46,8 @@
</div>
<div class="tabs">
<div id="tabQuotation1" class="tab active">
<div class="card cardPrice cardPrice01 cardCity" id="countryInfo">
<div id="tabQuotation1" class="tab active" >
<div class="card cardPrice cardPrice01 cardCity" id="countryInfo" v-cloak>
<div class="card-header">
<label>全国</label>
</div>
@@ -80,7 +80,7 @@
<div id="myFocusFirstPage">
<my_focus></my_focus>
</div>
<div class="cardNearbyBox cardNearbyBox01 cardRankingBox cardRankingBox01" id="countryRank">
<div class="cardNearbyBox cardNearbyBox01 cardRankingBox cardRankingBox01" id="countryRank" v-cloak>
<div class="cardNearbyWin">
<div class="card cardNearby cardRanking" v-for="item in datas">
<div class="card-header" v-if="item.type==0">
@@ -168,7 +168,7 @@
</div>
<div id="cityInfo" class="dn">
<div id="cityInfo" class="dn" v-cloak>
<div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId">
<div class="card-header">
<label>{{myCityMap.city}}</label>
@@ -1511,11 +1511,15 @@ function addFocus(city){
}else{
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
reloadMyFocus()
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
plus.webview.getWebviewById('views/user/userInfo.html').reload();
createData(city, myDatasVue.$data.cityDatas.length);
if(response.data.status){
reloadMyFocus()
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
plus.webview.getWebviewById('views/user/userInfo.html').reload();
createData(city, myDatasVue.$data.cityDatas.length);
} else {
$.toast(response.data.message);
}
}).catch(function(error){
console.log(error)
})
@@ -1523,8 +1527,13 @@ function addFocus(city){
})
}else{
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
reloadMyFocus()
cityDetaiVue.$data.citys.push(city);
if(response.data.status){
reloadMyFocus()
cityDetaiVue.$data.citys.push(city);
} else {
$.toast(response.data.message);
}
}).catch(function(error){
console.log(error)
})