update
This commit is contained in:
@@ -496,6 +496,7 @@ function docollectCity(city, type){
|
||||
}).then(function (response) {
|
||||
var msg = response.data.message;
|
||||
if(msg){
|
||||
|
||||
if(msg == "取消关注成功"){
|
||||
try{
|
||||
cityInfoVue.$data.collecd = false;
|
||||
@@ -503,7 +504,7 @@ function docollectCity(city, type){
|
||||
var da = cityDetaiVue.$data.citys
|
||||
if(da && da.length>0){
|
||||
var index = da.indexOf(city)
|
||||
if(index>0){
|
||||
if(index>=0){
|
||||
da.splice(index, 1)
|
||||
cityDetaiVue.$data.citys = da;
|
||||
if(da.length>0){
|
||||
|
||||
@@ -1545,7 +1545,8 @@
|
||||
"error.html",
|
||||
"views/rent/rent.html",
|
||||
"views/district/detail.html",
|
||||
"views/house/houseList.html"
|
||||
"views/house/houseList.html",
|
||||
"views/house/cityDetail.html"
|
||||
],
|
||||
"priority": 0
|
||||
},
|
||||
|
||||
@@ -82,7 +82,14 @@ Vue.component('city_increase_ranking',{
|
||||
$(event.target).addClass("dn");
|
||||
reloadMyFocus()
|
||||
reloadCityPotentialRanking()
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}).catch(function(error){
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -1565,7 +1565,14 @@ function addFocus(city){
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
createData(city, myDatasVue.$data.cityDatas.length);
|
||||
|
||||
var curDatas = response.data.data
|
||||
if(curDatas && curDatas.length>0){
|
||||
if(!IsInArray(curDatas, city)){
|
||||
cityDetaiVue.$data.citys.push(city);
|
||||
}
|
||||
}
|
||||
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
})
|
||||
@@ -1577,7 +1584,15 @@ function addFocus(city){
|
||||
reloadMyFocus()
|
||||
reloadCityIncreaseRanking()
|
||||
reloadCityPotentialRanking()
|
||||
cityDetaiVue.$data.citys.push(city);
|
||||
|
||||
var curDatas = cityDetaiVue.$data.citys
|
||||
if(curDatas && curDatas.length>0){
|
||||
|
||||
if(!IsInArray(curDatas, city)){
|
||||
cityDetaiVue.$data.citys.push(city);
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
$.toast(response.data.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user