YOUFANG 房产行情 house_detail

This commit is contained in:
zongzhimin
2018-04-12 10:51:03 +08:00
parent 4fc70df55c
commit 515f034897
3 changed files with 33 additions and 31 deletions
@@ -44,10 +44,10 @@ Vue.component('my_focus',{
},
methods:{
loadMyFocus:function(){
// if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
// $("#myFocusFirstPage").hide()
// $("#myFocus").hide();
// }else{
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();
@@ -58,7 +58,7 @@ Vue.component('my_focus',{
}).catch(function(error){
console.log(error)
})
// }
}
}
},mounted:function(){
this.loadMyFocus();