YOUDANG 评估报告

This commit is contained in:
zongzhimin
2018-04-02 10:27:15 +08:00
parent 5cd2a9b7fd
commit bca41af24c
2 changed files with 70 additions and 19 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
/**服务端地址**/
//var BASE_PATH = "http://192.168.10.128:8084";
//var BASE_PATH = "http://192.168.10.47:8086";
var BASE_PATH = "http://192.168.10.161:8086";
var BASE_PATH = "http://192.168.10.161:8084";
//var BASE_PATH = "http://192.168.10.53:8084";
var BASE_PATH = "http://192.168.10.170:8084";
//var BASE_PATH = "http://192.168.10.170:8084";
/**是否显示过启动页面**/
var lauchFlag = false;
+68 -17
View File
@@ -65,7 +65,7 @@
<label>近30天涨跌幅</label>
</span>
<span>
<em>{{compare_word}} <strong>{{compare_money}}</strong> 元</em>
<em>{{compare_word}} <strong>{{compare_money}}</strong> {{words}}</em>
<label>相比{{city}}均价</label>
</span>
</div>
@@ -77,7 +77,7 @@
<label>{{evaluate_words}}</label>
</span>
<span>
<label style="color:#666;">{{evaluate_msg}}</label>
<label style="color:#666;">{{msg}}</label>
</span>
</div>
</div>
@@ -144,33 +144,35 @@ $.config = {router: false}
var house_info = new Vue({
el:'#house_info',
data:{
name:"龙盛佳苑",
city_region:"上海-静安",
house_type:"2室1厅 60m 1/6层"
name:"",
city_region:"",
house_type:""
}
})
var house_price = new Vue({
el:"#house_price",
data:{
total_price:"391",
avg_price:"65241",
percentage_30:3.37,
arrow:"icon icon-arrow-green",
city:"上海",
compare_word:"低",
compare_money:"2888"
total_price:"",
avg_price:"",
percentage_30:"",
arrow:"",
city:"",
compare_word:"",
compare_money:"",
words:""
}
})
var evaluate_msg = new Vue({
el:"#evaluate_msg",
data:{
evaluate_percent:12,
evaluate_words:"下跌概率",
arrow:"icon icon-arrow-green",
evaluate_msg:"本小区2月活跃度为20;价格近3个月处于下跌趋势,小区物业一般,交通不便利,所属板块为不活跃。"
evaluate_percent:"",
evaluate_words:"",
arrow:"",
msg:""
}
})
var hid = 1111111111111;
var hid = '104631167348637696';
var price_feedback = new Vue({
el:"#price_feedback",
data:{
@@ -191,6 +193,55 @@ $.config = {router: false}
}
}
})
axios.get("/rest/evaluate/queryHouseInfo",{
params:{id : hid}
}).then(function(response){
if(response.data.status){
h = response.data.data
house_info.name = h.name
house_info.city_region = h.city+"-"+h.region
house_info.house_type = (h.roomCount==0?"":h.roomCount+"室")+(h.hallCount==0?"":h.hallCount+"厅 ")+(h.area==0?"":h.area+"m ")+((h.floor==0||h.height==0)?"":h.floor+"/"+h.height+"层")
house_price.total_price = h.totalPrice==0?"暂无":(h.totalPrice/10000).toFixed(0)
house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice
house_price.percentage_30=h.oneMonthUpDownRange==0?"暂无":h.oneMonthUpDownRange
if(h.oneMonthUpDownRange<0){
house_price.arrow="icon icon-arrow-green"
house_price.percentage_30=-h.oneMonthUpDownRange
}else if(h.oneMonthUpDownRange>0){
house_price.arrow="icon icon-arrow-red"
house_price.percentage_30=h.oneMonthUpDownRange
}else{
house_price.percentage_30="暂无"
}
house_price.city=h.city
if(h.compareMoney<0){
house_price.compare_word="低"
house_price.words="元"
house_price.compare_money=-h.compareMoney
}else if(h.compareMoney>0){
house_price.compare_word="高"
house_price.words="元"
house_price.compare_money=h.compareMoney
}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
}
}).catch(function(error){
console.log(error)
})
</script>
<script>