YOUFANG1.1

This commit is contained in:
zongzhimin
2018-04-10 13:36:20 +08:00
parent 2c339824de
commit 51a6695277
16 changed files with 3283 additions and 148 deletions
+23 -23
View File
@@ -70,7 +70,7 @@
</span>
</div>
</div>
<div class="card cardPrice cardPrice02" id="evaluate_msg">
<!--<div class="card cardPrice cardPrice02" id="evaluate_msg">
<div class="card-footer">
<span>
<em><strong>{{evaluate_percent}}</strong>%<i v-bind:class="arrow"></i></em>
@@ -80,7 +80,7 @@
<label style="color:#666;">{{msg}}</label>
</span>
</div>
</div>
</div>-->
<div class="content-block priceRecovery" id="price_feedback">
<p><label>估的准吗?</label></p>
<p><small>您的反馈很重要,是我们努力的动力</small></p>
@@ -164,15 +164,15 @@ $.config = {router: false}
words:""
}
})
var evaluate_msg = new Vue({
el:"#evaluate_msg",
data:{
evaluate_percent:"",
evaluate_words:"",
arrow:"",
msg:""
}
})
// var evaluate_msg = new Vue({
// el:"#evaluate_msg",
// data:{
// evaluate_percent:"",
// evaluate_words:"",
// arrow:"",
// msg:""
// }
// })
var price_feedback = new Vue({
@@ -228,18 +228,18 @@ $.config = {router: false}
}else{
house_price.compare_money="相等"
}
if(h.evaluatePercent<0){
evaluate_msg.evaluate_words="下跌概率"
evaluate_msg.arrow="icon icon-arrow-green"
evaluate_msg.evaluate_percent=-h.evaluatePercent
}else if(h.evaluatePercent>0){
evaluate_msg.evaluate_words="上涨概率"
evaluate_msg.arrow="icon icon-arrow-red"
evaluate_msg.evaluate_percent=h.evaluatePercent
}else{
evaluate_msg.evaluate_words="暂无"
}
evaluate_msg.msg=h.evaluateMsg
// if(h.evaluatePercent<0){
// evaluate_msg.evaluate_words="下跌概率"
// evaluate_msg.arrow="icon icon-arrow-green"
// evaluate_msg.evaluate_percent=-h.evaluatePercent
// }else if(h.evaluatePercent>0){
// evaluate_msg.evaluate_words="上涨概率"
// evaluate_msg.arrow="icon icon-arrow-red"
// evaluate_msg.evaluate_percent=h.evaluatePercent
// }else{
// evaluate_msg.evaluate_words="暂无"
// }
// evaluate_msg.msg=h.evaluateMsg
$("#img").attr("src",BASE_PATH+"/img/"+h.imgId);
loadingChart(h.city,h.region,h.name,2)
//按照时间范围加载数据
File diff suppressed because one or more lines are too long
+80
View File
@@ -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">&nbsp;</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"
})