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 page-current">
|
||||
<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>
|
||||
</button>
|
||||
<h1 class="title">出租管理</h1>
|
||||
@@ -128,31 +128,34 @@ function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
id = self.houseId
|
||||
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 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;
|
||||
if(houseInfo.liveStatus=="出租"){
|
||||
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">\
|
||||
|
||||
Reference in New Issue
Block a user