diff --git a/fangija-zsyf/views/rent/rentManager.html b/fangija-zsyf/views/rent/rentManager.html index 19ed821..8c77016 100644 --- a/fangija-zsyf/views/rent/rentManager.html +++ b/fangija-zsyf/views/rent/rentManager.html @@ -25,7 +25,7 @@
-

出租管理

@@ -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 = ''+this.houseRoomNum+''; - } - $("#titleList").append(''+ - ''+houseRoomNum+'') - $(".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 = ''+this.houseRoomNum+''; +// } +// $("#titleList").append(''+ +// ''+houseRoomNum+'') +// $(".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: '
\