diff --git a/fangija-zsyf/js/axiosPlugin.js b/fangija-zsyf/js/axiosPlugin.js index b3f4b53..39e6d98 100644 --- a/fangija-zsyf/js/axiosPlugin.js +++ b/fangija-zsyf/js/axiosPlugin.js @@ -14,6 +14,14 @@ axios.interceptors.request.use(function (config) { axios.interceptors.response.use(function (response) { return response; }, function (error) { - clicked('error.html',true,false,{},{},function(){}) + if(error=="Error: Network Error"){ + if(plus.webview.getWebviewById('error.html')==null){ + clicked('error.html',true,false,{},{},function(){ + window.location.reload(); + }) + }else{ + plus.webview.getWebviewById("error.html").show(); + } + } return Promise.reject(error); }); \ No newline at end of file diff --git a/fangija-zsyf/js/district/districtDetail.js b/fangija-zsyf/js/district/districtDetail.js index 0dcd6d5..030ca58 100644 --- a/fangija-zsyf/js/district/districtDetail.js +++ b/fangija-zsyf/js/district/districtDetail.js @@ -208,7 +208,6 @@ function loadDistrictInfo(){ } }).catch(function (error) { - alert(error) console.log(error); }); } @@ -242,7 +241,6 @@ function loadDistrictInfo(){ } }).catch(function (error) { - alert(error) console.log(error); }); }*/ @@ -291,7 +289,6 @@ function loadKLineData(city, region, name){ } }).catch(function (error) { - alert(error) console.log(error); }); } @@ -573,7 +570,6 @@ function loadRentTrends(city, region, name, type){ $("#tabRentDiv").addClass("dn") } }).catch(function (error) { - alert(error) console.log(error); }); } diff --git a/fangija-zsyf/js/quotations/cityDetail.js b/fangija-zsyf/js/quotations/cityDetail.js index b5f458b..a97034f 100644 --- a/fangija-zsyf/js/quotations/cityDetail.js +++ b/fangija-zsyf/js/quotations/cityDetail.js @@ -12,7 +12,6 @@ function loadCurCity(city){ } }).catch(function (error) { - alert(error) console.log(error); }); } @@ -39,7 +38,6 @@ function loadCityPriceInfo(city){ cityInfoVue.$data.myCityMap = cityObj; } }).catch(function (error) { - alert(error) console.log(error); }); @@ -56,7 +54,6 @@ function loadUpOrDown(city){ loadUpOrDownChart(data2.downRate, data2.upRate); } }).catch(function (error) { - alert(error) console.log(error); }); } @@ -73,7 +70,6 @@ function loadCityPricesAndCounts(city){ loadTrends(data3.times, data3.cityPriceMap , data3.countMap); } }).catch(function (error) { - alert(error) console.log(error); }); } @@ -102,7 +98,6 @@ function loadHotDistrict(city){ cityInfoVue.$data.nears = nears; } }).catch(function (error) { - alert(error) console.log(error); }); } @@ -163,7 +158,6 @@ function startingLoadCharts(city, type){ showChart("price_chart", times, prices, counts) }).catch(function (error) { - alert(error) console.log(error); }); } diff --git a/fangija-zsyf/js/quotations/collectCity.js b/fangija-zsyf/js/quotations/collectCity.js index 1e51f55..b8107b0 100644 --- a/fangija-zsyf/js/quotations/collectCity.js +++ b/fangija-zsyf/js/quotations/collectCity.js @@ -157,7 +157,6 @@ function loadMyCollectCity(){ }).catch(function (error) { - alert(error) console.log(error); }); } @@ -307,7 +306,6 @@ function startingLoadCharts(city, type, num){ showChart(num+"_price_chart", times, prices, counts) }).catch(function (error) { - alert(error) console.log(error); }); } diff --git a/fangija-zsyf/js/searchDistrict-add.js b/fangija-zsyf/js/searchDistrict-add.js index ea3df37..7405e61 100644 --- a/fangija-zsyf/js/searchDistrict-add.js +++ b/fangija-zsyf/js/searchDistrict-add.js @@ -56,7 +56,6 @@ $("#districtName").bind("input propertychange keyup" , function () { $('.searchList').show(); } }).catch(function (error) { - alert(error) console.log(error); }); @@ -144,7 +143,6 @@ function addHotDistricts(cityParam){ } }).catch(function (error) { - alert(error) console.log(error); }); } diff --git a/fangija-zsyf/js/searchDistrict-app.js b/fangija-zsyf/js/searchDistrict-app.js index 54b3567..fbe4401 100644 --- a/fangija-zsyf/js/searchDistrict-app.js +++ b/fangija-zsyf/js/searchDistrict-app.js @@ -65,7 +65,6 @@ $("#districtName").bind("input propertychange keyup" , function () { $('.searchList').show(); } }).catch(function (error) { - alert(error) console.log(error); }); @@ -150,7 +149,6 @@ function addHotDistricts(cityParam){ } }).catch(function (error) { - alert(error) console.log(error); }); } diff --git a/fangija-zsyf/js/updateVersion/searchDistrict-app.js b/fangija-zsyf/js/updateVersion/searchDistrict-app.js index dab006f..7123fe0 100644 --- a/fangija-zsyf/js/updateVersion/searchDistrict-app.js +++ b/fangija-zsyf/js/updateVersion/searchDistrict-app.js @@ -53,7 +53,6 @@ $("#districtName").bind("input propertychange keyup" , function () { $('.searchList').show(); } }).catch(function (error) { - alert(error) console.log(error); }); @@ -134,7 +133,6 @@ function addHotDistricts(cityParam){ } }).catch(function (error) { - alert(error) console.log(error); }); } diff --git a/fangija-zsyf/views/component/baseInfoComponent.js b/fangija-zsyf/views/component/baseInfoComponent.js index b272aa6..1b0b163 100644 --- a/fangija-zsyf/views/component/baseInfoComponent.js +++ b/fangija-zsyf/views/component/baseInfoComponent.js @@ -215,7 +215,6 @@ Vue.component('base-info-component', { } }).catch(function (error) { - alert(error) console.log(error); }); } diff --git a/fangija-zsyf/views/component/mapComponent.js b/fangija-zsyf/views/component/mapComponent.js index c668508..47a7c8d 100644 --- a/fangija-zsyf/views/component/mapComponent.js +++ b/fangija-zsyf/views/component/mapComponent.js @@ -28,7 +28,6 @@ Vue.component('map-component', { loadMapPoi(); } }).catch(function (error) { - alert(error) console.log(error); }); } diff --git a/fangija-zsyf/views/component/nearDist.js b/fangija-zsyf/views/component/nearDist.js index a955c91..899a559 100644 --- a/fangija-zsyf/views/component/nearDist.js +++ b/fangija-zsyf/views/component/nearDist.js @@ -60,7 +60,6 @@ Vue.component('near-dist-component', { } }).catch(function (error) { - alert(error) console.log(error); }); }, diff --git a/fangija-zsyf/views/component/roomRent.js b/fangija-zsyf/views/component/roomRent.js index fcf8574..572f231 100644 --- a/fangija-zsyf/views/component/roomRent.js +++ b/fangija-zsyf/views/component/roomRent.js @@ -36,7 +36,6 @@ Vue.component('room-rent-component', { } }).catch(function (error) { - alert(error) console.log(error); }); } diff --git a/fangija-zsyf/views/component/trends.js b/fangija-zsyf/views/component/trends.js index ce57843..8c86456 100644 --- a/fangija-zsyf/views/component/trends.js +++ b/fangija-zsyf/views/component/trends.js @@ -171,7 +171,6 @@ function loadRentTrends(city, region, name){ $("#tabRentDiv").addClass("dn"); } }).catch(function (error) { - alert(error) console.log(error); }); } diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index 928dfdc..03af37c 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -1557,7 +1557,6 @@ function loadMyCollectCity(){ } }).catch(function (error) { - alert(error) console.log(error); }); diff --git a/fangija-zsyf/views/house/houseManageList.html b/fangija-zsyf/views/house/houseManageList.html index 34f42e4..d2ddfb0 100644 --- a/fangija-zsyf/views/house/houseManageList.html +++ b/fangija-zsyf/views/house/houseManageList.html @@ -214,7 +214,7 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap htmlContent = htmlContent +"
"; htmlContent = htmlContent +"
"+result.city+"-"+result.region+"
"; htmlContent = htmlContent +"
"; - htmlContent = htmlContent +"
"+result.roomCount+"室"+result.hallCount+"厅  "+result.area+"m  "+result.floor+"/"+result.height+"层
"; + htmlContent = htmlContent +"
"+result.roomCount+"室"+result.hallCount+"厅  "+result.area+"㎡  "+result.floor+"/"+result.height+"层
"; htmlContent = htmlContent +"
"; //对应城市地区小区30天涨跌幅 //动态构建key