diff --git a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js index 231c4c6..abe937c 100644 --- a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js +++ b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js @@ -60,6 +60,7 @@ Vue.component('city_increase_ranking',{ $(event.target).parent().children().removeClass("dn"); $(event.target).addClass("dn"); reloadMyFocus() + reloadCityPotentialRanking() plus.webview.getWebviewById('views/house/houseDetail.html').reload(); plus.webview.getWebviewById('views/house/houseManageList.html').reload(); plus.webview.getWebviewById('views/user/userInfo.html').reload(); @@ -80,6 +81,7 @@ Vue.component('city_increase_ranking',{ $(event.target).parent().children().removeClass("dn"); $(event.target).addClass("dn"); reloadMyFocus() + reloadCityPotentialRanking() cityDetaiVue.$data.citys.push(city); } @@ -103,6 +105,7 @@ Vue.component('city_increase_ranking',{ $(event.target).parent().children().removeClass("dn"); $(event.target).addClass("dn"); reloadMyFocus(); + reloadCityPotentialRanking() //plus.webview.getWebviewById('views/user/userInfo.html').reload() var da = cityDetaiVue.$data.citys if(da && da.length>0){ @@ -123,3 +126,11 @@ Vue.component('city_increase_ranking',{ this.loadCityIncreaseRanking(); } }) + +function reloadCityIncreaseRanking(){ + axios.get("/rest/quotations/markUpTopInfos").then(function(response){ + cityIncreaseRankingData.cityIncreaseRankingList = response.data.data; + }).catch(function(error){ + console.log(error) + }) +} diff --git a/fangija-zsyf/views/component/cityPotentialRankingComponent.js b/fangija-zsyf/views/component/cityPotentialRankingComponent.js index 5965026..36f2729 100644 --- a/fangija-zsyf/views/component/cityPotentialRankingComponent.js +++ b/fangija-zsyf/views/component/cityPotentialRankingComponent.js @@ -79,11 +79,11 @@ Vue.component('city_potential_ranking',{ }else{ $(event.target).parent().children().removeClass("dn"); $(event.target).addClass("dn"); - alert(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(); reloadMyFocus() + reloadCityIncreaseRanking() //cityDetaiVue.$data.citys.push(city); } }).catch(function(error){ @@ -100,6 +100,7 @@ Vue.component('city_potential_ranking',{ $(event.target).parent().children().removeClass("dn"); $(event.target).addClass("dn"); reloadMyFocus() + reloadCityIncreaseRanking() cityDetaiVue.$data.citys.push(city); //plus.webview.getWebviewById('views/user/userInfo.html').reload(); } @@ -114,7 +115,7 @@ Vue.component('city_potential_ranking',{ $(event.target).parent().children().removeClass("dn"); $(event.target).addClass("dn"); reloadMyFocus() - + reloadCityIncreaseRanking() var da = cityDetaiVue.$data.citys if(da && da.length>0){ var index = da.indexOf(city) @@ -132,4 +133,24 @@ Vue.component('city_potential_ranking',{ mounted:function(){ this.loadCityPotentialRanking(); } -}) \ No newline at end of file +}) + +function reloadCityPotentialRanking(){ + axios.get("/rest/quotations/potentialUpTopInfos").then(function(response){ + list = response.data.data; + $(list).each(function(i){ + var index = this.index; + var totalHalfStar = Math.round(Math.round(index/5)/2) //总半星 + var starNum = Math.floor(totalHalfStar/2) //全星 + var halfStarNum = totalHalfStar%2 //半星 + var noneStarNum = 5-starNum-halfStarNum //空星 + this.starNum = starNum; + this.halfStarNum = halfStarNum; + this.noneStarNum = noneStarNum; + }) + cityPotentialRankingData.cityPotentialRankingList = response.data.data; + + }).catch(function(error){ + console.log(error) + }) +} \ No newline at end of file diff --git a/fangija-zsyf/views/evaluate/evaluateReport.html b/fangija-zsyf/views/evaluate/evaluateReport.html index 4119adb..0c782c2 100644 --- a/fangija-zsyf/views/evaluate/evaluateReport.html +++ b/fangija-zsyf/views/evaluate/evaluateReport.html @@ -136,7 +136,8 @@ $.config = {router: false} - + + diff --git a/fangija-zsyf/views/house/add.html b/fangija-zsyf/views/house/add.html index c91d8dc..3194f18 100644 --- a/fangija-zsyf/views/house/add.html +++ b/fangija-zsyf/views/house/add.html @@ -1235,6 +1235,7 @@ $.config = {router: false} + diff --git a/fangija-zsyf/views/house/cityDetail.html b/fangija-zsyf/views/house/cityDetail.html index dac5cf0..20a2c9d 100644 --- a/fangija-zsyf/views/house/cityDetail.html +++ b/fangija-zsyf/views/house/cityDetail.html @@ -137,6 +137,7 @@ $.config = {router: false} + diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index 7bdf490..ff16226 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -327,6 +327,13 @@ 按城市等级 +
+
+
+
+
+
+
@@ -1199,6 +1206,7 @@ $.config = {router: false} + @@ -1321,13 +1329,13 @@ $.config = {router: false} /* 获取城市 */ $(".popup-about01 .cityGPS").on("click", function () { - $("#input_city").val($(this).find("p").text()); + //$("#input_city").val($(this).find("p").text()); $(".cityChoice a").text($(this).find("p").text()); $(".popup-about01 p").removeClass("active"); addFocus($(this).find("p").text()) }); $(".popup-about01 p").on("click", function () { - $("#input_city").val($(this).text()); + //$("#input_city").val($(this).text()); $(".cityChoice a").text($(this).text()); $(".popup-about01 p").removeClass("active"); $(this).addClass("active"); @@ -1340,6 +1348,42 @@ $.config = {router: false} }); loadMyCollectCity(); + + //城市选择 + //$("#cityCopy").html($('.tabs').html()) + var getAllCitys = function() { + var list = new Array(); + $("#tabCity1 #cityContainer .city p").each(function(i, o) { + list.push($(o).text()); + }); + return list; + } + + var search = function(){ + var city = $("#citySearchInp").val(); + $("#selectContainer .city-list").empty(); + $("#selectContainer").show(); + + var cityList = getAllCitys(); + for(var i=0;i'+cityList[i]+'

'); + } + } + + if(city == ""){ + $("#selectContainer").hide(); + } + } + + $("#citySearchInp").bind('input propertychange keyup', function() { + search(); + }); + + $("#citySearchInp").bind('keyup', function() { + search(); + }); + } @@ -1393,10 +1437,14 @@ $.config = {router: false} }); + function addCityFocus(city){ + //city=city.replace("","") + //$("#input_city").text(city); + addFocus(city); + } - - + diff --git a/fangija-zsyf/views/rent/rentManager.html b/fangija-zsyf/views/rent/rentManager.html index 8e4f89c..6b35b90 100644 --- a/fangija-zsyf/views/rent/rentManager.html +++ b/fangija-zsyf/views/rent/rentManager.html @@ -116,6 +116,7 @@ $.config = {router: false} + diff --git a/fangija-zsyf/views/setting/about.html b/fangija-zsyf/views/setting/about.html index 977eedd..0b9437f 100644 --- a/fangija-zsyf/views/setting/about.html +++ b/fangija-zsyf/views/setting/about.html @@ -83,6 +83,7 @@ $.config = {router: false} + \ No newline at end of file diff --git a/fangija-zsyf/views/setting/agreement.html b/fangija-zsyf/views/setting/agreement.html index d53e0db..387660f 100644 --- a/fangija-zsyf/views/setting/agreement.html +++ b/fangija-zsyf/views/setting/agreement.html @@ -204,6 +204,7 @@ $.config = {router: false} + \ No newline at end of file diff --git a/fangija-zsyf/views/user/bindingMobile.html b/fangija-zsyf/views/user/bindingMobile.html index 6cd3a43..764286a 100644 --- a/fangija-zsyf/views/user/bindingMobile.html +++ b/fangija-zsyf/views/user/bindingMobile.html @@ -79,6 +79,7 @@ $.config = {router: false} + diff --git a/fangija-zsyf/views/user/passLogin.html b/fangija-zsyf/views/user/passLogin.html index 93a9920..de499dd 100644 --- a/fangija-zsyf/views/user/passLogin.html +++ b/fangija-zsyf/views/user/passLogin.html @@ -87,6 +87,7 @@ $.config = {router: false} + diff --git a/fangija-zsyf/views/user/updatePass.html b/fangija-zsyf/views/user/updatePass.html index f414c21..a43a922 100644 --- a/fangija-zsyf/views/user/updatePass.html +++ b/fangija-zsyf/views/user/updatePass.html @@ -77,6 +77,7 @@ $.config = {router: false} +