Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into xh-youfangApp1.1
This commit is contained in:
@@ -183,7 +183,7 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
|
||||
htmlContent = htmlContent +"<div class='item-inner'><div class='item-title-row'>";
|
||||
htmlContent = htmlContent +"<div class='item-title'>"+result.name+"<span class='span01'>"+result.city+"-"+result.region+"</span></div>";
|
||||
htmlContent = htmlContent +"</div><div class='item-title-row'>";
|
||||
htmlContent = htmlContent +"<div class='item-title'><small>"+result.roomCount+"室"+result.hallCount+"厅 "+result.area+"m "+result.floor+"/"+result.height+"层</small></div>";
|
||||
htmlContent = htmlContent +"<div class='item-title'><small>"+result.roomCount+"室"+result.hallCount+"厅 "+result.area+"㎡ "+result.floor+"/"+result.height+"层</small></div>";
|
||||
htmlContent = htmlContent +"</div><div class='item-subtitle'>";
|
||||
//对应城市地区小区30天涨跌幅
|
||||
//动态构建key
|
||||
|
||||
@@ -54,10 +54,10 @@
|
||||
<div class="card cardPrice cardPrice01" id="house_price">
|
||||
<div class="card-header">
|
||||
<span>评估总价</span>
|
||||
<span>均价:<em>{{avg_price}}元/㎡</em></span>
|
||||
<span>均价:<em>{{avg_price}}</em></span>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">{{total_price}}<span>万</span></div>
|
||||
<div class="card-content-inner">{{total_price}}<span>{{w}}</span></div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<span>
|
||||
@@ -166,7 +166,8 @@ $.config = {router: false}
|
||||
compare_word:"",
|
||||
compare_money:"",
|
||||
words:"",
|
||||
p:""
|
||||
p:"",
|
||||
w:""
|
||||
}
|
||||
})
|
||||
// var evaluate_msg = new Vue({
|
||||
@@ -221,9 +222,14 @@ $.config = {router: false}
|
||||
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_info.house_type = (h.roomCount==0?"":h.roomCount+"室")+(h.hallCount==0?"":h.hallCount+"厅 ")+(h.area==0?"":h.area+"㎡ ")+((h.floor==0||h.height==0)?"":h.floor+"/"+h.height+"层")
|
||||
if(h.totalPrice==0){
|
||||
house_price.total_price = "暂无";
|
||||
}else{
|
||||
house_price.total_price = (h.totalPrice/10000).toFixed(0)
|
||||
house_price.w = "万"
|
||||
}
|
||||
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"
|
||||
@@ -277,6 +283,39 @@ $.config = {router: false}
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
})
|
||||
|
||||
/* 房产用途 */
|
||||
$(document).on('click','.open-vertical-modal', function () {
|
||||
var houseStatus = 0;
|
||||
$.modal({
|
||||
title: '房产用途',
|
||||
verticalButtons: true,
|
||||
buttons: [
|
||||
{
|
||||
text: '自住',
|
||||
onClick: function() {
|
||||
|
||||
addManagement(hid, houseStatus, "自住");
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '出租',
|
||||
onClick: function() {
|
||||
addManagement(hid, houseStatus, "自住");
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '空置',
|
||||
onClick: function() {
|
||||
addManagement(hid, houseStatus, "自住");
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '取消'
|
||||
}
|
||||
]
|
||||
})
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -292,7 +331,6 @@ function addManagement(id, houseStatus, liveStatus){
|
||||
var status = response.data.status;
|
||||
if(status){
|
||||
$.toast(response.data.data);
|
||||
window.location.reload();
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseList.html').reload();
|
||||
@@ -319,37 +357,7 @@ $(".content-block .button").on("click", function () {
|
||||
$(this).addClass("active");
|
||||
});
|
||||
|
||||
/* 房产用途 */
|
||||
$(document).on('click','.open-vertical-modal', function () {
|
||||
var houseStatus = 0;
|
||||
$.modal({
|
||||
title: '房产用途',
|
||||
verticalButtons: true,
|
||||
buttons: [
|
||||
{
|
||||
text: '自住',
|
||||
onClick: function() {
|
||||
addManagement(hid, houseStatus, "自住");
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '出租',
|
||||
onClick: function() {
|
||||
addManagement(hid, houseStatus, "自住");
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '空置',
|
||||
onClick: function() {
|
||||
addManagement(hid, houseStatus, "自住");
|
||||
}
|
||||
},
|
||||
{
|
||||
text: '取消'
|
||||
}
|
||||
]
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@@ -0,0 +1,184 @@
|
||||
<!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="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/city.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
<style>
|
||||
.cardInfo02 .item-title{white-space:normal;text-align:justify;display:block;}
|
||||
.cardInfo02 .item-subtitle{margin-top:0.2rem;}
|
||||
.cardCity01 .card-footer span:nth-child(2){text-align:center;}
|
||||
.cardNearbyBox01 .cardNearby .card-content-inner{padding-bottom:0.25rem;}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
|
||||
<header class="bar bar-nav barBorder ">
|
||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
</header>
|
||||
|
||||
<div class="content" id="cityInfo">
|
||||
<div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId">
|
||||
<div class="card-header">
|
||||
<label>{{myCityMap.city}}</label>
|
||||
<a v-if="collecd" class="button collection collection02 " @click="collectCity(myCityMap.city)">取消</a>
|
||||
<a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city)">关注</a>
|
||||
|
||||
</div>
|
||||
<div class="card-header">
|
||||
<span>当前参考均价</span>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">{{myCityMap.cityTopMonthAvgPrice}}<span>元/㎡</span></div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<span v-if="myCityMap.oneMonthUpDownRange >= 0">
|
||||
<em><strong>{{myCityMap.oneMonthUpDownRange}}</strong>%<i class="icon icon-arrow-red"></i></em>
|
||||
<label>近30天涨跌幅</label>
|
||||
</span>
|
||||
<span v-else>
|
||||
<em><strong>{{myCityMap.oneMonthUpDownRange}}</strong>%<i class="icon icon-arrow-green"></i></em>
|
||||
<label>近30天涨跌幅</label>
|
||||
</span>
|
||||
<span>
|
||||
<em><strong>{{myCityMap.rangeLevel}}</strong></em>
|
||||
<label>城市涨跌排名</label>
|
||||
</span>
|
||||
<span v-if="myCityMap.index < 50">
|
||||
<em><strong>{{myCityMap.downChance}}</strong>%<i class="icon icon-arrow-green"></i></em>
|
||||
<label>下跌概率</label>
|
||||
</span>
|
||||
<span v-else>
|
||||
<em><strong>{{myCityMap.downChance}}</strong>%<i class="icon icon-arrow-red"></i></em>
|
||||
<label>上涨概率</label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicTitle topicTitle02">{{myCityMap.time}}楼市行情<span><a @click="showRegionInfo(myCityMap.city)">区县涨跌详情<i class="icon icon-right"></i></a></span></div>
|
||||
<div class="topicContent" style="padding-top:0;">
|
||||
<div class="chartBox row">
|
||||
<span class="col-50">
|
||||
<div class="chart" id="up_chart"></div>
|
||||
</span>
|
||||
<span class="col-50">
|
||||
<div class="chart" id="down_chart"></div>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topic" id="trendChartDiv">
|
||||
<div class="topicTitle" style="position:relative;">城市均价及挂牌走势
|
||||
<div class="content-block">
|
||||
<div class="buttons-row theme" id="trendDiv">
|
||||
<a class="tab-link button active" v="2" v-bind:city="myCityMap.city" @click="clickTrend(myCityMap.city, 2)">半年</a>
|
||||
<a class="tab-link button" v="3" v-bind:city="myCityMap.city" @click="clickTrend(myCityMap.city, 3)">一年</a>
|
||||
<a class="tab-link button" v="5" v-bind:city="myCityMap.city" @click="clickTrend(myCityMap.city, 5)">三年</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topicContent" style="padding:0;">
|
||||
<div class="chart" id="price_chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicTitle">热门小区</div>
|
||||
<div class="topicContent" style="padding:0;">
|
||||
<div class="cardNearbyBox cardNearbyBox01">
|
||||
<div class="cardNearbyWin" style="width: 38rem;">
|
||||
<div class="card cardNearby" v-for="nearDist in nears" @click="showDistrictDetail(nearDist.city, nearDist.region, nearDist.name)">
|
||||
<div class="card-header">{{nearDist.sname}}</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">{{nearDist.avgPrice}}元/㎡</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</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/light7.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../config.js"></script>
|
||||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
<script type="text/javascript" src="../../js/echarts.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/highcharts-4.2.3.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/quotations/cityDetail.js" ></script>
|
||||
|
||||
<script>
|
||||
var date = new Date();
|
||||
var year = date.getFullYear()+'年';
|
||||
var month = date.getMonth()+1+'月';
|
||||
var city = "天津"
|
||||
var cityInfoVue = new Vue({
|
||||
el: '#cityInfo',
|
||||
data: {
|
||||
city:"",
|
||||
month:month,
|
||||
collecd:false,
|
||||
nears:[],
|
||||
myCityMap : []
|
||||
}
|
||||
});
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
var city = self.city
|
||||
cityInfoVue.$data.city = city;
|
||||
loadMyCollectCity();
|
||||
loadCityPriceInfo(city)
|
||||
loadUpOrDown(city);
|
||||
loadHotDistrict(city)
|
||||
loadCityPricesAndCounts(city)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -19,6 +19,9 @@
|
||||
.cardInfo02 .item-subtitle{margin-top:0.2rem;}
|
||||
.cardCity01 .card-footer span:nth-child(2){text-align:center;}
|
||||
.cardNearbyBox01 .cardNearby .card-content-inner{padding-bottom:0.25rem;}
|
||||
.tabs .topic{margin-bottom:0;}
|
||||
.buttons-tab{overflow-x:auto;border-bottom:solid 1px #e7e7e7;}
|
||||
.buttons-tab:after{height:0;}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
@@ -148,15 +151,15 @@
|
||||
<div class="topic">
|
||||
<div class="topicTitle">房产热点城市</div>
|
||||
<div class="topicContent cityImgBox row">
|
||||
<div class="col-33">
|
||||
<img src="../../images/cityImg01.png">
|
||||
<div class="col-33" >
|
||||
<img src="../../images/cityImg01.png" onclick="hotCity('北京')">
|
||||
<p>北京</p>
|
||||
</div>
|
||||
<div class="col-33">
|
||||
<div class="col-33" onclick="hotCity('上海')">
|
||||
<img src="../../images/cityImg02.png">
|
||||
<p>上海</p>
|
||||
</div>
|
||||
<div class="col-33">
|
||||
<div class="col-33" onclick="hotCity('深圳')">
|
||||
<img src="../../images/cityImg03.png">
|
||||
<p>深圳</p>
|
||||
</div>
|
||||
@@ -1487,6 +1490,10 @@ function addFocus(city){
|
||||
|
||||
}
|
||||
|
||||
function hotCity(city){
|
||||
clicked('../house/cityDetail.html',true,false,{},{city:city});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@@ -323,9 +323,14 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq
|
||||
tempTotalPricePercent = (parseFloat(tempTotalPrice)*0.7/10000).toFixed(2);
|
||||
tempTotalPrice = (parseFloat(tempTotalPrice)/10000).toFixed(2);
|
||||
}
|
||||
html += '<li onclick="gotoHouseDetail(\''+result.id+'\')"><a href="#" class="item-content">';
|
||||
html += '<li><a href="#" onclick="gotoHouseDetail(\''+result.id+'\')" class="item-content">';
|
||||
html += "<div class='item-inner'><div class='item-title-row'>";
|
||||
html += "<div class='item-title'>"+result.name+" <em>"+tempTotalPrice+"万</em><span class='tag'><small>"+result.liveStatus+"</small></span></div>";
|
||||
html += "<div class='item-title'>"+result.name+" <em>"+tempTotalPrice+"万</em><span class='tag'>";
|
||||
if(result.liveStatus!=null && result.liveStatus.length>0){
|
||||
html += "<small>"+result.liveStatus+"</small></span></div>";
|
||||
}else{
|
||||
html += "<small>其它</small></span></div>";
|
||||
}
|
||||
html += "</div><div class='item-subtitle'>";
|
||||
|
||||
//对应城市地区小区30天涨跌幅
|
||||
@@ -339,9 +344,8 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq
|
||||
html += "<div>近30天涨跌幅: <em class='down'>"+Math.abs(xqOneMonthUpDownRangeValue)+"%<i class='icon icon-arrow-green'></i></em></div>";
|
||||
}
|
||||
}else{
|
||||
html += "<div>近30天涨跌幅: <em class='down'> %<i class='icon icon-arrow-green'></i></em></div>";
|
||||
html += "<div>近30天涨跌幅: <em class='down'>暂无<i class='icon'></i></em></div>";
|
||||
}
|
||||
|
||||
//下跌概率
|
||||
var xqPotentialIndexValue = xqPotentialIndexMap[xqOneMonthUpDownRangeKey];
|
||||
if(!isNaN(xqPotentialIndexValue)){
|
||||
@@ -352,7 +356,7 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq
|
||||
html += "<div>下跌概率: <em class='down'>"+(parseInt(100)-parseInt(xqPotentialIndexValue))+"%<i class='icon icon-arrow-green'></i></em></div>";
|
||||
}
|
||||
}else{
|
||||
html += "<div>下跌概率: <em class='down'> %<i class='icon icon-arrow-green'></i></em></div>";
|
||||
html += "<div>下跌概率: <em class='down'>暂无<i class='icon'></i></em></div>";
|
||||
}
|
||||
|
||||
html += "<div>抵押可贷额度: <em style='color:#EB5F34;'>"+tempTotalPricePercent+"万</em></div></div></div></a>";
|
||||
@@ -368,7 +372,7 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq
|
||||
}else if(result.level!=null && result.level == 5){
|
||||
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>山洞级</a>";
|
||||
}else{
|
||||
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>其他</a>";
|
||||
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>其它</a>";
|
||||
}
|
||||
html += '<a class="button theme add add01 add01a" href="#" onclick="gotoLoanApply(\''+result.id+'\', \''+result.city+'\')">立即申请</a></li>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user