系统自动出现网络异常页面隐藏返回刷新按钮,只有程序控制网络异常才会出现
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
<div class="content-block">
|
<div class="content-block">
|
||||||
<p>
|
<p>
|
||||||
<a onclick="plus.runtime.restart()" class="button button-big button-round theme">重启应用</a>
|
<a onclick="plus.runtime.restart()" class="button button-big button-round theme">重启应用</a>
|
||||||
<a onclick="again()" class="button button-big button-round theme">返回刷新</a>
|
<a onclick="again()" class="button button-big button-round theme" id="bakBtn">返回刷新</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -50,8 +50,11 @@
|
|||||||
document.addEventListener('plusready', onPlusReady, false);
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
function onPlusReady() {
|
function onPlusReady() {
|
||||||
var self = plus.webview.currentWebview();
|
var self = plus.webview.currentWebview();
|
||||||
flag = self.flag;
|
flag = self.flag;
|
||||||
plus.nativeUI.closeWaiting();
|
if(flag == null) {
|
||||||
|
document.getElementById("bakBtn").setAttribute("style", "display: none;")
|
||||||
|
}
|
||||||
|
plus.nativeUI.closeWaiting();
|
||||||
}
|
}
|
||||||
|
|
||||||
function again(){
|
function again(){
|
||||||
|
|||||||
Reference in New Issue
Block a user