From 0322e882a052063a869f13efd0c91d3848458169 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Wed, 18 Apr 2018 16:17:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/js/quotations/cityDetail.js | 6 +++--- .../views/component/cityIncreaseRankingComponent.js | 11 +++++------ .../views/component/cityPotentialRankingComponent.js | 6 ++++-- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/fangija-zsyf/js/quotations/cityDetail.js b/fangija-zsyf/js/quotations/cityDetail.js index 5696654..38c9176 100644 --- a/fangija-zsyf/js/quotations/cityDetail.js +++ b/fangija-zsyf/js/quotations/cityDetail.js @@ -482,9 +482,6 @@ function collectCity(city, type){ if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") { clicked('../user/codeSms.html',true,false,{},{},function(){ collectCity(city, type) - plus.webview.getWebviewById('views/house/houseDetail.html').reload(); - plus.webview.getWebviewById('views/house/houseManageList.html').reload(); - plus.webview.getWebviewById('views/user/userInfo.html').reload(); }) return; } else { @@ -498,7 +495,10 @@ function collectCity(city, type){ $.confirm(title, function () { docollectCity(city, type) + plus.webview.getWebviewById('views/house/houseDetail.html').reload(); }); + plus.webview.getWebviewById('views/house/houseManageList.html').reload(); + plus.webview.getWebviewById('views/user/userInfo.html').reload(); } diff --git a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js index b799838..22b0d41 100644 --- a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js +++ b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js @@ -78,12 +78,9 @@ Vue.component('city_increase_ranking',{ } } -// reloadMyFocus() -// reloadCityPotentialRanking() -// reloadCityIncreaseRanking() + plus.webview.getWebviewById('views/house/houseDetail.html').reload(); - plus.webview.getWebviewById('views/house/houseManageList.html').reload(); - plus.webview.getWebviewById('views/user/userInfo.html').reload(); + // loadMyCollectCity() if(type == 0){ var curDatas = cityDetaiVue.$data.citys @@ -99,6 +96,9 @@ Vue.component('city_increase_ranking',{ console.log(error) }) }); + + plus.webview.getWebviewById('views/house/houseManageList.html').reload(); + plus.webview.getWebviewById('views/user/userInfo.html').reload(); } }) }else{ @@ -156,7 +156,6 @@ Vue.component('city_increase_ranking',{ } }) }else{ - $.confirm("您确定要取消关注?", function () { axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){ //$(event.target).parent().children().removeClass("dn"); diff --git a/fangija-zsyf/views/component/cityPotentialRankingComponent.js b/fangija-zsyf/views/component/cityPotentialRankingComponent.js index bbb8da4..996a01d 100644 --- a/fangija-zsyf/views/component/cityPotentialRankingComponent.js +++ b/fangija-zsyf/views/component/cityPotentialRankingComponent.js @@ -96,8 +96,7 @@ Vue.component('city_potential_ranking',{ } } plus.webview.getWebviewById('views/house/houseDetail.html').reload(); - plus.webview.getWebviewById('views/house/houseManageList.html').reload(); - plus.webview.getWebviewById('views/user/userInfo.html').reload(); + reloadMyFocus() reloadCityIncreaseRanking() //cityDetaiVue.$data.citys.push(city); @@ -106,6 +105,9 @@ Vue.component('city_potential_ranking',{ console.log(error) }) }); + + plus.webview.getWebviewById('views/house/houseManageList.html').reload(); + plus.webview.getWebviewById('views/user/userInfo.html').reload(); } }) }else{