From f5c287ed0d73b28e68c403d98621fdf6815f4ce9 Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Wed, 11 Apr 2018 14:02:38 +0800 Subject: [PATCH] =?UTF-8?q?YOUFANG1.0.3=20=E6=88=BF=E4=BA=A7=E8=A1=8C?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/component/cityChooseComponent.js | 881 +++++++++++++++++ .../component/cityIncreaseRankingComponent.js | 2 +- .../cityPotentialRankingComponent.js | 8 + fangija-zsyf/views/house/houseDetail.html | 926 +----------------- 4 files changed, 938 insertions(+), 879 deletions(-) create mode 100644 fangija-zsyf/views/component/cityChooseComponent.js diff --git a/fangija-zsyf/views/component/cityChooseComponent.js b/fangija-zsyf/views/component/cityChooseComponent.js new file mode 100644 index 0000000..adf46a0 --- /dev/null +++ b/fangija-zsyf/views/component/cityChooseComponent.js @@ -0,0 +1,881 @@ +////markFocus:已关注城市是否加标志(0:否,1:是) +////clickFocus:点击城市是否添加关注(0:否,1:是) +//var cityChooseOption = {markFocus:0,clickFocus:0} + +Vue.component('city_choose',{ + template: +' ' +}) + diff --git a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js index 6e52331..834e39a 100644 --- a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js +++ b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js @@ -1,4 +1,4 @@ -var cityIncreaseRankingData = {cityIncreaseRankingList:[]}; +var cityIncreaseRankingData = {cityIncreaseRankingList:[],test:"ttt"}; Vue.component('city_increase_ranking',{ template:'
'+ diff --git a/fangija-zsyf/views/component/cityPotentialRankingComponent.js b/fangija-zsyf/views/component/cityPotentialRankingComponent.js index 62a9fe5..bb11cdd 100644 --- a/fangija-zsyf/views/component/cityPotentialRankingComponent.js +++ b/fangija-zsyf/views/component/cityPotentialRankingComponent.js @@ -68,9 +68,17 @@ Vue.component('city_potential_ranking',{ }, follow:function(city){ alert(city) + axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ + }).catch(function(error){ + console.log(error) + }) }, abolish:function(city){ alert(city) + axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ + }).catch(function(error){ + console.log(error) + }) } }, mounted:function(){ diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index bec6cae..fa020b9 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -577,881 +577,12 @@
- - + + +
+ +
+