watch:{
'searchDatas.City':{
handler(curVal,oldVal){
// console.log(curVal,oldVal)
// 城市统计------------------------
this.axios({
method:"get",
url:this.siteUrl+"/place/GetHotCitys?city="+this.searchDatas.City ,
})
.then((res)=>{
console.log("type", typeof res.data)
// if(typeof res.data == String){
// console.log("res",res.data)
if(res.data!="" ){
res.data=JSON.parse(res.data)
}
// }
// console.log("res2",res.data)
this.citys=res.data
})
.catch((err)=>{
console.log(err)
})
},
deep:true
}
}
网友评论