Commit 27b5d1cc authored by hbcui1984's avatar hbcui1984

解决iOS平台每个页面均需设置statusBarBackground的bug

parent ca9a75b4
...@@ -1522,9 +1522,8 @@ var mui = (function(document, undefined) { ...@@ -1522,9 +1522,8 @@ var mui = (function(document, undefined) {
}, 300); }, 300);
} }
//设置ios顶部状态栏颜色; //设置ios顶部状态栏颜色;
if ($.os.ios) { if ($.os.ios&&$.options.statusBarBackground) {
var statusBarBackground = $.options.statusBarBackground ? $.options.statusBarBackground : '#f7f7f7'; plus.navigator.setStatusBarBackground($.options.statusBarBackground);
plus.navigator.setStatusBarBackground(statusBarBackground);
} }
}); });
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
var showMenu = false; var showMenu = false;
mui.init({ mui.init({
swipeBack: false, swipeBack: false,
statusBarBackground:'#f7f7f7',
subpages: [{ subpages: [{
id: 'list', id: 'list',
url: 'list.html', url: 'list.html',
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment