Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
This commit is contained in:
@@ -55,7 +55,7 @@ function addEstate(number, lastIndex) {
|
||||
}
|
||||
}
|
||||
html+= '<li>'+
|
||||
'<a onclick="clicked(\'${basePath}/district/details?city='+this.city+'®ion='+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-title-row">'+
|
||||
'<div class="item-title">'+this.name+'</div>'+
|
||||
|
||||
@@ -1544,7 +1544,8 @@
|
||||
"views/news/newsDetail.html",
|
||||
"error.html",
|
||||
"views/rent/rent.html",
|
||||
"views/district/detail.html"
|
||||
"views/district/detail.html",
|
||||
"views/house/houseList.html"
|
||||
],
|
||||
"priority": 0
|
||||
},
|
||||
@@ -1613,7 +1614,10 @@
|
||||
"images/topBg.png",
|
||||
"images/icon-set.png"
|
||||
],
|
||||
"refer": [],
|
||||
"refer": [
|
||||
"views/user/passLogin.html",
|
||||
"views/district/detail.html"
|
||||
],
|
||||
"priority": 0
|
||||
},
|
||||
"views/evaluate/evaluateList.html": {
|
||||
@@ -1635,6 +1639,29 @@
|
||||
],
|
||||
"refer": [],
|
||||
"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": {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title></title>
|
||||
<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">
|
||||
@@ -83,19 +83,19 @@
|
||||
<div class="topic">
|
||||
<div class="topicContent" style="padding-left:0;padding-right:0;">
|
||||
<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>
|
||||
<span>出售分析</span>
|
||||
</div>
|
||||
<div onclick="window.location.href='01_index01_myHouse04_evaluationResult02_rentManagement01_index.html'">
|
||||
</div>-->
|
||||
<div onclick="openNewView('/views/rent/rent.html')">
|
||||
<i class="icon icon-evaluation02"></i>
|
||||
<span>出租管理</span>
|
||||
</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>
|
||||
<span>我要置换</span>
|
||||
</div>
|
||||
<div onclick="window.location.href='01_index01_myHouse04_evaluationResult04_loan01_inputInfo.html'">
|
||||
</div>-->
|
||||
<div onclick="openNewView('/views/loan/loanInfo.html')">
|
||||
<i class="icon icon-personal03"></i>
|
||||
<span>我要贷款</span>
|
||||
</div>
|
||||
@@ -296,6 +296,9 @@ var lng;
|
||||
var city;
|
||||
var region;
|
||||
var name;
|
||||
var oriCity;
|
||||
var oriRegion;
|
||||
var oriName;
|
||||
//扩展API加载完毕,现在可以正常调用扩展API
|
||||
function onPlusReady(){
|
||||
var self = plus.webview.currentWebview();
|
||||
@@ -344,9 +347,9 @@ function init(){
|
||||
var houseInfo = response.data.data.houseInfo;
|
||||
lat = houseInfo.lat;
|
||||
lng = houseInfo.lng;
|
||||
city = houseInfo.city;
|
||||
region = houseInfo.region;
|
||||
name = houseInfo.name;
|
||||
oriCity = houseInfo.city;
|
||||
oriRegion = houseInfo.region;
|
||||
oriName = houseInfo.name;
|
||||
address = houseInfo.address;
|
||||
var text = houseInfo.name;
|
||||
var length = text.length;
|
||||
@@ -359,6 +362,9 @@ function init(){
|
||||
if(response.data.data.rentRooms){
|
||||
rentRooms = response.data.data.rentRooms;
|
||||
}
|
||||
city = houseInfo.city;
|
||||
region = houseInfo.region;
|
||||
name = houseInfo.name;
|
||||
baseInfo.id=houseInfo.id;
|
||||
baseInfo.city = houseInfo.city;
|
||||
baseInfo.name = houseInfo.name;
|
||||
@@ -497,6 +503,10 @@ $("#tabRentDiv").on("click", function () {
|
||||
$("#tabChart2").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>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -25,8 +25,14 @@
|
||||
.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;}
|
||||
/**添加loading加载效果**/
|
||||
.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:71px;left:0;z-index:100;}
|
||||
.loadingBg .infinite-scroll-preloader{margin-top:60%;}
|
||||
.loadingBgDiv{width:100%;height:70%;background:#fff;overflow:hidden;position:absolute;top:2.2rem;left:0;z-index:100;}
|
||||
.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>
|
||||
|
||||
</head>
|
||||
@@ -36,17 +42,13 @@
|
||||
<div class="page-group">
|
||||
<div class="page page-current" id="dataList" style="display: none;">
|
||||
<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>
|
||||
</header>
|
||||
<!-- 加载loading页 -->
|
||||
<div class="loadingBg">
|
||||
<div class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="loadingBgDiv">
|
||||
<div class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="list-block media-list">
|
||||
<!-- 动态封装部分 begin -->
|
||||
@@ -62,11 +64,13 @@
|
||||
</div>
|
||||
<div class="page page-current" id="noData" style="display: none;">
|
||||
<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="loadingBgDiv">
|
||||
<div class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content contentSuggest">
|
||||
<div class="noData">
|
||||
<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/log/log_stat.js" ></script>
|
||||
<script>
|
||||
|
||||
//调用mui.init方法
|
||||
$.init()
|
||||
|
||||
@@ -149,7 +154,8 @@ function addManagement(id, houseStatus, liveStatus){
|
||||
var status = response.data.status;
|
||||
if(status){
|
||||
$.toast(response.data.data);
|
||||
window.location.reload();
|
||||
$('.loadingBgDiv').show();
|
||||
checkIsLogin();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
plus.webview.getWebviewById('yfindex.html').reload();
|
||||
}else{
|
||||
@@ -172,9 +178,11 @@ function selectEvaluateList(){
|
||||
if(response.data.data==null || resultsMap.houseInfoList==null || resultsMap.houseInfoList.length==0){
|
||||
$('#dataList').hide();
|
||||
$('#noData').show();
|
||||
$('.loadingBgDiv').hide()
|
||||
}else{
|
||||
$('#dataList').show();
|
||||
$('#noData').hide();
|
||||
$('.loadingBgDiv').hide()
|
||||
var results = resultsMap.houseInfoList;
|
||||
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
||||
var cityAvgPriceMap = resultsMap.cityAvgPriceMap;
|
||||
@@ -183,7 +191,7 @@ function selectEvaluateList(){
|
||||
//动态追加内容
|
||||
$('.list-block ul').html(htmlContent);
|
||||
//添加loading等待效果
|
||||
$(".loadingBg").hide();
|
||||
//$(".loadingBg").hide();
|
||||
$(".content-block").show();
|
||||
}
|
||||
|
||||
@@ -259,6 +267,7 @@ function checkIsLogin(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
$('#dataList').hide();
|
||||
$('#noData').show();
|
||||
$('.loadingBgDiv').hide();
|
||||
}else{
|
||||
selectEvaluateList();
|
||||
}
|
||||
|
||||
@@ -123,146 +123,86 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
<script>
|
||||
|
||||
|
||||
|
||||
// 获取周期 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;
|
||||
// }
|
||||
//});
|
||||
|
||||
</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){
|
||||
var data = response.data.data.houses;
|
||||
$.each(data,function(i){
|
||||
var active = "";
|
||||
var houseRoomNum = "";
|
||||
if(this.id == id){
|
||||
active = "active"
|
||||
}
|
||||
if(this.houseRoomNum){
|
||||
houseRoomNum = '<small>'+this.houseRoomNum+'</small>';
|
||||
}
|
||||
$("#titleList").append('<a v-bind:val="'+this.id+'" class="tab-link button '+active+'">'+
|
||||
'<label>'+this.name+'</label>'+houseRoomNum+'</a>')
|
||||
$(".buttons-tab01 a").click(function(){
|
||||
var id = $(this).attr("val")
|
||||
window.location.href = "index?id="+id;
|
||||
});
|
||||
})
|
||||
var houseInfo = response.data.data.houseInfo;
|
||||
edit.liveStatus=houseInfo.liveStatus;
|
||||
edit.leaseStartDate=getNowFormatDate(houseInfo.leaseStartDate);
|
||||
edit.leaseEndDate = getNowFormatDate(houseInfo.leaseEndDate);
|
||||
edit.lastRentDate = getNowFormatDate(houseInfo.lastRentDate);
|
||||
edit.nowDay = getNowFormatDate(response.data.data.nowDay);
|
||||
edit.rent = houseInfo.rent;
|
||||
edit.cycle = response.data.data.cycle;
|
||||
/* 选择-起租日期 */
|
||||
$("#input_time01").datetimePicker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">起租日期</h1>\
|
||||
</header>'
|
||||
});
|
||||
|
||||
/* 选择-到期日期 */
|
||||
$("#input_time02").datetimePicker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">到期日期</h1>\
|
||||
</header>'
|
||||
});
|
||||
|
||||
/* 选择-下次收租日期 */
|
||||
$("#input_time03").datetimePicker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">下次收租日期</h1>\
|
||||
</header>'
|
||||
});
|
||||
|
||||
/* 选择-收租周期 */
|
||||
$("#input_cycle").picker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">收租周期</h1>\
|
||||
</header>',
|
||||
cols: [
|
||||
{
|
||||
textAlign: 'center',
|
||||
values: getnumber()
|
||||
},
|
||||
{
|
||||
textAlign: 'center',
|
||||
values: ["年", "季", "月"]
|
||||
},
|
||||
{
|
||||
textAlign: 'center',
|
||||
values: ["/次"]
|
||||
}
|
||||
]
|
||||
});
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
id = self.id
|
||||
axios.get('/rest/rent/queryHouseRent',{params:{id:id}}).then(function(response){
|
||||
var data = response.data.data.houses;
|
||||
$.each(data,function(i){
|
||||
var active = "";
|
||||
var houseRoomNum = "";
|
||||
if(this.id == id){
|
||||
active = "active"
|
||||
}
|
||||
if(this.houseRoomNum){
|
||||
houseRoomNum = '<small>'+this.houseRoomNum+'</small>';
|
||||
}
|
||||
$("#titleList").append('<a v-bind:val="'+this.id+'" class="tab-link button '+active+'">'+
|
||||
'<label>'+this.name+'</label>'+houseRoomNum+'</a>')
|
||||
$(".buttons-tab01 a").click(function(){
|
||||
var id = $(this).attr("val")
|
||||
window.location.href = "index?id="+id;
|
||||
});
|
||||
})
|
||||
var houseInfo = response.data.data.houseInfo;
|
||||
edit.liveStatus=houseInfo.liveStatus;
|
||||
edit.leaseStartDate=getNowFormatDate(houseInfo.leaseStartDate);
|
||||
edit.leaseEndDate = getNowFormatDate(houseInfo.leaseEndDate);
|
||||
edit.lastRentDate = getNowFormatDate(houseInfo.lastRentDate);
|
||||
edit.nowDay = getNowFormatDate(response.data.data.nowDay);
|
||||
edit.rent = houseInfo.rent;
|
||||
edit.cycle = response.data.data.cycle;
|
||||
/* 选择-起租日期 */
|
||||
$("#input_time01").datetimePicker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">起租日期</h1>\
|
||||
</header>'
|
||||
});
|
||||
})
|
||||
|
||||
/* 选择-到期日期 */
|
||||
$("#input_time02").datetimePicker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">到期日期</h1>\
|
||||
</header>'
|
||||
});
|
||||
|
||||
/* 选择-下次收租日期 */
|
||||
$("#input_time03").datetimePicker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">下次收租日期</h1>\
|
||||
</header>'
|
||||
});
|
||||
|
||||
/* 选择-收租周期 */
|
||||
$("#input_cycle").picker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">收租周期</h1>\
|
||||
</header>',
|
||||
cols: [
|
||||
{
|
||||
textAlign: 'center',
|
||||
values: getnumber()
|
||||
},
|
||||
{
|
||||
textAlign: 'center',
|
||||
values: ["年", "季", "月"]
|
||||
},
|
||||
{
|
||||
textAlign: 'center',
|
||||
values: ["/次"]
|
||||
}
|
||||
]
|
||||
});
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
});
|
||||
|
||||
//var id="165878889770385408"
|
||||
/* 编辑状态-确定 */
|
||||
$(document).on('click','#confirm_btn', function () {
|
||||
|
||||
@@ -341,12 +281,70 @@ $("#input_cycle").picker({
|
||||
}
|
||||
|
||||
axios.post("/rest/rent/changeStatus",d).then(function(response){
|
||||
//$.toast(response.data.data);
|
||||
console.log(1);
|
||||
back(),plus.nativeUI.closeWaiting();
|
||||
}).catch(function(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>
|
||||
</body>
|
||||
</html>
|
||||
@@ -305,7 +305,13 @@ 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){
|
||||
alert(city)
|
||||
alert(region)
|
||||
alert(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