Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into xh-youfangApp1.1
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -55,10 +55,10 @@
|
||||
<em><strong>{{oneYearUpDownPrice}}</strong>万<i id="oneYearUpDownPrice" class="icon icon-arrow-red"></i></em>
|
||||
<label>近1年升值额</label>
|
||||
</span>
|
||||
<span>
|
||||
<!--<span>
|
||||
<em><strong>待定</strong><i class="icon icon-arrow-red"></i></em>
|
||||
<label>资产排名</label>
|
||||
</span>
|
||||
</span>-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-block media-list">
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
var myFocusDatas = {myFocusList: []};
|
||||
Vue.component('my_focus',{
|
||||
template:
|
||||
'<div class="topic">'+
|
||||
'<div class="topicTitle">我的关注</div>'+
|
||||
'<div class="list-block media-list cityList" id="myFocus">'+
|
||||
'<ul>'+
|
||||
'<li>'+
|
||||
'<a class="item-content">'+
|
||||
'<div class="item-inner">'+
|
||||
'<div class="item-subtitle row">'+
|
||||
'<div class="col-5"> </div>'+
|
||||
'<div class="col-20">城市</div>'+
|
||||
'<div class="col-25">上月均价</div>'+
|
||||
'<div class="col-25">近30天涨跌幅</div>'+
|
||||
'<div class="col-20">全国涨幅排名</div>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</a>'+
|
||||
'</li>'+
|
||||
'<li v-for="(mf,index) in myFocusList">'+
|
||||
'<a class="item-content">'+
|
||||
'<div class="item-inner">'+
|
||||
'<div class="item-subtitle row">'+
|
||||
'<div class="col-5">{{index}}</div>'+
|
||||
'<div class="col-20">{{mf.city}}</div>'+
|
||||
'<div class="col-25">{{!mf.cityTopMonthAvgPrice||mf.cityTopMonthAvgPrice==""?"暂无":""+mf.avgPrice+"元/㎡"}}</div>'+
|
||||
'<div class="col-25">'+
|
||||
'<em class="up">{{!mf.oneMonthUpDownRange||mf.oneMonthUpDownRange==""?"暂无":mf.oneMonthUpDownRange+"%"}}<i class="icon icon-arrow-red"></i></em>'+
|
||||
'</div>'+
|
||||
'<div class="col-20">'+
|
||||
'<em>{{mf.rangeLevel}}</em>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</a>'+
|
||||
'</li>'+
|
||||
'</ul>'+
|
||||
'</div>'+
|
||||
'</div>'
|
||||
,
|
||||
data:function(){
|
||||
return myFocusDatas;
|
||||
},
|
||||
methods:{
|
||||
loadMyFocus:function(){
|
||||
axios.get("/rest/quotations/userCollectCityInfo", {
|
||||
params: {
|
||||
}
|
||||
}).then(function(response){
|
||||
myFocusDatas.myFocusList = response.data.data.results
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
})
|
||||
}
|
||||
},mounted:function(){
|
||||
this.loadMyFocus();
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
//我的关注
|
||||
var myFocus = new Vue({
|
||||
el:"#myFocus",
|
||||
data:{
|
||||
myfocusList:[{num:1,city:"test1",avgPrice:"123",percent:"",ranking:"1"},
|
||||
{num:2,city:"test2",avgPrice:"321",percent:"6.6",ranking:"2"}
|
||||
]
|
||||
}
|
||||
})
|
||||
|
||||
//涨幅榜
|
||||
var tabCityRanking1 = new Vue({
|
||||
el:"tabCityRanking1"
|
||||
})
|
||||
|
||||
//潜力绑
|
||||
var tabCityRanking2 = new Vue({
|
||||
el:"tabCityRanking2"
|
||||
})
|
||||
Reference in New Issue
Block a user