YOUFANG 房产行情

This commit is contained in:
zongzhimin
2018-04-11 15:47:00 +08:00
parent b7eb17e750
commit 899f3724e4
5 changed files with 91 additions and 66 deletions
@@ -24,7 +24,7 @@ Vue.component('city_increase_ranking',{
'<div class="col-20">{{ci.city}}</div>'+
'<div class="col-25">{{!ci.cityTopMonthAvgPrice||ci.cityTopMonthAvgPrice==""?"暂无":""+ci.cityTopMonthAvgPrice+"元/㎡"}}</div>'+
'<div class="col-25">'+
'<em class="up">{{!ci.oneMonthUpDownRange||ci.oneMonthUpDownRange==""?"暂无":Math.abs(ci.oneMonthUpDownRange)+"%"}}<i class="icon" v-bind:class="[ci.oneMonthUpDownRange>0?&quot;icon-arrow-red&quot;:&quot;&quot;,ci.oneMonthUpDownRange<0?&quot;icon-arrow-green&quot;:&quot;&quot;]"></i></em>'+
'<em class="up">{{!ci.oneMonthUpDownRange||ci.oneMonthUpDownRange==""?"暂无":Math.abs(100*ci.oneMonthUpDownRange).toFixed(2)+"%"}}<i class="icon" v-bind:class="[ci.oneMonthUpDownRange>0?&quot;icon-arrow-red&quot;:&quot;&quot;,ci.oneMonthUpDownRange<0?&quot;icon-arrow-green&quot;:&quot;&quot;]"></i></em>'+
'</div>'+
'<div class="col-20">'+
'<i class="button theme collection collection01" v-on:click="follow(ci.city)">关注</i>'+
@@ -48,10 +48,16 @@ Vue.component('city_increase_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(){