Files
youfang-app/fangija-zsyf/views/evaluate/evaluateReport.html
T
2018-03-30 10:34:10 +08:00

388 lines
9.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>评估报告</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" href="/favicon.ico">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="../../css/sm.css">
<link rel="stylesheet" href="../../css/main.css">
<link rel="stylesheet" href="../../css/theme-orange.css">
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0a7eM0lkIvpKGPiq1bMCfeH7"></script>
<style>
.priceRecovery + .list-block ul:after{height:0;}
.theme {
background-color: #F18D00;
}
</style>
</head>
<body>
<div class="page-group">
<div class="page page-current">
<header class="bar bar-nav">
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
<span class="icon icon-left"></span>
</button>
<h1 class="title">评估报告</h1>
</header>
<div class="content">
<div class="list-block media-list" id="house_info">
<ul>
<li>
<div class="item-content">
<div class="item-inner">
<div class="item-title-row">
<div class="item-title"><b>{{name}}</b><span class="span01">{{city_region}}</span></div>
</div>
<div class="item-title-row">
<div class="item-title"><small>{{house_type}}</small></div>
</div>
</div>
</div>
<a class="add add01 button theme" href="03_evaluation02_inputInfo.html">再估一套</a>
</li>
</ul>
</div>
<div class="card cardPrice cardPrice01" id="house_price">
<div class="card-header">
<span>评估总价</span>
<span>均价:<em>{{avg_price}}元/㎡</em></span>
</div>
<div class="card-content">
<div class="card-content-inner">{{total_price}}<span>万</span></div>
</div>
<div class="card-footer">
<span>
<em><strong>{{percentage_30}}</strong>%<i v-bind:class="arrow"></i></em>
<label>近30天涨跌幅</label>
</span>
<span>
<em>{{compare_word}} <strong>{{compare_money}}</strong> 元</em>
<label>相比{{city}}均价</label>
</span>
</div>
</div>
<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>
<label>{{evaluate_words}}</label>
</span>
<span>
<label style="color:#666;">{{evaluate_msg}}</label>
</span>
</div>
</div>
<div class="content-block priceRecovery" id="price_feedback">
<p><label>估的准吗?</label></p>
<p><small>您的反馈很重要,是我们努力的动力</small></p>
<div class="row">
<div class="col-50"><a class="button" v-on:click="feedback(1,$event)">高了</a></div>
<div class="col-50"><a class="button" v-on:click="feedback(0,$event)">低了</a></div>
</div>
</div>
<div class="list-block media-list">
<ul>
<li>
<div class="item-content">
<div class="item-inner" style="padding:0.75rem 0;">
<div class="item-title-row">
<div class="item-title" style="width:65%;overflow:visible;white-space:normal;font-size:0.75rem;">加入"我的房产",随时掌握房产价值变化</div>
<div class="item-after"><a class="add add01 button theme open-vertical-modal">立即添加</a></div>
</div>
</div>
</div>
</li>
</ul>
</div>
<a class="ad" href=""><img src="../../images/adImg.png"></a>
<div class="topic">
<div class="topicTitle" style="position:relative;">均价走势
<div class="content-block">
<div class="buttons-row theme">
<a href="#tabChartAvg1" class="tab-link button active">半年</a>
<a href="#tabChartAvg2" class="tab-link button">一年</a>
<a href="#tabChartAvg3" class="tab-link button">三年</a>
</div>
</div>
</div>
<div class="topicContent" style="padding:0;">
<div class="chart" id="chart"></div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
<script>
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
Zepto = $
$.config = {router: false}
</script>
<script type="text/javascript" src="../../js/vue.js"></script>
<script type="text/javascript" src="../../js/beacon_release.js"></script>
<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
<script src="../../config.js"></script>
<script type="text/javascript" src="../../js/common.js" ></script>
<script type="text/javascript" src="../../js/axios.min.js"></script>
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
<script>
var house_info = new Vue({
el:'#house_info',
data:{
name:"龙盛佳苑",
city_region:"上海-静安",
house_type:"2室1厅 60m 1/6层"
}
})
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"
}
})
var evaluate_msg = new Vue({
el:"#evaluate_msg",
data:{
evaluate_percent:12,
evaluate_words:"下跌概率",
arrow:"icon icon-arrow-green",
evaluate_msg:"本小区2月活跃度为20;价格近3个月处于下跌趋势,小区物业一般,交通不便利,所属板块为不活跃。"
}
})
var hid = 1111111111111;
var price_feedback = new Vue({
el:"#price_feedback",
data:{
},
methods:{
feedback:function(i,event){
if($(event.target).hasClass("theme")){
return;
}
return;
axios.post("/rest/evaluate/feedBack",{
hid:hid,
reason:i
}).then(function(response){
}).catch(function(error){console.log(error)})
}
}
})
</script>
<script>
/* button状态切换 */
$(".priceRecovery .col-50 .button").on("click", function () {
$(".priceRecovery .col-50 .button").removeClass("theme");
$(this).addClass("theme");
});
/* button状态切换 */
$(".content-block .button").on("click", function () {
$(this).parent().children().removeClass("active");
$(this).addClass("active");
});
/* 房产用途 */
$(document).on('click','.open-vertical-modal', function () {
$.modal({
title: '房产用途',
verticalButtons: true,
buttons: [
{
text: '自住',
onClick: function() {
window.location.href = "01_index01_myHouse01_index.html";
}
},
{
text: '出租',
onClick: function() {
window.location.href = "01_index01_myHouse01_index.html";
}
},
{
text: '空置',
onClick: function() {
window.location.href = "01_index01_myHouse01_index.html";
}
},
{
text: '取消'
}
]
})
});
</script>
<script src="../../js/highcharts-4.2.3.js"></script>
<script>
/* 均价走势 */
function yearAvgPrice(){
var categories = new Array();
var series = new Array();
var o = new Object();
o.name = '龙盛佳苑';
var odata = new Array();
o.data = odata
series.push(o);
var o2 = new Object();
o2.name = '上海';
var o2data = new Array();
var o3 = new Object();
o3.name = '静安';
var o3data = new Array();
odata.push(46000)
o2data.push(50400)
o3data.push(52800)
categories.push('2017-02')
odata.push(47000)
o2data.push(50600)
o3data.push(52900)
categories.push('2017-03')
odata.push(47400)
o2data.push(50300)
o3data.push(52700)
categories.push('2017-04')
odata.push(49000)
o2data.push(50200)
o3data.push(55200)
categories.push('2017-05')
odata.push(49400)
o2data.push(50800)
o3data.push(56100)
categories.push('2017-06')
odata.push(49600)
o2data.push(51900)
o3data.push(56900)
categories.push('2017-07')
odata.push(48400)
o2data.push(53100)
o3data.push(59400)
categories.push('2017-08')
odata.push(52200)
o2data.push(51200)
o3data.push(62400)
categories.push('2017-09')
odata.push(54900)
o2data.push(56200)
o3data.push(65600)
categories.push('2017-10')
odata.push(57400)
o2data.push(57000)
o3data.push(66800)
categories.push('2017-11')
odata.push(54800)
o2data.push(56700)
o3data.push(66200)
categories.push('2017-12')
odata.push(55000)
o2data.push(58300)
o3data.push(66000)
categories.push('2018-01')
o3.data = o3data
series.push(o3);
o2.data = o2data
series.push(o2);
charts = Highcharts.chart('chart', {
title: {
text: ''
},
subtitle: {
text: '',
x: -20
},
colors: ['#F88C9F', '#AAD672', '#AE94E9'],
xAxis: {
categories: categories,
boundaryGap: false,
tickInterval: 2,
tickLength: 6,
labels: {
style: {
fontSize: 12
}
}
},
yAxis: {
allowDecimals: false,
title: {
text: ''
},
plotLines: [{
value: 0,
width: 1,
color: 'red'
}]
},
tooltip: {
valueSuffix: '元/㎡'
},
legend: {
layout: 'horizontal',
align: 'center',
verticalAlign: 'bottom',
y: 0,
borderWidth: 0
},
plotOptions: {
line: {
connectNulls: true //该设置会连接空值点
},
series: {
events: {
legendItemClick: function(e) {
return false;
}
},
marker: {
radius: 3, //曲线点半径,默认是4
symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
}
}
},
series: series,
credits: {
enabled: false
}
})
}
yearAvgPrice();
</script>
</body>
</html>