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
+18 -7
View File
@@ -1467,13 +1467,24 @@ function markFocus(){
}
function addFocus(city){
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
createData(city, myDatasVue.$data.cityDatas.length);
}).catch(function(error){
console.log(error)
})
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
alert("请先登录")
clicked('/views/user/passLogin.html',true,false,{},{},function(){
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
}else{
}
})
}else{
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
reloadMyFocus()
createData(city, myDatasVue.$data.cityDatas.length);
}).catch(function(error){
console.log(error)
})
}
}
</script>