diff --git a/fangija-zsyf/views/evaluate/evaluateReport.html b/fangija-zsyf/views/evaluate/evaluateReport.html index bfd5617..4bd9d15 100644 --- a/fangija-zsyf/views/evaluate/evaluateReport.html +++ b/fangija-zsyf/views/evaluate/evaluateReport.html @@ -335,7 +335,6 @@ function addManagement(id, houseStatus, liveStatus){ $.toast(response.data.data); plus.webview.getWebviewById('views/house/houseManageList.html').reload(); plus.webview.getWebviewById('views/user/userInfo.html').reload(); - plus.webview.getWebviewById('views/house/houseList.html').reload(); }else{ $.toast(response.data.message); } diff --git a/fangija-zsyf/views/house/detail.html b/fangija-zsyf/views/house/detail.html index 15563a9..756a6ae 100644 --- a/fangija-zsyf/views/house/detail.html +++ b/fangija-zsyf/views/house/detail.html @@ -94,7 +94,7 @@ 出售分析 --> -
+
出租管理
@@ -109,6 +109,39 @@
+
+
+
+
    +
  • +
    +
    目前状态
    +
    出租
    +
    +
  • +
  • +
    +
    出租日期
    +
    {{rentTime}}
    +
    +
  • +
  • +
    +
    每期租金
    +
    {{rentPrice}}
    +
    +
  • +
  • +
    +
    下次收租
    +
    {{nextRent}}
    +
    +
  • +
+
+
+
+
@@ -297,7 +330,7 @@ $.config = {router: false} diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index 3beeede..33acfc3 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -243,7 +243,7 @@
{{nearDist.sname}}
-
{{nearDist.avgPrice}}元/㎡
+
{{nearDist.avgPrice==0?"暂无":nearDist.avgPrice+"元/㎡"}}
diff --git a/fangija-zsyf/views/house/houseList.html b/fangija-zsyf/views/house/houseList.html index 03789d7..3cd3c3f 100644 --- a/fangija-zsyf/views/house/houseList.html +++ b/fangija-zsyf/views/house/houseList.html @@ -325,7 +325,7 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq } html += '
  • '; html += "
    "; - html += "
    "+result.name+" "+tempTotalPrice+"万"; + html += "
    "+tempTotalPrice+"万"; if(result.liveStatus!=null && result.liveStatus.length>0){ html += ""+result.liveStatus+"
    "; }else{ diff --git a/fangija-zsyf/views/house/regions.html b/fangija-zsyf/views/house/regions.html index 054e22c..29712a7 100644 --- a/fangija-zsyf/views/house/regions.html +++ b/fangija-zsyf/views/house/regions.html @@ -19,13 +19,13 @@
    -
    +

    {{city}}各区县涨跌排行

    -
    +
    @@ -69,8 +69,14 @@
    -
    + +
    @@ -112,7 +118,6 @@ $.config = {router: false} var city = self.city regionsInfoVue.$data.city = city; loadRegionInfo(city); - } //loadRegionInfo("上海"); @@ -123,14 +128,19 @@ $.config = {router: false} } }).then(function (response) { var msg = response.data.data; - if(msg){ - for(var i in msg){ - var da = msg[i] - da.oneMonthUpDownRange = (da.oneMonthUpDownRange*100).toFixed(2) + if(response.data.status){ + if(msg!=null && msg.length>0){ + for(var i in msg){ + var da = msg[i] + da.oneMonthUpDownRange = (da.oneMonthUpDownRange*100).toFixed(2) + } + regionsInfoVue.$data.regionInfos = msg; + }else{ + //控制显示无数据效果 + $('#hasDataDiv').hide(); + $('#noDataDiv').show(); } - regionsInfoVue.$data.regionInfos = msg; } - }) .catch(function (error) { console.log(error); diff --git a/fangija-zsyf/views/rent/rentManager.html b/fangija-zsyf/views/rent/rentManager.html index 2599ff8..a8a0725 100644 --- a/fangija-zsyf/views/rent/rentManager.html +++ b/fangija-zsyf/views/rent/rentManager.html @@ -25,7 +25,7 @@
    -

    出租管理

    @@ -126,33 +126,42 @@ $.config = {router: false} document.addEventListener('plusready', onPlusReady, false); function onPlusReady() { var self = plus.webview.currentWebview(); - id = self.id + 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); + if(houseInfo.rent==0){ + edit.rent = ""; + }else{ + edit.rent = houseInfo.rent; + } + edit.cycle = response.data.data.cycle; + }else{ + edit.cycle = "1 月 /次"; + } + /* 选择-起租日期 */ $("#input_time01").datetimePicker({ toolbarTemplate: '
    \ @@ -202,7 +211,6 @@ function onPlusReady() { console.log(error) }); - //var id="165878889770385408" /* 编辑状态-确定 */ $(document).on('click','#confirm_btn', function () { @@ -281,6 +289,7 @@ function onPlusReady() { } axios.post("/rest/rent/changeStatus",d).then(function(response){ + plus.webview.getWebviewById('/views/house/detail.html').reload(); back(),plus.nativeUI.closeWaiting(); }).catch(function(error){ console.log(error) diff --git a/fangija-zsyf/views/user/codeSms.html b/fangija-zsyf/views/user/codeSms.html index 3516c1e..6bcba36 100644 --- a/fangija-zsyf/views/user/codeSms.html +++ b/fangija-zsyf/views/user/codeSms.html @@ -119,6 +119,18 @@ $(".check").on("click", function () { function openView() { clicked(BASE_PATH + '/user/agreement',true) } + +var originalHeight=document.documentElement.clientHeight || document.body.clientHeight; +window.onresize=function(){ + //软键盘弹起与隐藏 都会引起窗口的高度发生变化 + var resizeHeight=document.documentElement.clientHeight || document.body.clientHeight; + if(resizeHeight*1