diff --git a/fangija-zsyf/manifest.json b/fangija-zsyf/manifest.json index ed83339..03e0556 100644 --- a/fangija-zsyf/manifest.json +++ b/fangija-zsyf/manifest.json @@ -1646,7 +1646,9 @@ "images/start.png", "css/theme-blue.css" ], - "refer": [], + "refer": [ + "views/house/add.html" + ], "priority": 0 }, "views/user/passLogin.html": { diff --git a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js index e06f0e1..3214d1b 100644 --- a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js +++ b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js @@ -69,7 +69,7 @@ Vue.component('city_increase_ranking',{ reloadCityPotentialRanking() if(type == 0){ var curDatas = cityDetaiVue.$data.citys - if(curDatas && curDatas.length>0){ + if(curDatas && curDatas.length>=0){ if(!IsInArray(curDatas, city)){ cityDetaiVue.$data.citys.push(city); } diff --git a/fangija-zsyf/views/component/cityPotentialRankingComponent.js b/fangija-zsyf/views/component/cityPotentialRankingComponent.js index d307321..895c762 100644 --- a/fangija-zsyf/views/component/cityPotentialRankingComponent.js +++ b/fangija-zsyf/views/component/cityPotentialRankingComponent.js @@ -106,8 +106,7 @@ Vue.component('city_potential_ranking',{ reloadCityIncreaseRanking() if(type == 0){ var curDatas = cityDetaiVue.$data.citys - if(curDatas && curDatas.length>0){ - console.log("ddd"); + if(curDatas && curDatas.length>=0){ if(!IsInArray(curDatas, city)){ cityDetaiVue.$data.citys.push(city); } diff --git a/fangija-zsyf/views/component/myFocusComponent.js b/fangija-zsyf/views/component/myFocusComponent.js index 2bdc26a..0eaf3ed 100644 --- a/fangija-zsyf/views/component/myFocusComponent.js +++ b/fangija-zsyf/views/component/myFocusComponent.js @@ -75,8 +75,8 @@ function reloadMyFocus(){ $("#myFocusFirstPage").hide(); $("#myFocus").hide(); }else{ - myFocusDatas.myFocusList = response.data.data; + $("#myFocus").show() } }).catch(function(error){ console.log(error) diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index 1337e4e..8746a8b 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -77,7 +77,7 @@ -
+
@@ -1239,6 +1239,18 @@ $.config = {router: false} } }); + var allCityVue = new Vue({ + el: '#countryInfo', + data: { + nowYear : "", + nowMonth : "", + cityCount : "", + upRate : "", + downRate : "", + avgUpRate :"", + avgUownRate : "" + } + }) var cityDetaiVue = new Vue({ el: '#tabCityDiv', data: { @@ -1246,6 +1258,14 @@ $.config = {router: false} } }) + var cityRankVue = new Vue({ + el: '#countryRank', + data: { + datas : "" + } + }) + + document.addEventListener('plusready', onPlusReady, false); function onPlusReady(){ var city = ""; @@ -1401,19 +1421,14 @@ $.config = {router: false} } }) .then(function (response) { - new Vue({ - el: '#countryInfo', - data: { - nowYear : year, - nowMonth : month, - cityCount : response.data.data.cityCount, - upRate : response.data.data.upRate, - downRate : response.data.data.downRate, - avgUpRate : response.data.data.avgUpRate, - avgUownRate : response.data.data.avgUownRate - } - }) + allCityVue.nowYear = year; + allCityVue.nowMonth = month; + allCityVue.cityCount = response.data.data.cityCount; + allCityVue.upRate = response.data.data.upRate; + allCityVue.downRate = response.data.data.downRate; + allCityVue.avgUpRate = response.data.data.avgUpRate; + allCityVue.avgUownRate = response.data.data.avgUownRate; }) .catch(function (error) { console.log(error); @@ -1426,12 +1441,8 @@ $.config = {router: false} }) .then(function (response) { //0:涨幅排行 1:潜力排行 2:均价排行 - new Vue({ - el: '#countryRank', - data: { - datas : response.data.data - } - }) + + cityRankVue.datas = response.data.data }) .catch(function (error) { @@ -1570,7 +1581,7 @@ function addFocus(city){ plus.webview.getWebviewById('views/user/userInfo.html').reload(); var curDatas = response.data.data - if(curDatas && curDatas.length>0){ + if(curDatas && curDatas.length>=0){ if(!IsInArray(curDatas, city)){ cityDetaiVue.$data.citys.push(city); }