+
+
全国
{{mycollectcity}}
@@ -46,8 +46,8 @@
-
-
+
+
@@ -80,7 +80,7 @@
-
+
@@ -168,7 +168,7 @@
-
+
@@ -1511,11 +1511,15 @@ function addFocus(city){
}else{
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
- reloadMyFocus()
- 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);
+ if(response.data.status){
+ reloadMyFocus()
+ 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);
+ } else {
+ $.toast(response.data.message);
+ }
}).catch(function(error){
console.log(error)
})
@@ -1523,8 +1527,13 @@ function addFocus(city){
})
}else{
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
- reloadMyFocus()
- cityDetaiVue.$data.citys.push(city);
+ if(response.data.status){
+ reloadMyFocus()
+ cityDetaiVue.$data.citys.push(city);
+ } else {
+ $.toast(response.data.message);
+ }
+
}).catch(function(error){
console.log(error)
})