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
@@ -23,7 +23,7 @@ Vue.component('city_potential_ranking',{
'<div class="col-5">{{index+1}}</div>'+
'<div class="col-20">{{cp.city}}</div>'+
'<div class="col-25">'+
'<em class="up">{{!cp.oneYearUpDownRange||cp.oneYearUpDownRange==""?"暂无":Math.abs(cp.oneYearUpDownRange)+"%"}}<i class="icon" v-bind:class="[cp.oneYearUpDownRange>0?&quot;icon-arrow-red&quot;:&quot;&quot;,cp.oneYearUpDownRange<0?&quot;icon-arrow-green&quot;:&quot;&quot;]"></i></em>'+
'<em class="up">{{!cp.oneYearUpDownRange||cp.oneYearUpDownRange==""?"暂无":Math.abs(cp.oneYearUpDownRange*100).toFixed(2)+"%"}}<i class="icon" v-bind:class="[cp.oneYearUpDownRange>0?&quot;icon-arrow-red&quot;:&quot;&quot;,cp.oneYearUpDownRange<0?&quot;icon-arrow-green&quot;:&quot;&quot;]"></i></em>'+
'</div>'+
'<div class="col-25">'+
'<span class="star">'+
@@ -67,14 +67,12 @@ 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)