Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into xh-youfangApp1.1
This commit is contained in:
@@ -65,7 +65,7 @@ Vue.component('near-dist-component', {
|
||||
});
|
||||
},
|
||||
showDistrict:function(index){
|
||||
clicked('../district/detail.html',true,false,{},{city:distDatas.nearDists[index].city,region:distDatas.nearDists[index].region,name:distDatas.nearDists[index].name});
|
||||
clicked('../district/detail.html',true,false,{},{city:distDatas.nearDists[index].city,region:distDatas.nearDists[index].district,name:distDatas.nearDists[index].name});
|
||||
}
|
||||
},
|
||||
mounted:function(){
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="topic">
|
||||
<div class="topic" id="mapDiv">
|
||||
<div class="topicTitle">位置及周边</div>
|
||||
<div class="topicContent" style="padding:0;">
|
||||
<div class="content-block content-block01 content-block01a" id="aroundLink">
|
||||
@@ -252,7 +252,60 @@ $.config = {router: false}
|
||||
var address;
|
||||
var tags;
|
||||
|
||||
var baseInfo = new Vue({
|
||||
var baseInfo;
|
||||
|
||||
</script>
|
||||
<script type="text/javascript" src="../../js/district/districtDetail.js"></script>
|
||||
<script type='text/javascript' src='../../js/district/district-map.js' charset='utf-8'></script>
|
||||
<script type='text/javascript' src='../component/baseInfoComponent.js' charset='utf-8'></script>
|
||||
<script type='text/javascript' src='../component/nearDist.js' charset='utf-8'></script>
|
||||
<script>
|
||||
//loadDistrictInfo();
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
city = self.city
|
||||
region = self.region
|
||||
name = self.name;
|
||||
// 创建根实例
|
||||
baseInfo = new Vue({
|
||||
el: '#districtBaseInfo',
|
||||
data: {
|
||||
name : "",
|
||||
city:"",
|
||||
region: "",
|
||||
address: "",
|
||||
avgPrice:"",
|
||||
oneMonthUpDownRange:"",
|
||||
priceRate:"",
|
||||
cityPrice:"",
|
||||
finishBuildingDate:"",
|
||||
householdCount:"",
|
||||
cubagePercent:"",
|
||||
carSiteCount:"",
|
||||
virescencePercent:"",
|
||||
estateCharge:"",
|
||||
moreArea:"",
|
||||
developer:"",
|
||||
estateCompany:"",
|
||||
tags:[],
|
||||
nearDists:[],
|
||||
regionIndex:"",
|
||||
schoolIndex:""
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
/* 小区均价分析 */
|
||||
loadKLineData(city, region, name);
|
||||
/* 小区租金走势 */
|
||||
loadRentTrends(city, region, name);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*baseInfo = new Vue({
|
||||
el: '#districtBaseInfo',
|
||||
data: {
|
||||
name : "",
|
||||
@@ -278,34 +331,7 @@ $.config = {router: false}
|
||||
schoolIndex:""
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
var myChart01 = echarts.init(document.getElementById('chart01'));
|
||||
</script>
|
||||
<script type="text/javascript" src="../../js/district/districtDetail.js"></script>
|
||||
<script type='text/javascript' src='../../js/district/district-map.js' charset='utf-8'></script>
|
||||
<script type='text/javascript' src='../component/baseInfoComponent.js' charset='utf-8'></script>
|
||||
<script type='text/javascript' src='../component/nearDist.js' charset='utf-8'></script>
|
||||
<script>
|
||||
//loadDistrictInfo();
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
city = self.city
|
||||
region = self.region
|
||||
name = self.name;
|
||||
// loadDistrictInfo();
|
||||
// 创建根实例
|
||||
new Vue({
|
||||
el: '#baseInfo'
|
||||
})
|
||||
}
|
||||
|
||||
//new Vue({
|
||||
// el: '#baseInfo'
|
||||
// })
|
||||
// })
|
||||
})*/
|
||||
|
||||
function openMapWindow(){
|
||||
clicked('arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng});
|
||||
@@ -335,10 +361,7 @@ function loadMap(){
|
||||
window.clearInterval(t1);
|
||||
}
|
||||
}
|
||||
/* 小区均价分析 */
|
||||
loadKLineData(city, region, name);
|
||||
/* 小区租金走势 */
|
||||
loadRentTrends(city, region, name);
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<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 class="item-title"><label><b>{{name}}</b></label><span class="span01">{{city_region}}</span></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><small>{{house_type}}</small></div>
|
||||
@@ -104,7 +104,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<a class="ad"><img src="../../images/adImg.png" id="img"></a>
|
||||
<a class="ad"><img id="img"></a>
|
||||
<div class="topic">
|
||||
<div class="topicTitle" style="position:relative;">均价走势
|
||||
<div class="content-block">
|
||||
@@ -266,10 +266,12 @@ $.config = {router: false}
|
||||
// evaluate_msg.evaluate_words="暂无"
|
||||
// }
|
||||
// evaluate_msg.msg=h.evaluateMsg
|
||||
$("#img").attr("src",BASE_PATH+"/img/"+h.imgId);
|
||||
$("#img").click(function(){
|
||||
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: hid, city: h.city, mobile: ""},function(){})
|
||||
})
|
||||
if(typeof(h.imgId)!="undefined"&&h.imgId!=null&&$.trim(h.imgId)!=""){
|
||||
$("#img").attr("src",BASE_PATH+"/img/"+h.imgId);
|
||||
$("#img").click(function(){
|
||||
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: hid, city: h.city, mobile: ""},function(){})
|
||||
})
|
||||
}
|
||||
loadingChart(h.city,h.region,h.name,2)
|
||||
//按照时间范围加载数据
|
||||
$(".avgPriceTrend a").click(function(){
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
<div class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><b>{{name}}</b><span class="span01">{{cityRegion}}</span></div>
|
||||
<div class="item-title"><label><b>{{name}}</b></label><span class="span01">{{cityRegion}}</span></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><small><label v-if="roomCount > 0">{{roomCount}}室</label><label v-if="hallCount > 0">{{hallCount}}厅</label> {{area}}m <label v-if="floor > 0 && height">{{floor}}/{{height}}层</label></small></div>
|
||||
|
||||
@@ -180,7 +180,8 @@
|
||||
<span>当前参考均价</span>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">{{myCityMap.cityTopMonthAvgPrice}}<span>元/㎡</span></div>
|
||||
<div class="card-content-inner" v-if="myCityMap.cityTopMonthAvgPrice > 0">{{myCityMap.cityTopMonthAvgPrice}}<span>元/㎡</span></div>
|
||||
<div class="card-content-inner" v-else>暂无</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<span v-if="myCityMap.oneMonthUpDownRange >= 0">
|
||||
|
||||
@@ -212,7 +212,7 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
|
||||
}
|
||||
htmlContent = htmlContent +'<li><a onclick="openReportWindow(\''+result.id+'\')" class="item-content">';
|
||||
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 class='item-title'><label>"+result.name+"</label><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><div class='item-subtitle'>";
|
||||
@@ -240,13 +240,13 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
|
||||
var cityAvgPriceValue = cityAvgPriceMap[cityAvgPriceKey];
|
||||
if(!isNaN(cityAvgPriceValue)){
|
||||
if(parseInt(cityAvgPriceValue)>=parseInt(result.price)){
|
||||
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='up'>高"+(parseInt(cityAvgPriceValue)-parseInt(result.price))+"元</em></div>";
|
||||
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='down'>低"+(parseInt(cityAvgPriceValue)-parseInt(result.price))+"元</em></div>";
|
||||
}else{
|
||||
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='down'>低"+(parseInt(result.price)-parseInt(cityAvgPriceValue))+"元</em></div>";
|
||||
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='up'>高"+(parseInt(result.price)-parseInt(cityAvgPriceValue))+"元</em></div>";
|
||||
}
|
||||
}else{
|
||||
//为非数字清空放空格
|
||||
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='down'>"+' '+"</em></div>";
|
||||
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='down'>暂无</em></div>";
|
||||
}
|
||||
htmlContent = htmlContent + "<div>均价: <em class='em02'>"+result.price+"元/㎡</em></div>";
|
||||
htmlContent = htmlContent + "<div class='price'><em><strong>"+tempTotalPrice+"</strong>万</em></div>";
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
|
||||
.mark-icon-box {width:24px;height:30px;position:absolute;z-index:98;}
|
||||
.mark-icon-box .mark-icon {width: 20px;height: 30px;display: block;cursor: pointer;font-size: 14px; color: #fff;font-weight: bold;text-align: center;line-height: 24px;background: url(../../images/dw.png) no-repeat;}
|
||||
|
||||
.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:11px;left:0;z-index:100;}
|
||||
.loadingBg .infinite-scroll-preloader{margin-top:30%;}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
@@ -35,6 +38,13 @@
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current" id="districtBaseInfo">
|
||||
|
||||
<div class="loadingBg">
|
||||
<div class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
@@ -94,7 +104,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="topic">
|
||||
<div class="topic" id="mapDiv">
|
||||
<div class="topicTitle">位置及周边</div>
|
||||
<div class="topicContent" style="padding:0;">
|
||||
<div class="content-block content-block01 content-block01a" id="aroundLink">
|
||||
@@ -130,6 +140,14 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="content contentSuggest dn" id="noDataDiv">
|
||||
<div class="noData">
|
||||
<img src="../../images/noData.png">
|
||||
<p>您的小区数据目前仍在更新<br>敬请期待</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -156,24 +174,15 @@ $.config = {router: false}
|
||||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
<script>
|
||||
var city = "北京"
|
||||
var region = "顺义"
|
||||
var name = "龙湾别墅五期"
|
||||
var city = "上海"
|
||||
var region = "闵行"
|
||||
var name = "卓越维港别墅"
|
||||
|
||||
var lat;
|
||||
var lng;
|
||||
var address;
|
||||
var tags;
|
||||
var baseInfo = new Vue({
|
||||
el: '#districtBaseInfo',
|
||||
data: {
|
||||
name : "",
|
||||
city:"",
|
||||
region: "",
|
||||
address: "",
|
||||
tags:[]
|
||||
}
|
||||
})
|
||||
var baseInfo ;
|
||||
|
||||
|
||||
|
||||
@@ -190,26 +199,29 @@ function onPlusReady() {
|
||||
city = self.city
|
||||
region = self.region
|
||||
name = self.name;
|
||||
// loadDistrictInfo();
|
||||
|
||||
|
||||
// 创建根实例
|
||||
new Vue({
|
||||
el: '#baseInfo'
|
||||
baseInfo = new Vue({
|
||||
el: '#districtBaseInfo',
|
||||
data: {
|
||||
name : "",
|
||||
city:"",
|
||||
region: "",
|
||||
address: "",
|
||||
tags:[]
|
||||
}
|
||||
})
|
||||
|
||||
//new Vue({
|
||||
// el: '#nearDistDiv'
|
||||
//})
|
||||
//new Vue({
|
||||
// el: '#mapDiv'
|
||||
//})
|
||||
}
|
||||
|
||||
//new Vue({
|
||||
// el: '#baseInfo'
|
||||
//})
|
||||
|
||||
/*baseInfo = new Vue({
|
||||
el: '#districtBaseInfo',
|
||||
data: {
|
||||
name : "",
|
||||
city:"",
|
||||
region: "",
|
||||
address: "",
|
||||
tags:[]
|
||||
}
|
||||
})*/
|
||||
|
||||
|
||||
/* 小区租金走势 */
|
||||
|
||||
@@ -109,6 +109,8 @@ function logout() {
|
||||
//退出登录之前loading下个人中心
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
plus.webview.getWebviewById('yfindex.html').reload();
|
||||
timer.start();
|
||||
}
|
||||
|
||||
|
||||
@@ -111,7 +111,11 @@ new Vue({
|
||||
},
|
||||
// 修改密码
|
||||
updatePass: function() {
|
||||
if (this.pass == '' || this.pass.length < 7) {
|
||||
if (this.pass == '') {
|
||||
$.toast("请输入密码");
|
||||
return;
|
||||
}
|
||||
if (this.pass.length < 7) {
|
||||
$.toast("请输入6位以上数字或字母");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -167,6 +167,7 @@
|
||||
<div id="tabList2" class="tab">
|
||||
<div class="list-block media-list">
|
||||
<ul class="list-container" id="mf_ul">
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<!-- 分页加载效果, 默认不显示, 和 加载loading页区分开-->
|
||||
@@ -176,11 +177,12 @@
|
||||
</div>
|
||||
<!-- 我的收藏 -->
|
||||
<div id="tabList3" class="tab">
|
||||
<div class="list-block" >
|
||||
<ul class="list-container" id="myColect">
|
||||
<!-- 动态拼接内容 -->
|
||||
</ul>
|
||||
<div class="list-block media-list" id="myColect">
|
||||
<!-- <ul class="list-container" >
|
||||
|
||||
</ul>-->
|
||||
</div>
|
||||
|
||||
<!-- 分页加载效果, 默认不显示, 和 加载loading页区分开-->
|
||||
<div id="loadTip3" class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
@@ -292,6 +294,8 @@ function checkIsLogin(){
|
||||
//跳转登录方法, 考虑回调
|
||||
function gotoLogin(){
|
||||
clicked('/views/user/codeSms.html',true,false,{},{},function(){
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('yfindex.html').reload();
|
||||
checkIsLogin();
|
||||
})
|
||||
}
|
||||
@@ -305,10 +309,12 @@ function gotoUpdatePass(){
|
||||
function gotoLoanApply(houseId, city){
|
||||
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: city, mobile: _mobile},function(){})
|
||||
}
|
||||
|
||||
//跳转到小区详情
|
||||
function gotoDistrictDetail(city,region,name){
|
||||
clicked('/views/district/detail.html',true,false,{},{city:city,region:region,name:name},function(){})
|
||||
}
|
||||
|
||||
//跳转房产详情
|
||||
function gotoHouseDetail(id){
|
||||
clicked('/views/house/detail.html',true,false,{},{houseId:id},function(){
|
||||
|
||||
Reference in New Issue
Block a user