Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1

This commit is contained in:
尹吉欢
2018-04-12 15:16:53 +08:00
6 changed files with 221 additions and 171 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ function addEstate(number, lastIndex) {
} }
} }
html+= '<li>'+ html+= '<li>'+
'<a onclick="clicked(\'${basePath}/district/details?city='+this.city+'&region='+this.region+'&name='+this.name+'\',true)" class="item-content">'+ '<a onclick="gotoDistrictDetail(\''+this.city+'\',\''+this.region+'\',\''+this.name+'\')" class="item-content">'+
'<div class="item-inner">'+ '<div class="item-inner">'+
'<div class="item-title-row">'+ '<div class="item-title-row">'+
'<div class="item-title">'+this.name+'</div>'+ '<div class="item-title">'+this.name+'</div>'+
+29 -2
View File
@@ -1544,7 +1544,8 @@
"views/news/newsDetail.html", "views/news/newsDetail.html",
"error.html", "error.html",
"views/rent/rent.html", "views/rent/rent.html",
"views/district/detail.html" "views/district/detail.html",
"views/house/houseList.html"
], ],
"priority": 0 "priority": 0
}, },
@@ -1613,7 +1614,10 @@
"images/topBg.png", "images/topBg.png",
"images/icon-set.png" "images/icon-set.png"
], ],
"refer": [], "refer": [
"views/user/passLogin.html",
"views/district/detail.html"
],
"priority": 0 "priority": 0
}, },
"views/evaluate/evaluateList.html": { "views/evaluate/evaluateList.html": {
@@ -1635,6 +1639,29 @@
], ],
"refer": [], "refer": [],
"priority": 0 "priority": 0
},
"views/user/passLogin.html": {
"resources": [],
"refer": [
"views/user/bindingMobile.html",
"views/user/codeSms.html"
],
"priority": 0
},
"views/house/houseList.html": {
"resources": [],
"refer": [
"views/house/add.html",
"views/house/detail.html"
],
"priority": 0
},
"views/house/add.html": {
"resources": [],
"refer": [
"views/evaluate/evaluateReport.html"
],
"priority": 0
} }
}, },
"idle": { "idle": {
+20 -10
View File
@@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title> <title>房产分析</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1"> <meta name="viewport" content="initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" href="/favicon.ico"> <link rel="shortcut icon" href="/favicon.ico">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
@@ -83,19 +83,19 @@
<div class="topic"> <div class="topic">
<div class="topicContent" style="padding-left:0;padding-right:0;"> <div class="topicContent" style="padding-left:0;padding-right:0;">
<div class="topicContent_center home"> <div class="topicContent_center home">
<div onclick="window.location.href='01_index01_myHouse04_evaluationResult01_saleAnalysis01_index.html'"> <!--<div onclick="window.location.href='+BASE_PATH+'/saleAnalysis/index'">
<i class="icon icon-evaluation01"></i> <i class="icon icon-evaluation01"></i>
<span>出售分析</span> <span>出售分析</span>
</div> </div>-->
<div onclick="window.location.href='01_index01_myHouse04_evaluationResult02_rentManagement01_index.html'"> <div onclick="openNewView('/views/rent/rent.html')">
<i class="icon icon-evaluation02"></i> <i class="icon icon-evaluation02"></i>
<span>出租管理</span> <span>出租管理</span>
</div> </div>
<div onclick="window.location.href='01_index01_myHouse04_evaluationResult03_exchange01_index.html'"> <!--<div onclick="window.location.href='01_index01_myHouse04_evaluationResult03_exchange01_index.html'">
<i class="icon icon-evaluation03"></i> <i class="icon icon-evaluation03"></i>
<span>我要置换</span> <span>我要置换</span>
</div> </div>-->
<div onclick="window.location.href='01_index01_myHouse04_evaluationResult04_loan01_inputInfo.html'"> <div onclick="openNewView('/views/loan/loanInfo.html')">
<i class="icon icon-personal03"></i> <i class="icon icon-personal03"></i>
<span>我要贷款</span> <span>我要贷款</span>
</div> </div>
@@ -296,6 +296,9 @@ var lng;
var city; var city;
var region; var region;
var name; var name;
var oriCity;
var oriRegion;
var oriName;
//扩展API加载完毕,现在可以正常调用扩展API //扩展API加载完毕,现在可以正常调用扩展API
function onPlusReady(){ function onPlusReady(){
var self = plus.webview.currentWebview(); var self = plus.webview.currentWebview();
@@ -344,9 +347,9 @@ function init(){
var houseInfo = response.data.data.houseInfo; var houseInfo = response.data.data.houseInfo;
lat = houseInfo.lat; lat = houseInfo.lat;
lng = houseInfo.lng; lng = houseInfo.lng;
city = houseInfo.city; oriCity = houseInfo.city;
region = houseInfo.region; oriRegion = houseInfo.region;
name = houseInfo.name; oriName = houseInfo.name;
address = houseInfo.address; address = houseInfo.address;
var text = houseInfo.name; var text = houseInfo.name;
var length = text.length; var length = text.length;
@@ -359,6 +362,9 @@ function init(){
if(response.data.data.rentRooms){ if(response.data.data.rentRooms){
rentRooms = response.data.data.rentRooms; rentRooms = response.data.data.rentRooms;
} }
city = houseInfo.city;
region = houseInfo.region;
name = houseInfo.name;
baseInfo.id=houseInfo.id; baseInfo.id=houseInfo.id;
baseInfo.city = houseInfo.city; baseInfo.city = houseInfo.city;
baseInfo.name = houseInfo.name; baseInfo.name = houseInfo.name;
@@ -497,6 +503,10 @@ $("#tabRentDiv").on("click", function () {
$("#tabChart2").css("z-index","1"); $("#tabChart2").css("z-index","1");
$("#tabChart1").css("z-index","-1"); $("#tabChart1").css("z-index","-1");
}); });
function openNewView(viewHtml) {
alert(viewHtml)
clicked(viewHtml,true,false,{},{city:oriCity,region:oriRegion,name:oriName})
}
</script> </script>
</body> </body>
+21 -12
View File
@@ -25,8 +25,14 @@
.list-block .item-subtitle div.price{position:absolute;bottom:-0.3rem;right:0;} .list-block .item-subtitle div.price{position:absolute;bottom:-0.3rem;right:0;}
.list-block .item-subtitle div.price em strong{font-size:1.4rem;color:#EB5F34;font-weight:bold;margin-right:0.1rem;} .list-block .item-subtitle div.price em strong{font-size:1.4rem;color:#EB5F34;font-weight:bold;margin-right:0.1rem;}
/**添加loading加载效果**/ /**添加loading加载效果**/
.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:71px;left:0;z-index:100;} .loadingBgDiv{width:100%;height:70%;background:#fff;overflow:hidden;position:absolute;top:2.2rem;left:0;z-index:100;}
.loadingBg .infinite-scroll-preloader{margin-top:60%;} .loadingBgDiv .infinite-scroll-preloader{margin-top:60%;}
.list-block{margin-bottom:4rem;}
.content-block{width:100%;background:#fff;position:fixed;bottom:0;z-index:10000;}
@media(min-height:750px){
.list-block{margin-bottom:4.5rem;}
.content-block{bottom:4.5rem;}
}
</style> </style>
</head> </head>
@@ -36,13 +42,9 @@
<div class="page-group"> <div class="page-group">
<div class="page page-current" id="dataList" style="display: none;"> <div class="page page-current" id="dataList" style="display: none;">
<header class="bar bar-nav"> <header class="bar bar-nav">
<!--<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
<span class="icon icon-left"></span>
</button>-->
<h1 class="title">房产评估</h1> <h1 class="title">房产评估</h1>
</header> </header>
<!-- 加载loading页 --> <div class="loadingBgDiv">
<div class="loadingBg">
<div class="infinite-scroll-preloader"> <div class="infinite-scroll-preloader">
<div class="preloader"></div> <div class="preloader"></div>
</div> </div>
@@ -62,11 +64,13 @@
</div> </div>
<div class="page page-current" id="noData" style="display: none;"> <div class="page page-current" id="noData" style="display: none;">
<header class="bar bar-nav"> <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> <h1 class="title">房产评估</h1>
</header> </header>
<div class="loadingBgDiv">
<div class="infinite-scroll-preloader">
<div class="preloader"></div>
</div>
</div>
<div class="content contentSuggest"> <div class="content contentSuggest">
<div class="noData"> <div class="noData">
<img src="../../images/noData.png"> <img src="../../images/noData.png">
@@ -101,6 +105,7 @@ $.config = {router: false}
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script> <script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
<script type="text/javascript" src="../../js/log/log_stat.js" ></script> <script type="text/javascript" src="../../js/log/log_stat.js" ></script>
<script> <script>
//调用mui.init方法 //调用mui.init方法
$.init() $.init()
@@ -149,7 +154,8 @@ function addManagement(id, houseStatus, liveStatus){
var status = response.data.status; var status = response.data.status;
if(status){ if(status){
$.toast(response.data.data); $.toast(response.data.data);
window.location.reload(); $('.loadingBgDiv').show();
checkIsLogin();
plus.webview.getWebviewById('views/user/userInfo.html').reload(); plus.webview.getWebviewById('views/user/userInfo.html').reload();
plus.webview.getWebviewById('yfindex.html').reload(); plus.webview.getWebviewById('yfindex.html').reload();
}else{ }else{
@@ -172,9 +178,11 @@ function selectEvaluateList(){
if(response.data.data==null || resultsMap.houseInfoList==null || resultsMap.houseInfoList.length==0){ if(response.data.data==null || resultsMap.houseInfoList==null || resultsMap.houseInfoList.length==0){
$('#dataList').hide(); $('#dataList').hide();
$('#noData').show(); $('#noData').show();
$('.loadingBgDiv').hide()
}else{ }else{
$('#dataList').show(); $('#dataList').show();
$('#noData').hide(); $('#noData').hide();
$('.loadingBgDiv').hide()
var results = resultsMap.houseInfoList; var results = resultsMap.houseInfoList;
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap; var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
var cityAvgPriceMap = resultsMap.cityAvgPriceMap; var cityAvgPriceMap = resultsMap.cityAvgPriceMap;
@@ -183,7 +191,7 @@ function selectEvaluateList(){
//动态追加内容 //动态追加内容
$('.list-block ul').html(htmlContent); $('.list-block ul').html(htmlContent);
//添加loading等待效果 //添加loading等待效果
$(".loadingBg").hide(); //$(".loadingBg").hide();
$(".content-block").show(); $(".content-block").show();
} }
@@ -259,6 +267,7 @@ function checkIsLogin(){
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
$('#dataList').hide(); $('#dataList').hide();
$('#noData').show(); $('#noData').show();
$('.loadingBgDiv').hide();
}else{ }else{
selectEvaluateList(); selectEvaluateList();
} }
+66 -68
View File
@@ -123,71 +123,10 @@ $.config = {router: false}
<script type="text/javascript" src="../../js/axiosPlugin.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/log/log_stat.js" ></script>
<script> <script>
document.addEventListener('plusready', onPlusReady, false);
function onPlusReady() {
var self = plus.webview.currentWebview();
// 获取周期 1-30 id = self.id
function getnumber(){
var data = new Array();
for(var i=1;i<31;i++){
data.push(i);
}
return data;
};
///* 错误提示 */
//$("#confirm_btn").on("click", function () {
// var a = $("#input_time01").val();
// var b = $("#input_time02").val();
// var c = $("#input_rent01").val();
// var d = $("#input_time03").val();
// if(a == ""){
// $.toast("请选择起租日期");
// return false;
// }
// else if(b == ""){
// $.toast("请选择到期日期");
// return false;
// }
// else if(c == ""){
// $.toast("请输入每期租金");
// return false;
// }
// else if(d == ""){
// $.toast("请选择下次收租日期");
// return false;
// }
//});
</script>
<script>
var edit = new Vue({
el:"#edit",
data:{liveStatus:"",leaseStartDate:"",leaseEndDate:"",lastRentDate:"",nowDay:"",rent:"",cycle:""}
});
function getNowFormatDate(time) {
if(typeof(time)=="undefined"||time==null){
return ""
}
var date = new Date(time)
var seperator1 = "-";
var year = date.getFullYear();
var month = date.getMonth() + 1;
var strDate = date.getDate();
if (month >= 1 && month <= 9) {
month = "0" + month;
}
if (strDate >= 0 && strDate <= 9) {
strDate = "0" + strDate;
}
var currentdate = year + seperator1 + month + seperator1 + strDate;
return currentdate;
}
var id="165878889770385408"
$(function (){
//var self = plus.webview.currentWebview();
// id = self.newsId;
axios.get('/rest/rent/queryHouseRent',{params:{id:id}}).then(function(response){ axios.get('/rest/rent/queryHouseRent',{params:{id:id}}).then(function(response){
var data = response.data.data.houses; var data = response.data.data.houses;
$.each(data,function(i){ $.each(data,function(i){
@@ -262,7 +201,8 @@ $("#input_cycle").picker({
}).catch(function(error){ }).catch(function(error){
console.log(error) console.log(error)
}); });
})
//var id="165878889770385408"
/* 编辑状态-确定 */ /* 编辑状态-确定 */
$(document).on('click','#confirm_btn', function () { $(document).on('click','#confirm_btn', function () {
@@ -341,12 +281,70 @@ $("#input_cycle").picker({
} }
axios.post("/rest/rent/changeStatus",d).then(function(response){ axios.post("/rest/rent/changeStatus",d).then(function(response){
//$.toast(response.data.data); back(),plus.nativeUI.closeWaiting();
console.log(1);
}).catch(function(error){ }).catch(function(error){
console.log(error) console.log(error)
}); });
}); });
}
// 获取周期 1-30
function getnumber(){
var data = new Array();
for(var i=1;i<31;i++){
data.push(i);
}
return data;
};
///* 错误提示 */
//$("#confirm_btn").on("click", function () {
// var a = $("#input_time01").val();
// var b = $("#input_time02").val();
// var c = $("#input_rent01").val();
// var d = $("#input_time03").val();
// if(a == ""){
// $.toast("请选择起租日期");
// return false;
// }
// else if(b == ""){
// $.toast("请选择到期日期");
// return false;
// }
// else if(c == ""){
// $.toast("请输入每期租金");
// return false;
// }
// else if(d == ""){
// $.toast("请选择下次收租日期");
// return false;
// }
//});
var edit = new Vue({
el:"#edit",
data:{liveStatus:"",leaseStartDate:"",leaseEndDate:"",lastRentDate:"",nowDay:"",rent:"",cycle:""}
});
function getNowFormatDate(time) {
if(typeof(time)=="undefined"||time==null){
return ""
}
var date = new Date(time)
var seperator1 = "-";
var year = date.getFullYear();
var month = date.getMonth() + 1;
var strDate = date.getDate();
if (month >= 1 && month <= 9) {
month = "0" + month;
}
if (strDate >= 0 && strDate <= 9) {
strDate = "0" + strDate;
}
var currentdate = year + seperator1 + month + seperator1 + strDate;
return currentdate;
}
</script> </script>
</body> </body>
</html> </html>
+7 -1
View File
@@ -305,7 +305,13 @@ function gotoUpdatePass(){
function gotoLoanApply(houseId, city){ function gotoLoanApply(houseId, city){
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: city, mobile: _mobile},function(){}) clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: city, mobile: _mobile},function(){})
} }
//跳转到小区详情
function gotoDistrictDetail(city,region,name){
alert(city)
alert(region)
alert(name)
clicked('/views/district/detail.html',true,false,{},{city:city,region:region,name:name},function(){})
}
//跳转房产详情 //跳转房产详情
function gotoHouseDetail(id){ function gotoHouseDetail(id){
clicked('/views/house/detail.html',true,false,{},{houseId:id},function(){ clicked('/views/house/detail.html',true,false,{},{houseId:id},function(){