合并启动入口的接口,改为一个
This commit is contained in:
+15
-29
@@ -104,34 +104,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// 加载菜单信息,控制是否显示贷款菜单
|
|
||||||
$.ajax({
|
|
||||||
type: "GET",
|
|
||||||
url:BASE_PATH+"/rest/version/info",
|
|
||||||
dataType:'json',
|
|
||||||
async : false,
|
|
||||||
success: function(data) {
|
|
||||||
if(data.status){
|
|
||||||
//存入localStorage Boolean类型变成String
|
|
||||||
localStorage.setItem("showLoanMenu", data.data.showLoanMenu);
|
|
||||||
}else{
|
|
||||||
localStorage.setItem("showLoanMenu", false);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
|
||||||
localStorage.setItem("showLoanMenu", false);
|
|
||||||
if(plus.webview.getWebviewById('error.html')==null){
|
|
||||||
clicked('error.html',true,false,{},{},function(){
|
|
||||||
window.location.reload();
|
|
||||||
})
|
|
||||||
}else{
|
|
||||||
$(".loadingBg").hide();
|
|
||||||
plus.nativeUI.closeWaiting();
|
|
||||||
plus.webview.getWebviewById("error.html").show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
var self = plus.webview.currentWebview();
|
var self = plus.webview.currentWebview();
|
||||||
for (var i = 0; i < 4; i++) {
|
for (var i = 0; i < 4; i++) {
|
||||||
var temp = {};
|
var temp = {};
|
||||||
@@ -201,10 +173,24 @@
|
|||||||
if (data.url != null) {
|
if (data.url != null) {
|
||||||
localStorage.setItem("startPageClickUrl", data.url);
|
localStorage.setItem("startPageClickUrl", data.url);
|
||||||
}
|
}
|
||||||
|
//存入localStorage Boolean类型变成String
|
||||||
|
//加载菜单信息,控制是否显示贷款菜单
|
||||||
|
localStorage.setItem("showLoanMenu", data.showLoanMenu);
|
||||||
|
} else {
|
||||||
|
localStorage.setItem("showLoanMenu", false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||||
|
localStorage.setItem("showLoanMenu", false);
|
||||||
|
if(plus.webview.getWebviewById('error.html')==null){
|
||||||
|
clicked('error.html',true,false,{},{},function(){
|
||||||
|
window.location.reload();
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
$(".loadingBg").hide();
|
||||||
|
plus.nativeUI.closeWaiting();
|
||||||
|
plus.webview.getWebviewById("error.html").show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user