This commit is contained in:
2018-04-14 17:43:14 +08:00
parent 05db35166d
commit f5f5aa0e58
3 changed files with 41 additions and 28 deletions
@@ -66,6 +66,7 @@ Vue.component('city_potential_ranking',{
})
},
follow:function(city,event){
alert("wwww")
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
clicked('/views/user/passLogin.html',true,false,{},{},function(){
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
@@ -74,10 +75,11 @@ Vue.component('city_potential_ranking',{
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
$(event.target).parent().children().removeClass("dn");
$(event.target).addClass("dn");
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
// 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()
cityDetaiVue.$data.citys.push(city);
}).catch(function(error){
console.log(error)
})
@@ -88,6 +90,7 @@ Vue.component('city_potential_ranking',{
$(event.target).parent().children().removeClass("dn");
$(event.target).addClass("dn");
reloadMyFocus()
cityDetaiVue.$data.citys.push(city);
//plus.webview.getWebviewById('views/user/userInfo.html').reload();
}).catch(function(error){
console.log(error)