南蛮
南蛮
  • 发布:2018-09-12 21:02
  • 更新:2018-09-12 21:02
  • 阅读:985

双webview实现tab bar选项卡,子webview在设置了titleNView后,覆盖了tab bar,怎么办?

分类:MUI
mui
    mui.plusReady(function() {  
                var self = plus.webview.currentWebview();  
                for(var i = 0; i < 4; i++) {  
                    console.log("test1");  
                    //创建webview子页  
                    var sub = null;  
                    if(i == 0) {  
                        sub = plus.webview.create(  
                            subpages[i],  
                            subpages[i],  
                            {            
                                'titleNView': {  
                                    'backgroundColor': '#f7f7f7', //导航栏背景色  
                                    'titleText': '透明渐变(native模式)', //导航栏标题  
                                    'titleColor': '#000000', //文字颜色  
                                    'z-index': '-1',  
                                    type: 'transparent', //透明渐变样式  
                                    splitLine: { //底部分割线  
                                        color: '#cccccc'  
                                    }  
                                 }  
                            });  

                            console.log("test" + i);  

                    } else {  
                        sub = plus.webview.create(  
                            subpages[i],  
                            subpages[i],  
                            {  
                                top: '0px',  
                                bottom: '50px'  
                            }  
                        );  
                    }  

                    if(i != Index) {  
                        sub.hide();  
                    }  

                    self.append(sub);  
                }  
            });

然后底部tab bar所在的页面就完全没了。
如题:

2018-09-12 21:02 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复