From 40aca592226ab7b13403b504af3421607fa0150b Mon Sep 17 00:00:00 2001 From: raoyanhui Date: Fri, 13 Apr 2018 20:17:40 +0800 Subject: [PATCH 1/2] =?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 2/2] 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 月 /次"; } /* 选择-起租日期 */