Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1

This commit is contained in:
2018-04-13 13:30:41 +08:00
12 changed files with 139 additions and 53 deletions
+18 -7
View File
@@ -1470,13 +1470,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)
})
}
}
function hotCity(city){