This commit is contained in:
xuhe@fangjia.com
2018-04-12 15:01:32 +08:00
parent 3cbfd87acd
commit 38c8b2ce75
5 changed files with 149 additions and 145 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>'+
+1 -1
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">
+1 -1
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 id="title2"></title> <title id="title2">咨询详情</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">
+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(){