From 56ec82603b0c2707d3c0245f169f1e4e1b8a61a0 Mon Sep 17 00:00:00 2001 From: raoyanhui Date: Wed, 18 Apr 2018 14:25:18 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B4=B7=E6=AC=BE?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/js/user/myHouse.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fangija-zsyf/js/user/myHouse.js b/fangija-zsyf/js/user/myHouse.js index afc1347..0f13b8d 100644 --- a/fangija-zsyf/js/user/myHouse.js +++ b/fangija-zsyf/js/user/myHouse.js @@ -128,7 +128,12 @@ function mhAddItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, }else{ html += "其它"; } - html += '立即申请'; + //控制贷款按钮是否可以显示,便于ios版本审核 + if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){ + html += '立即申请'; + }else{ + html += ''; + } } $('#myhouse').append(html); } \ No newline at end of file From 18d901401103f2cb391a3f8387542f469958c9a2 Mon Sep 17 00:00:00 2001 From: raoyanhui Date: Wed, 18 Apr 2018 14:27:18 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B4=B7=E6=AC=BE?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/views/evaluate/evaluateReport.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fangija-zsyf/views/evaluate/evaluateReport.html b/fangija-zsyf/views/evaluate/evaluateReport.html index c7fd6f5..09d9cdd 100644 --- a/fangija-zsyf/views/evaluate/evaluateReport.html +++ b/fangija-zsyf/views/evaluate/evaluateReport.html @@ -276,9 +276,12 @@ $.config = {router: false} // evaluate_msg.msg=h.evaluateMsg if(typeof(h.imgId)!="undefined"&&h.imgId!=null&&$.trim(h.imgId)!=""){ $("#img").attr("src",BASE_PATH+"/img/"+h.imgId); - $("#img").click(function(){ - clicked('/views/loan/loanInfo.html',true,false,{},{houseId: hid, city: h.city, mobile: ""},function(){}) - }) + //控制贷款按钮是否可以显示,便于ios版本审核 + if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){ + $("#img").click(function(){ + clicked('/views/loan/loanInfo.html',true,false,{},{houseId: hid, city: h.city, mobile: ""},function(){}) + }) + } } loadingChart(h.city,h.region,h.name,2) //按照时间范围加载数据 From a315e9d135460f2e45850c168b6ce5ae59a51a2c Mon Sep 17 00:00:00 2001 From: raoyanhui Date: Wed, 18 Apr 2018 14:28:15 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B4=B7=E6=AC=BE?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/views/house/detail.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fangija-zsyf/views/house/detail.html b/fangija-zsyf/views/house/detail.html index 33ff91f..6e6341e 100644 --- a/fangija-zsyf/views/house/detail.html +++ b/fangija-zsyf/views/house/detail.html @@ -102,7 +102,7 @@ 我要置换 --> -
+ @@ -333,7 +333,12 @@ var oriName; function onPlusReady(){ var self = plus.webview.currentWebview(); houseId = self.houseId; //type为1时是我的房产 - //houseId="106777351102136320"; + //控制贷款按钮是否可以显示,便于ios版本审核 + if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){ + $('#gotoLoanApply').show(); + }else{ + $('#gotoLoanApply').hide(); + } init(); } var baseInfo = new Vue({ From a9d0436ebf79dfc0629345ca827bde390c41ae2b Mon Sep 17 00:00:00 2001 From: raoyanhui Date: Wed, 18 Apr 2018 14:28:45 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B4=B7=E6=AC=BE?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/views/house/houseList.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fangija-zsyf/views/house/houseList.html b/fangija-zsyf/views/house/houseList.html index 9905e06..9dc2545 100644 --- a/fangija-zsyf/views/house/houseList.html +++ b/fangija-zsyf/views/house/houseList.html @@ -366,7 +366,12 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq }else{ html += "其它"; } - html += '立即申请'; + //控制贷款按钮是否可以显示,便于ios版本审核 + if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){ + html += '立即申请'; + }else{ + html += ''; + } } $('.infinite-scroll-bottom .list-container').append(html); } From b43cd64d1bb903d36c9ef65c49904fb226d1b4d6 Mon Sep 17 00:00:00 2001 From: raoyanhui Date: Wed, 18 Apr 2018 14:30:35 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B4=B7=E6=AC=BE?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/main.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html index cb018ca..fc84349 100644 --- a/fangija-zsyf/main.html +++ b/fangija-zsyf/main.html @@ -1,6 +1,5 @@ - Hello MUI @@ -104,7 +103,6 @@ } }); } - // 加载菜单信息,控制是否显示贷款菜单 $.ajax({ type: "GET", @@ -113,8 +111,14 @@ async : false, success: function(data) { if(data.status){ - localStorage.setItem("showLoanMenu", data.data.showLoanMenu) + //存入localStorage Boolean类型变成String + localStorage.setItem("showLoanMenu", data.data.showLoanMenu); + }else{ + localStorage.setItem("showLoanMenu", false); } + }, + error: function(err) { + localStorage.setItem("showLoanMenu", false); } })