官方例子 原生底部栏 切换bar 页面 页面第一次显示不了 或者就顶部显示一点点
沉浸式页面 在切换到第一个bar 在点击其他bar则显示正常 有时候切换的时候 第一个bar页会显示 闪烁后其他bar页显示正常
首页沉浸式 其他页面 设置了top
var subpage_style = {
top: 0,
bottom: 50,
bounce: 'none',
bounceBackground: '#FFFFFF',
statusbar: {
background:'#94243A'
},
backgroundColorTop: '#94243A',
},
subpages = util.options.subpages,
self = plus.webview.currentWebview(),
temp = {};
//兼容安卓上添加titleNView 和 设置沉浸式模式会遮盖子webview内容
if(mui.os.android) {
if(!plus.navigator.isImmersedStatusbar()) {
subpage_style.top += plus.navigator.getStatusbarHeight();
}else if(self.getTitleNView()) {
subpage_style.top += 40;
}
}else{
subpage_style.top += 40;
}
0 个回复