Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into xh-youfangApp1.1
This commit is contained in:
@@ -15,11 +15,9 @@
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
<style>
|
||||
.popup-about03 ul,.popup-about04 ul{margin:0 0.5rem;border:solid 1px #e6e6ea;border-radius:6px;}
|
||||
.popup-about03 .list-block.list-block01,.popup-about04 .list-block.list-block01{margin-top:0;}
|
||||
.popup-about03 .list-block ul:before,.popup-about04 .list-block ul:before{height:0;}
|
||||
.popup-about03 .list-block ul:after,.popup-about04 .list-block ul:after{height:0;}
|
||||
.picker-item{padding:0 1rem;font-size:18px;}
|
||||
.list-block ul:before{height:0;}
|
||||
.list-block.mb05 ul:before{height:1px;}
|
||||
.list-block.mb05 ul:after{height:0;}
|
||||
.info-container input{float:none;width:100%;}
|
||||
</style>
|
||||
|
||||
@@ -38,8 +36,8 @@
|
||||
</button>-->
|
||||
<h1 class="title">房产评估</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="list-block media-list">
|
||||
<div class="content f3">
|
||||
<div class="list-block media-list mb05">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-link item-content">
|
||||
@@ -119,7 +117,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="list-block media-list" id="liveStatusDiv" style="display: none;">
|
||||
<div class="list-block media-list" id="liveStatusDiv" style="display:none;">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-link item-content">
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
<i class="icon icon-evaluation03"></i>
|
||||
<span>我要置换</span>
|
||||
</div>-->
|
||||
<div onclick="gotoLoanApply()">
|
||||
<div onclick="gotoLoanApply()" id="gotoLoanApply" style="display: none;">
|
||||
<i class="icon icon-personal03"></i>
|
||||
<span>我要贷款</span>
|
||||
</div>
|
||||
@@ -333,7 +333,12 @@ var oriName;
|
||||
function onPlusReady(){
|
||||
var self = plus.webview.currentWebview();
|
||||
houseId = self.houseId; //type为1时是我的房产
|
||||
//houseId="106777351102136320";
|
||||
//控制贷款按钮是否可以显示,便于ios版本审核
|
||||
if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
|
||||
$('#gotoLoanApply').show();
|
||||
}else{
|
||||
$('#gotoLoanApply').hide();
|
||||
}
|
||||
init();
|
||||
}
|
||||
var baseInfo = new Vue({
|
||||
|
||||
@@ -45,8 +45,8 @@
|
||||
<a href="#tabQuotation0" class="tab-link button">添加</a>
|
||||
</div>
|
||||
|
||||
<div class="tabs">
|
||||
<div id="tabQuotation1" class="tab active" >
|
||||
<div class="tabs" >
|
||||
<div id="tabQuotation1" class="tab active" v-cloak>
|
||||
<div class="card cardPrice cardPrice01 cardCity" id="countryInfo" v-cloak>
|
||||
<div class="card-header">
|
||||
<label>全国</label>
|
||||
@@ -77,7 +77,7 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="myFocusFirstPage">
|
||||
<div id="myFocusFirstPage" v-cloak>
|
||||
<my_focus></my_focus>
|
||||
</div>
|
||||
<div class="cardNearbyBox cardNearbyBox01 cardRankingBox cardRankingBox01" id="countryRank" v-cloak>
|
||||
@@ -1211,6 +1211,7 @@ $.config = {router: false}
|
||||
<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/quotations/cityDetail.js" ></script>
|
||||
<script type="text/javascript" src="../component/myFocusComponent.js"></script>
|
||||
<script type="text/javascript" src="../component/cityIncreaseRankingComponent.js"></script>
|
||||
<script type="text/javascript" src="../component/cityPotentialRankingComponent.js"></script>
|
||||
@@ -1218,7 +1219,9 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../component/cityChooseComponent.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 type="text/javascript" src="../../js/city.js" ></script>
|
||||
|
||||
|
||||
<script>
|
||||
var date = new Date();
|
||||
@@ -1236,6 +1239,18 @@ $.config = {router: false}
|
||||
}
|
||||
});
|
||||
|
||||
var allCityVue = new Vue({
|
||||
el: '#countryInfo',
|
||||
data: {
|
||||
nowYear : "",
|
||||
nowMonth : "",
|
||||
cityCount : "",
|
||||
upRate : "",
|
||||
downRate : "",
|
||||
avgUpRate :"",
|
||||
avgUownRate : ""
|
||||
}
|
||||
})
|
||||
var cityDetaiVue = new Vue({
|
||||
el: '#tabCityDiv',
|
||||
data: {
|
||||
@@ -1243,18 +1258,28 @@ $.config = {router: false}
|
||||
}
|
||||
})
|
||||
|
||||
var cityRankVue = new Vue({
|
||||
el: '#countryRank',
|
||||
data: {
|
||||
datas : ""
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady(){
|
||||
var city = "";
|
||||
plus.geolocation.getCurrentPosition(function(p){
|
||||
//province = p.address.province;
|
||||
city = p.address.city;
|
||||
//region = p.address.district;
|
||||
if(city && city.endsWith("市")){
|
||||
positionCity = city.substring(0, city.length-1)
|
||||
|
||||
var formatCity = formatBaiduCity(city);
|
||||
positionCity = formatCity
|
||||
city = formatCity;
|
||||
$(".nowCity").html(city);
|
||||
|
||||
loadAllCityData();
|
||||
}
|
||||
//lng = p.coords.longitude;//获取到当前位置的经度
|
||||
//lat = p.coords.latitude;//获取到当前位置的纬度;
|
||||
|
||||
}, function(e){
|
||||
},
|
||||
@@ -1273,27 +1298,7 @@ $.config = {router: false}
|
||||
var cityPotentialRanking = new Vue({
|
||||
el:"#cityPotentialRanking"
|
||||
})
|
||||
// var cityChoose = new Vue({
|
||||
// el:"#cityChoose",
|
||||
// data:{
|
||||
// city:''
|
||||
// }
|
||||
// })
|
||||
plus.geolocation.getCurrentPosition(function(p){
|
||||
//province = p.address.province;
|
||||
var cityStr = p.address.city;
|
||||
if(cityStr){
|
||||
$(".nowCity").html(cityStr.endsWith("市")?cityStr.substring(0,cityStr.length-1):cityStr);
|
||||
}
|
||||
//region = p.address.district;
|
||||
}, function(e){
|
||||
},
|
||||
{
|
||||
provider:'baidu',
|
||||
enableHighAccuracy:true,
|
||||
coordsType:'bd09ll'
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
|
||||
/* button状态切换 */
|
||||
@@ -1388,7 +1393,7 @@ $.config = {router: false}
|
||||
}
|
||||
|
||||
//加载首页全国数据
|
||||
$(function() {
|
||||
function loadAllCityData(){
|
||||
var date=new Date;
|
||||
var year=date.getFullYear();
|
||||
var month=date.getMonth()+1;
|
||||
@@ -1398,19 +1403,14 @@ $.config = {router: false}
|
||||
}
|
||||
})
|
||||
.then(function (response) {
|
||||
new Vue({
|
||||
el: '#countryInfo',
|
||||
data: {
|
||||
nowYear : year,
|
||||
nowMonth : month,
|
||||
cityCount : response.data.data.cityCount,
|
||||
upRate : response.data.data.upRate,
|
||||
downRate : response.data.data.downRate,
|
||||
avgUpRate : response.data.data.avgUpRate,
|
||||
avgUownRate : response.data.data.avgUownRate
|
||||
}
|
||||
})
|
||||
|
||||
allCityVue.nowYear = year;
|
||||
allCityVue.nowMonth = month;
|
||||
allCityVue.cityCount = response.data.data.cityCount;
|
||||
allCityVue.upRate = response.data.data.upRate;
|
||||
allCityVue.downRate = response.data.data.downRate;
|
||||
allCityVue.avgUpRate = response.data.data.avgUpRate;
|
||||
allCityVue.avgUownRate = response.data.data.avgUownRate;
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
@@ -1423,19 +1423,15 @@ $.config = {router: false}
|
||||
})
|
||||
.then(function (response) {
|
||||
//0:涨幅排行 1:潜力排行 2:均价排行
|
||||
new Vue({
|
||||
el: '#countryRank',
|
||||
data: {
|
||||
datas : response.data.data
|
||||
}
|
||||
})
|
||||
|
||||
cityRankVue.datas = response.data.data
|
||||
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
function addCityFocus(city){
|
||||
//city=city.replace("<i></i>","")
|
||||
@@ -1567,7 +1563,7 @@ function addFocus(city){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
|
||||
var curDatas = response.data.data
|
||||
if(curDatas && curDatas.length>0){
|
||||
if(curDatas && curDatas.length>=0){
|
||||
if(!IsInArray(curDatas, city)){
|
||||
cityDetaiVue.$data.citys.push(city);
|
||||
}
|
||||
@@ -1605,12 +1601,14 @@ function addFocus(city){
|
||||
}
|
||||
|
||||
function hotCity(city){
|
||||
clicked('../house/cityDetail.html',true,false,{},{city:city},function(){
|
||||
|
||||
clicked('../house/cityDetail.html',true,false,{},{city:city},function(){
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function IsInArray(arr, val){
|
||||
var testStr=','+arr.join(",")+",";
|
||||
return testStr.indexOf(","+val+",")!=-1;
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@@ -115,7 +115,7 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
<script>
|
||||
//初始化init
|
||||
//初始化init(init方法必须调用,屏蔽后,无线下拉刷新无效果)
|
||||
$.init();
|
||||
|
||||
//定义对象
|
||||
@@ -282,11 +282,6 @@ function gotoLoanApply(houseId, city){
|
||||
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: city, mobile: ""},function(){})
|
||||
}
|
||||
|
||||
//界面加载
|
||||
$(document).ready(function () {
|
||||
checkIsLogin();
|
||||
});
|
||||
|
||||
/* 分页构造数据 */
|
||||
function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xqPotentialIndexMap, houseInfoTotalMap) {
|
||||
var html = '';
|
||||
@@ -371,7 +366,12 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq
|
||||
}else{
|
||||
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>';
|
||||
//控制贷款按钮是否可以显示,便于ios版本审核
|
||||
if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
|
||||
html += '<a class="button theme add add01 add01a" href="#" onclick="gotoLoanApply(\''+result.id+'\', \''+result.city+'\')">立即申请</a></li>';
|
||||
}else{
|
||||
html += '</li>';
|
||||
}
|
||||
}
|
||||
$('.infinite-scroll-bottom .list-container').append(html);
|
||||
}
|
||||
@@ -381,6 +381,12 @@ $(document).on('click','.alert-text-title', function () {
|
||||
$.alert('房产等级是房屋在城市中的综合评级,由高至低分别为 豪宅、公寓、平房、草屋、山洞共5个级别。', '房产等级');
|
||||
});
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
|
||||
function onPlusReady(){
|
||||
checkIsLogin();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -104,7 +104,7 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
<script>
|
||||
|
||||
|
||||
//调用mui.init方法
|
||||
$.init()
|
||||
|
||||
@@ -164,6 +164,7 @@ function addManagement(id, houseStatus, liveStatus){
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
//查询房产评估列表AJAX请求
|
||||
function selectEvaluateList(){
|
||||
//先清空列表
|
||||
@@ -268,10 +269,13 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
|
||||
return htmlContent;
|
||||
}
|
||||
|
||||
//立即评估
|
||||
function openaddWindow(){
|
||||
clicked('/views/house/add.html',true,false,{},{type:1},function(){
|
||||
})
|
||||
}
|
||||
|
||||
//评估报告详情
|
||||
function openReportWindow(id){
|
||||
clicked('/views/evaluate/evaluateReport.html',true,false,{},{hid:id})
|
||||
}
|
||||
@@ -286,7 +290,13 @@ function checkIsLogin(){
|
||||
selectEvaluateList();
|
||||
}
|
||||
}
|
||||
checkIsLogin()
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
|
||||
function onPlusReady(){
|
||||
checkIsLogin();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user