This commit is contained in:
2018-04-16 20:23:00 +08:00
parent 9a872297c1
commit 826a4b0ab6
5 changed files with 38 additions and 7 deletions
@@ -69,7 +69,7 @@ Vue.component('city_potential_ranking',{
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
clicked('/views/user/passLogin.html',true,false,{},{},function(){
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
alert("rrrr")
}else{
axios.get("/rest/quotations/collectCity",{params:{city:city, type:type}}).then(function(response){
@@ -101,7 +101,14 @@ Vue.component('city_potential_ranking',{
$(event.target).addClass("dn");
reloadMyFocus()
reloadCityIncreaseRanking()
cityDetaiVue.$data.citys.push(city);
if(type == 0){
var curDatas = cityDetaiVue.$data.citys
if(curDatas && curDatas.length>0){
if(!IsInArray(curDatas, city)){
cityDetaiVue.$data.citys.push(city);
}
}
}
//plus.webview.getWebviewById('views/user/userInfo.html').reload();
}
}).catch(function(error){