修复苹果bug
This commit is contained in:
@@ -134,10 +134,11 @@
|
||||
var self = plus.webview.currentWebview();
|
||||
for (var i = 0; i < 4; i++) {
|
||||
var temp = {};
|
||||
var sub = plus.webview.create(subpages[i], subpages[i], subpage_style);
|
||||
if (i > 0) {
|
||||
sub.hide();
|
||||
/*var sub = plus.webview.create(subpages[i], subpages[i], subpage_style);
|
||||
sub.hide();*/
|
||||
}else{
|
||||
var sub = plus.webview.create(subpages[i], subpages[i], subpage_style);
|
||||
temp[subpages[i]] = "true";
|
||||
mui.extend(aniShow,temp);
|
||||
}
|
||||
@@ -158,6 +159,9 @@
|
||||
//显示目标选项卡
|
||||
//若为iOS平台或非首次显示,则直接显示
|
||||
if(mui.os.ios||aniShow[targetTab]){
|
||||
if(plus.webview.getWebviewById(targetTab)==null){
|
||||
plus.webview.create(targetTab, targetTab, subpage_style)
|
||||
}
|
||||
plus.webview.show(targetTab);
|
||||
}else{
|
||||
//否则,使用fade-in动画,且保存变量
|
||||
|
||||
Reference in New Issue
Block a user