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..e70cffb 100644 --- a/fangija-zsyf/js/district/districtDetail.js +++ b/fangija-zsyf/js/district/districtDetail.js @@ -105,6 +105,17 @@ function loadMap(){ } } }*/ +function showLoadRentTrends(type) { + if(type == 3) { + document.getElementById("trendDivTab3").setAttribute("class","tab-link button active"); + document.getElementById("trendDivTab2").setAttribute("class","tab-link button"); + } else { + document.getElementById("trendDivTab3").setAttribute("class","tab-link button"); + document.getElementById("trendDivTab2").setAttribute("class","tab-link button active"); + } + + loadRentTrends(city, region, name,type); +} //小区详情 function loadDistrictInfo(){ @@ -208,7 +219,6 @@ function loadDistrictInfo(){ } }).catch(function (error) { - alert(error) console.log(error); }); } @@ -242,7 +252,6 @@ function loadDistrictInfo(){ } }).catch(function (error) { - alert(error) console.log(error); }); }*/ @@ -291,7 +300,6 @@ function loadKLineData(city, region, name){ } }).catch(function (error) { - alert(error) console.log(error); }); } @@ -302,6 +310,7 @@ function showTrends(v){ if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") { clicked('../user/codeSms.html',true,false,{},{},function(){ showTrends(v); + plus.webview.getWebviewById('views/user/userInfo.html').reload(); }) return; } else { @@ -373,7 +382,7 @@ var option01 = { type: 'slider', xAxisIndex: [0, 1], realtime: false, - start: 50, + start: 0, end: 100, top: 65, height: 20, @@ -573,7 +582,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 8c27744..a97034f 100644 --- a/fangija-zsyf/js/quotations/cityDetail.js +++ b/fangija-zsyf/js/quotations/cityDetail.js @@ -1,9 +1,9 @@ var ret = [] -function loadMyCollectCity(){ +function loadCurCity(city){ axios.get("/rest/quotations/userCollectCitys",{}).then(function (response) { var curDatas = response.data.data - if(curDatas){ + if(curDatas && curDatas.length>0){ if(IsInArray(curDatas, city)){ cityInfoVue.$data.collecd = true; }else{ @@ -12,7 +12,6 @@ function loadMyCollectCity(){ } }).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); }); } @@ -183,6 +177,7 @@ function loadUpOrDownChart(downRate, upRate){ dataUp = [cityObj1, cityObj2] addUpChart(dataUp) + $("#up_chart").parent().parent().show(); }else{ $("#up_chart").parent().parent().hide() } @@ -198,6 +193,7 @@ function loadUpOrDownChart(downRate, upRate){ dataDown = [cityObj3, cityObj4] addDownChart(dataDown) + $("#down_chart").parent().parent().show(); }else{ $("#down_chart").parent().parent().hide() } @@ -464,9 +460,29 @@ function docollectCity(city){ var msg = response.data.message; if(msg){ if(msg == "取消关注成功"){ - cityInfoVue.$data.collecd = false; + try{ + cityInfoVue.$data.collecd = false; + + var da = cityDetaiVue.$data.citys + if(da && da.length>0){ + var index = da.indexOf(city) + if(index>0){ + da.splice(index, 1) + cityDetaiVue.$data.citys = da; + if(da.length>0){ + $("a[href='#tabQuotation0']").click(); + } + } + } + }catch(e){ + + } + + + plus.webview.getWebviewById('views/house/houseDetail.html').reload(); }else if(msg == "关注成功"){ cityInfoVue.$data.collecd = true; + plus.webview.getWebviewById('views/house/houseDetail.html').reload(); }else{ $.toast(msg); } @@ -478,3 +494,4 @@ function docollectCity(city){ }); } + 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/manifest.json b/fangija-zsyf/manifest.json index 6bbd6c7..10a872c 100644 --- a/fangija-zsyf/manifest.json +++ b/fangija-zsyf/manifest.json @@ -1620,7 +1620,8 @@ "views/user/passLogin.html", "views/district/detail.html", "views/setting/setting.html", - "views/user/codeSms.html" + "views/user/codeSms.html", + "views/house/detail.html" ], "priority": 0 }, @@ -1668,7 +1669,25 @@ "priority": 0 }, "views/house/houseDetail.html": { - "resources": [], + "resources": [ + "views/component/cityIncreaseRankingComponent.js", + "js/echarts.js", + "css/main.css", + "js/axiosPlugin.js", + "js/quotations/cityDetail.js", + "js/light7.js", + "views/component/cityPotentialRankingComponent.js", + "js/cn.js", + "views/component/myFocusComponent.js", + "js/zepto.js", + "css/city.css", + "js/log/log_stat.js", + "js/common.js", + "js/axios.min.js", + "js/vue.js", + "views/component/cityChooseComponent.js", + "js/highcharts-4.2.3.js" + ], "refer": [ "views/house/regions.html", "views/district/detail.html", diff --git a/fangija-zsyf/views/component/baseInfoComponent.js b/fangija-zsyf/views/component/baseInfoComponent.js index b272aa6..f7ce495 100644 --- a/fangija-zsyf/views/component/baseInfoComponent.js +++ b/fangija-zsyf/views/component/baseInfoComponent.js @@ -33,56 +33,56 @@ Vue.component('base-info-component', {

{{finishBuildingDate}} - 暂无数据 + 暂无

{{cubagePercent}} - 暂无数据 + 暂无

{{virescencePercent}} - 暂无数据 + 暂无

{{moreArea}} - 暂无数据 + 暂无

{{developer}} - 暂无数据 + 暂无

{{estateCompany}} - 暂无数据 + 暂无

{{householdCount}} - 暂无数据 + 暂无

{{carSiteCount}} - 暂无数据 + 暂无

{{estateCharge}}元/㎡/月 - 暂无数据 + 暂无

@@ -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..cc18123 100644 --- a/fangija-zsyf/views/component/nearDist.js +++ b/fangija-zsyf/views/component/nearDist.js @@ -10,7 +10,7 @@ Vue.component('near-dist-component', {
{{dist.sname}}
-
{{dist.avgPrice}}元/㎡
+
{{dist.avgPrice?(dist.avgPrice+"元/㎡"):'暂无'}}
@@ -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/district/detail.html b/fangija-zsyf/views/district/detail.html index dd7e4c1..0b3a0d8 100644 --- a/fangija-zsyf/views/district/detail.html +++ b/fangija-zsyf/views/district/detail.html @@ -165,7 +165,7 @@ -
+
位置及周边