Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1

This commit is contained in:
尹吉欢
2018-04-18 14:52:55 +08:00
5 changed files with 32 additions and 10 deletions
+6 -1
View File
@@ -128,7 +128,12 @@ function mhAddItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap,
}else{
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>其它</a>";
}
html += '<a class="button theme add add01 add01a" href="#" onclick="gotoLoanApply(\''+result.id+'\', \''+result.city+'\')">立即申请</a></li>';
//控制贷款按钮是否可以显示,便于ios版本审核
if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
html += '<a class="button theme add add01 add01a" href="#" onclick="gotoLoanApply(\''+result.id+'\', \''+result.city+'\')">立即申请</a></li>';
}else{
html += '</li>';
}
}
$('#myhouse').append(html);
}
+7 -3
View File
@@ -1,6 +1,5 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello MUI</title>
@@ -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);
}
})
@@ -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)
//按照时间范围加载数据
+7 -2
View File
@@ -102,7 +102,7 @@
<i class="icon icon-evaluation03"></i>
<span>我要置换</span>
</div>-->
<div onclick="gotoLoanApply()">
<div onclick="gotoLoanApply()" id="gotoLoanApply" style="display: none;">
<i class="icon icon-personal03"></i>
<span>我要贷款</span>
</div>
@@ -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({
+6 -1
View File
@@ -366,7 +366,12 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq
}else{
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>其它</a>";
}
html += '<a class="button theme add add01 add01a" href="#" onclick="gotoLoanApply(\''+result.id+'\', \''+result.city+'\')">立即申请</a></li>';
//控制贷款按钮是否可以显示,便于ios版本审核
if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
html += '<a class="button theme add add01 add01a" href="#" onclick="gotoLoanApply(\''+result.id+'\', \''+result.city+'\')">立即申请</a></li>';
}else{
html += '</li>';
}
}
$('.infinite-scroll-bottom .list-container').append(html);
}