From 2219d23dacb105ac264fb43a2204558022a92c94 Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Thu, 12 Apr 2018 09:41:10 +0800 Subject: [PATCH 1/3] YOUFANG1.1 --- .../component/cityIncreaseRankingComponent.js | 12 +- .../cityPotentialRankingComponent.js | 15 +- .../views/component/myFocusComponent.js | 15 +- fangija-zsyf/views/house/houseDetail.html | 193 +++++++++--------- 4 files changed, 124 insertions(+), 111 deletions(-) diff --git a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js index 8eb91d9..be7f94d 100644 --- a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js +++ b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js @@ -27,8 +27,8 @@ Vue.component('city_increase_ranking',{ '{{!ci.oneMonthUpDownRange||ci.oneMonthUpDownRange==""?"暂无":Math.abs(100*ci.oneMonthUpDownRange).toFixed(2)+"%"}}'+ ''+ '
'+ - '关注'+ - '取消'+ + '关注'+ + '取消'+ '
'+ ''+ ''+ @@ -47,14 +47,18 @@ Vue.component('city_increase_ranking',{ console.log(error) }) }, - follow:function(city){ + follow:function(city,event){ axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ + $(event.target).parent().children().removeClass("dn"); + $(event.target).addClass("dn"); }).catch(function(error){ console.log(error) }) }, - abolish:function(city){ + abolish:function(city,event){ axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ + $(event.target).parent().children().removeClass("dn"); + $(event.target).addClass("dn"); }).catch(function(error){ console.log(error) }) diff --git a/fangija-zsyf/views/component/cityPotentialRankingComponent.js b/fangija-zsyf/views/component/cityPotentialRankingComponent.js index 377b2c3..0ffe245 100644 --- a/fangija-zsyf/views/component/cityPotentialRankingComponent.js +++ b/fangija-zsyf/views/component/cityPotentialRankingComponent.js @@ -33,8 +33,8 @@ Vue.component('city_potential_ranking',{ ''+ ''+ '
'+ - '关注'+ - '取消'+ + '关注'+ + '取消'+ '
'+ ''+ ''+ @@ -48,7 +48,6 @@ Vue.component('city_potential_ranking',{ methods:{ loadCityPotentialRanking:function(){ axios.get("/rest/quotations/potentialUpTopInfos").then(function(response){ -// alert(1) list = response.data.data; $(list).each(function(i){ var index = this.index; @@ -66,14 +65,20 @@ Vue.component('city_potential_ranking',{ console.log(error) }) }, - follow:function(city){ + follow:function(city,event){ axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ + $(event.target).parent().children().removeClass("dn"); + $(event.target).addClass("dn"); + loadCityPotentialRanking() }).catch(function(error){ console.log(error) }) }, - abolish:function(city){ + abolish:function(city,event){ axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ + $(event.target).parent().children().removeClass("dn"); + $(event.target).addClass("dn"); + loadCityPotentialRanking() }).catch(function(error){ console.log(error) }) diff --git a/fangija-zsyf/views/component/myFocusComponent.js b/fangija-zsyf/views/component/myFocusComponent.js index cbf3222..1ecb73f 100644 --- a/fangija-zsyf/views/component/myFocusComponent.js +++ b/fangija-zsyf/views/component/myFocusComponent.js @@ -26,7 +26,7 @@ Vue.component('my_focus',{ '
{{mf.city}}
'+ '
{{!mf.cityTopMonthAvgPrice||mf.cityTopMonthAvgPrice==""?"暂无":""+mf.cityTopMonthAvgPrice+"元/㎡"}}
'+ '
'+ - '{{!mf.oneMonthUpDownRange||mf.oneMonthUpDownRange==""?"暂无":Math.abs(mf.oneMonthUpDownRange*100).toFixed(2)+"%"}}'+ + '{{!mf.oneMonthUpDownRange||mf.oneMonthUpDownRange==""?"暂无":Math.abs(mf.oneMonthUpDownRange*100).toFixed(2)+"%"}}'+ '
'+ '
'+ '{{mf.rangeLevel}}'+ @@ -44,22 +44,21 @@ Vue.component('my_focus',{ }, methods:{ loadMyFocus:function(){ - if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ - $("#myFocusFirstPage").hide() - $("#myFocus").hide(); - }else{ +// if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ +// $("#myFocusFirstPage").hide() +// $("#myFocus").hide(); +// }else{ axios.get("/rest/quotations/userCollectCityInfo").then(function(response){ if(response.data.data.length==0){ - alert("aa"); $("#myFocusFirstPage").hide(); $("#myFocus").hide(); }else{ myFocusDatas.myFocusList = response.data.data; } }).catch(function(error){ - console.log(error) + console.log(error) }) - } +// } } },mounted:function(){ this.loadMyFocus(); diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index 7b52252..a55ccdb 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -483,22 +483,89 @@ $.config = {router: false} From 9f5c75d53b10b46d338333afc3928bc009fd8d21 Mon Sep 17 00:00:00 2001 From: "xuhe@fangjia.com" Date: Thu, 12 Apr 2018 10:01:29 +0800 Subject: [PATCH 2/3] aa --- .../views/evaluate/evaluateReport.html | 6 +++++- fangija-zsyf/views/house/add.html | 20 ++++++------------- fangija-zsyf/views/house/houseManageList.html | 4 +--- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/fangija-zsyf/views/evaluate/evaluateReport.html b/fangija-zsyf/views/evaluate/evaluateReport.html index 130164f..fcaf420 100644 --- a/fangija-zsyf/views/evaluate/evaluateReport.html +++ b/fangija-zsyf/views/evaluate/evaluateReport.html @@ -47,7 +47,7 @@
- 再估一套 + 再估一套 @@ -475,6 +475,10 @@ function showChat(categories, series) { } }) } +function openaddWindow(){ + clicked('/views/house/add.html',true,false,{},{type:1},function(){ + }) +} diff --git a/fangija-zsyf/views/house/add.html b/fangija-zsyf/views/house/add.html index 5d2191f..4817c7f 100644 --- a/fangija-zsyf/views/house/add.html +++ b/fangija-zsyf/views/house/add.html @@ -1248,8 +1248,8 @@ $.config = {router: false}