YOUFANG1.0.3 关注后登录刷新页面
This commit is contained in:
@@ -53,7 +53,52 @@ Vue.component('city_increase_ranking',{
|
|||||||
clicked('/views/user/passLogin.html',true,false,{},{},function(){
|
clicked('/views/user/passLogin.html',true,false,{},{},function(){
|
||||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||||
}else{
|
}else{
|
||||||
|
$.confirm('您确定要关注'+city+"?", function () {
|
||||||
|
axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
|
||||||
|
var msg = response.data.message;
|
||||||
|
if(msg != "取消关注成功" && msg != "关注成功"){
|
||||||
|
$.toast(msg);
|
||||||
|
}else{
|
||||||
|
//$(event.target).parent().children().removeClass("dn");
|
||||||
|
//$(event.target).addClass("dn");
|
||||||
|
|
||||||
|
var increaseList = cityIncreaseRankingData.cityIncreaseRankingList
|
||||||
|
|
||||||
|
if(increaseList && increaseList.length>0){
|
||||||
|
for(var i in increaseList){
|
||||||
|
var dd = increaseList[i];
|
||||||
|
if(dd.city == city){
|
||||||
|
if(type == 0){
|
||||||
|
dd.follow = true;
|
||||||
|
}else{
|
||||||
|
dd.follow = false;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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
|
||||||
|
if(curDatas && curDatas.length>=0){
|
||||||
|
if(!IsInArray(curDatas, city)){
|
||||||
|
cityDetaiVue.$data.citys.push(city);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch(function(error){
|
||||||
|
console.log(error)
|
||||||
|
})
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user