From 75b22bfa6ba7d68e8e6a216395c53d5e0a20d49b Mon Sep 17 00:00:00 2001 From: gaojuan Date: Mon, 7 May 2018 14:02:22 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E6=97=A0=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/config.js | 4 ++-- fangija-zsyf/views/house/regions.html | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/fangija-zsyf/config.js b/fangija-zsyf/config.js index 7d545f7..49f7e75 100644 --- a/fangija-zsyf/config.js +++ b/fangija-zsyf/config.js @@ -1,8 +1,8 @@ /**服务端地址**/ //var BASE_PATH = "http://youfang.fangjia.com"; //var BASE_PATH = "http://192.168.10.128:8084"; -var BASE_PATH = "http://192.168.10.47:8086"; -//var BASE_PATH = "http://192.168.10.53:8084"; +//var BASE_PATH = "http://192.168.10.47:8086"; +var BASE_PATH = "http://192.168.10.53:8084"; //var BASE_PATH = "http://192.168.10.161:8084"; //var BASE_PATH = "http://192.168.10.170:8084"; //var BASE_PATH = "http://192.168.10.171:8084"; diff --git a/fangija-zsyf/views/house/regions.html b/fangija-zsyf/views/house/regions.html index effcbd7..f2609d2 100644 --- a/fangija-zsyf/views/house/regions.html +++ b/fangija-zsyf/views/house/regions.html @@ -64,8 +64,10 @@
{{index+1}}
{{info.region}}
{{info.avgPrice}}元/㎡
-
{{info.oneMonthUpDownRange}}%
-
{{info.oneMonthUpDownRange}}%
+ +
{{info.oneMonthUpDownRange}}%
+
{{info.oneMonthUpDownRange}}%
+
暂无
@@ -137,7 +139,11 @@ $.config = {router: false} if(msg!=null && msg.length>0){ for(var i in msg){ var da = msg[i] - da.oneMonthUpDownRange = (da.oneMonthUpDownRange*100).toFixed(2) + if(da.oneMonthUpDownRange){ + da.oneMonthUpDownRange = (da.oneMonthUpDownRange*100).toFixed(2) + } + + } regionsInfoVue.$data.regionInfos = msg; }else{ From 55414c0b9462f2c8fc99fd77f3f329b5d82de02b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Mon, 7 May 2018 14:34:40 +0800 Subject: [PATCH 2/3] add --- fangija-zsyf/main.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html index f85cbe4..df12e7a 100644 --- a/fangija-zsyf/main.html +++ b/fangija-zsyf/main.html @@ -184,7 +184,10 @@ if (data.url != null) { localStorage.setItem("startPageClickUrl", data.url); } - localStorage.setItem("guidePageUrls",JSON.stringify(data.guideImgs)); + if (data.guideImgs != null) { + localStorage.setItem("guidePageUrls",JSON.stringify(data.guideImgs)); + } + //存入localStorage Boolean类型变成String //加载菜单信息,控制是否显示贷款菜单 localStorage.setItem("showLoanMenu", data.showLoanMenu); From 09108f7b678b7bf359cf0699f6f3c4d1a1ad88db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Mon, 7 May 2018 15:07:39 +0800 Subject: [PATCH 3/3] fix bug --- fangija-zsyf/start.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fangija-zsyf/start.html b/fangija-zsyf/start.html index fb8ab63..3f637bd 100644 --- a/fangija-zsyf/start.html +++ b/fangija-zsyf/start.html @@ -76,7 +76,7 @@ new Vue({ methods: { skip: function() { isRun = true; - if (localStorage.getItem("yf_guide_page_status") == null && JSON.parse(localStorage.getItem("guidePageUrls")).length > 0) { + if (localStorage.getItem("yf_guide_page_status") == null && localStorage.getItem("guidePageUrls") != null && JSON.parse(localStorage.getItem("guidePageUrls")).length > 0) { $(".swiper-container").removeClass("dn"); $(".swiper-container").swiper(); localStorage.setItem("yf_guide_page_status", 1)