YOUFANG app

This commit is contained in:
zongzhimin
2018-04-13 12:02:05 +08:00
parent 108d175352
commit d34ef2f1a9
5 changed files with 104 additions and 34 deletions
@@ -63,4 +63,23 @@ Vue.component('my_focus',{
},mounted:function(){
this.loadMyFocus();
}
})
})
function reloadMyFocus(){
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
$("#myFocusFirstPage").hide()
$("#myFocus").hide();
}else{
axios.get("/rest/quotations/userCollectCityInfo").then(function(response){
if(response.data.data.length==0){
$("#myFocusFirstPage").hide();
$("#myFocus").hide();
}else{
myFocusDatas.myFocusList = response.data.data;
}
}).catch(function(error){
console.log(error)
})
}
}