From d1a8eea4dbac168cae314ded86f26870d8b37cb9 Mon Sep 17 00:00:00 2001 From: "xuhe@fangjia.com" Date: Fri, 13 Apr 2018 19:02:52 +0800 Subject: [PATCH 1/8] aa --- .../views/evaluate/evaluateReport.html | 1 - fangija-zsyf/views/house/detail.html | 78 +++++++++++++++++-- fangija-zsyf/views/rent/rentManager.html | 3 +- fangija-zsyf/views/user/codeSms.html | 12 +++ 4 files changed, 87 insertions(+), 7 deletions(-) diff --git a/fangija-zsyf/views/evaluate/evaluateReport.html b/fangija-zsyf/views/evaluate/evaluateReport.html index 4b09b02..4c4fa79 100644 --- a/fangija-zsyf/views/evaluate/evaluateReport.html +++ b/fangija-zsyf/views/evaluate/evaluateReport.html @@ -333,7 +333,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 7d4a77a..42e362d 100644 --- a/fangija-zsyf/views/house/detail.html +++ b/fangija-zsyf/views/house/detail.html @@ -94,7 +94,7 @@ 出售分析 --> -
+
出租管理
@@ -109,6 +109,38 @@
+
+
+
+
    +
  • +
    +
    目前状态
    +
    出租
    +
    +
  • +
  • +
    +
    出租日期
    +
    2018/02/01 - 2018/07/31
    +
    +
  • +
  • +
    +
    每期租金
    +
    5,000元 (1月/次)
    +
    +
  • +
  • +
    +
    下次收租
    +
    3月1日
    +
    +
  • +
+
+
+
@@ -297,7 +329,7 @@ $.config = {router: false} diff --git a/fangija-zsyf/views/rent/rentManager.html b/fangija-zsyf/views/rent/rentManager.html index 2599ff8..19ed821 100644 --- a/fangija-zsyf/views/rent/rentManager.html +++ b/fangija-zsyf/views/rent/rentManager.html @@ -126,7 +126,7 @@ $.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){ @@ -281,6 +281,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 From 6704ec980d0a765d90919b51bdbcde00ab5f8afa Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Fri, 13 Apr 2018 19:26:51 +0800 Subject: [PATCH 2/8] YOUFANG app --- fangija-zsyf/views/rent/rentManager.html | 53 +++++++++++++----------- 1 file changed, 28 insertions(+), 25 deletions(-) diff --git a/fangija-zsyf/views/rent/rentManager.html b/fangija-zsyf/views/rent/rentManager.html index 2599ff8..e1dc6e6 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.id 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: '
\ From 3dd8a3c3a88500704907100122a4baac8c7083a1 Mon Sep 17 00:00:00 2001 From: "xuhe@fangjia.com" Date: Fri, 13 Apr 2018 19:34:49 +0800 Subject: [PATCH 3/8] aa --- fangija-zsyf/views/house/detail.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/fangija-zsyf/views/house/detail.html b/fangija-zsyf/views/house/detail.html index cffcb0f..756a6ae 100644 --- a/fangija-zsyf/views/house/detail.html +++ b/fangija-zsyf/views/house/detail.html @@ -122,25 +122,26 @@
  • 出租日期
    -
    2018/02/01 - 2018/07/31
    +
    {{rentTime}}
  • 每期租金
    -
    5,000元 (1月/次)
    +
    {{rentPrice}}
  • 下次收租
    -
    3月1日
    +
    {{nextRent}}
  • +
    @@ -371,9 +372,9 @@ var baseInfo = new Vue({ minSellPrice:"", maxSellPrice:"", rentRooms:"", - rentTime : "-"; - rentPrice : "-"; - nextRent : "-"; + rentTime : "-", + rentPrice : "-", + nextRent : "-" } }) From 9d66615c939b9eb2b64827e46d684fa1608644c4 Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Fri, 13 Apr 2018 19:38:12 +0800 Subject: [PATCH 4/8] YOUFANG app --- fangija-zsyf/views/house/houseList.html | 2 +- fangija-zsyf/views/rent/rentManager.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/rent/rentManager.html b/fangija-zsyf/views/rent/rentManager.html index 8c77016..a5e9136 100644 --- a/fangija-zsyf/views/rent/rentManager.html +++ b/fangija-zsyf/views/rent/rentManager.html @@ -284,7 +284,7 @@ function onPlusReady() { } axios.post("/rest/rent/changeStatus",d).then(function(response){ - plus.webview.getWebviewById('views/house/detail.html').reload(); + plus.webview.getWebviewById('/views/house/detail.html').reload(); back(),plus.nativeUI.closeWaiting(); }).catch(function(error){ console.log(error) From ed302fb59ffb7436a1a1d9ee337fc8a1bb239cd8 Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Fri, 13 Apr 2018 19:43:43 +0800 Subject: [PATCH 5/8] YOUFANG app 1.0.3 --- fangija-zsyf/views/house/houseDetail.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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+"元/㎡"}}
    From 40aca592226ab7b13403b504af3421607fa0150b Mon Sep 17 00:00:00 2001 From: raoyanhui Date: Fri, 13 Apr 2018 20:17:40 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=90=84=E5=8C=BA?= =?UTF-8?q?=E5=8E=BF=E6=97=A0=E6=95=B0=E6=8D=AE=E6=98=BE=E7=A4=BA=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/views/house/regions.html | 30 ++++++++++++++++++--------- 1 file changed, 20 insertions(+), 10 deletions(-) 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); From 025d5eb6bc5f01596e49cd8382bb320955042e68 Mon Sep 17 00:00:00 2001 From: "xuhe@fangjia.com" Date: Sat, 14 Apr 2018 10:11:36 +0800 Subject: [PATCH 7/8] aa --- fangija-zsyf/views/rent/rentManager.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fangija-zsyf/views/rent/rentManager.html b/fangija-zsyf/views/rent/rentManager.html index a5e9136..48175dd 100644 --- a/fangija-zsyf/views/rent/rentManager.html +++ b/fangija-zsyf/views/rent/rentManager.html @@ -152,8 +152,14 @@ function onPlusReady() { edit.leaseEndDate = getNowFormatDate(houseInfo.leaseEndDate); edit.lastRentDate = getNowFormatDate(houseInfo.lastRentDate); edit.nowDay = getNowFormatDate(response.data.data.nowDay); - edit.rent = houseInfo.rent; + if(houseInfo.rent==0){ + edit.rent = ""; + }else{ + edit.rent = houseInfo.rent; + } edit.cycle = response.data.data.cycle; + }else{ + edit.cycle = "1 月 /次"; } /* 选择-起租日期 */ From e1fe37bc929b701a1a2bfb6bdc42e14dc67ddd06 Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Sat, 14 Apr 2018 10:13:21 +0800 Subject: [PATCH 8/8] YOUFANG app --- fangija-zsyf/views/rent/rentManager.html | 1 - 1 file changed, 1 deletion(-) diff --git a/fangija-zsyf/views/rent/rentManager.html b/fangija-zsyf/views/rent/rentManager.html index a5e9136..d0d4bb1 100644 --- a/fangija-zsyf/views/rent/rentManager.html +++ b/fangija-zsyf/views/rent/rentManager.html @@ -205,7 +205,6 @@ function onPlusReady() { console.log(error) }); - //var id="165878889770385408" /* 编辑状态-确定 */ $(document).on('click','#confirm_btn', function () {