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
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);
}
})
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)
//按照时间范围加载数据
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({
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);
}