Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into xh-youfangApp1.1
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
<div class="page-group">
|
<div class="page-group">
|
||||||
<div class="page page-current">
|
<div class="page page-current">
|
||||||
<header class="bar bar-nav">
|
<header class="bar bar-nav">
|
||||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||||
<span class="icon icon-left"></span>
|
<span class="icon icon-left"></span>
|
||||||
</button>
|
</button>
|
||||||
<h1 class="title">出租管理</h1>
|
<h1 class="title">出租管理</h1>
|
||||||
@@ -128,31 +128,34 @@ function onPlusReady() {
|
|||||||
var self = plus.webview.currentWebview();
|
var self = plus.webview.currentWebview();
|
||||||
id = self.houseId
|
id = self.houseId
|
||||||
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){
|
||||||
var active = "";
|
// var active = "";
|
||||||
var houseRoomNum = "";
|
// var houseRoomNum = "";
|
||||||
if(this.id == id){
|
// if(this.id == id){
|
||||||
active = "active"
|
// active = "active"
|
||||||
}
|
// }
|
||||||
if(this.houseRoomNum){
|
// if(this.houseRoomNum){
|
||||||
houseRoomNum = '<small>'+this.houseRoomNum+'</small>';
|
// houseRoomNum = '<small>'+this.houseRoomNum+'</small>';
|
||||||
}
|
// }
|
||||||
$("#titleList").append('<a v-bind:val="'+this.id+'" class="tab-link button '+active+'">'+
|
// $("#titleList").append('<a v-bind:val="'+this.id+'" class="tab-link button '+active+'">'+
|
||||||
'<label>'+this.name+'</label>'+houseRoomNum+'</a>')
|
// '<label>'+this.name+'</label>'+houseRoomNum+'</a>')
|
||||||
$(".buttons-tab01 a").click(function(){
|
// $(".buttons-tab01 a").click(function(){
|
||||||
var id = $(this).attr("val")
|
// var id = $(this).attr("val")
|
||||||
window.location.href = "index?id="+id;
|
// window.location.href = "index?id="+id;
|
||||||
});
|
// });
|
||||||
})
|
// })
|
||||||
var houseInfo = response.data.data.houseInfo;
|
var houseInfo = response.data.data.houseInfo;
|
||||||
edit.liveStatus=houseInfo.liveStatus;
|
if(houseInfo.liveStatus=="出租"){
|
||||||
edit.leaseStartDate=getNowFormatDate(houseInfo.leaseStartDate);
|
edit.liveStatus=houseInfo.liveStatus;
|
||||||
edit.leaseEndDate = getNowFormatDate(houseInfo.leaseEndDate);
|
edit.leaseStartDate=getNowFormatDate(houseInfo.leaseStartDate);
|
||||||
edit.lastRentDate = getNowFormatDate(houseInfo.lastRentDate);
|
edit.leaseEndDate = getNowFormatDate(houseInfo.leaseEndDate);
|
||||||
edit.nowDay = getNowFormatDate(response.data.data.nowDay);
|
edit.lastRentDate = getNowFormatDate(houseInfo.lastRentDate);
|
||||||
edit.rent = houseInfo.rent;
|
edit.nowDay = getNowFormatDate(response.data.data.nowDay);
|
||||||
edit.cycle = response.data.data.cycle;
|
edit.rent = houseInfo.rent;
|
||||||
|
edit.cycle = response.data.data.cycle;
|
||||||
|
}
|
||||||
|
|
||||||
/* 选择-起租日期 */
|
/* 选择-起租日期 */
|
||||||
$("#input_time01").datetimePicker({
|
$("#input_time01").datetimePicker({
|
||||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||||
|
|||||||
Reference in New Issue
Block a user