启动页网络异常处理

This commit is contained in:
尹吉欢
2018-04-19 18:38:17 +08:00
parent 84a2602a78
commit 94922e4cc6
3 changed files with 14 additions and 3 deletions
+12 -1
View File
@@ -117,8 +117,19 @@
localStorage.setItem("showLoanMenu", false);
}
},
error: function(err) {
error: function(XMLHttpRequest, textStatus, errorThrown) {
localStorage.setItem("showLoanMenu", false);
if(errorThrown == 'abort'){
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();
}
}
}
})