张三又惹事了
张三又惹事了
  • 发布:2019-02-26 14:32
  • 更新:2019-12-11 15:43
  • 阅读:1744

hbuilder生成的示例,mui带底部选项卡,默认是一直显示的。如果添加一个登录页(初始页),怎样让初始页不显示底部选项卡

分类:MUI

plus": {
"launchwebview": {
"bottom": "0px",
"background": "#fff",
"subNViews": [
{
"id": "tabBar",
"styles": {
"bottom": "0px",
"left": "0",
"height": "50px",
"width": "100%",
"backgroundColor": "#fff"
},
"tags": [
{
"tag": "font",
"id": "indexIcon",
"text": "\ue500",
"position": {
"top": "4px",
"left": "0",
"width": "25%",
"height": "24px"
},
"textStyles": {
"fontSrc": "_www/fonts/mui.ttf",
"align": "center",
"size": "24px"
}
}, {
"tag": "font",
"id": "indexText",
"text": "首页",
"position": {
"top": "23px",
"left": "0",
"width": "25%",
"height": "24px"
},
"textStyles": {
"align": "center",
"size": "10px"
}
},{
"tag": "font",
"id": "newsIcon",
"text": "\ue201",
"position": {
"top": "4px",
"left": "20%",
"width": "25%",
"height": "24px"
},
"textStyles": {
"fontSrc": "_www/fonts/mui.ttf",
"align": "center",
"size": "24px"
}
}, {
"tag": "font",
"id": "newsText",
"text": "消息",
"position": {
"top": "23px",
"left": "20%",
"width": "25%",
"height": "24px"
},
"textStyles": {
"align": "center",
"size": "10px"
}
},{
"tag": "font",
"id": "contactIcon",
"text": "\ue100",
"position": {
"top": "4px",
"left": "55%",
"width": "25%",
"height": "24px"
},
"textStyles": {
"fontSrc": "_www/fonts/mui.ttf",
"align": "center",
"size": "24px"
}
}, {
"tag": "font",
"id": "contactText",
"text": "通讯录",
"position": {
"top": "24px",
"left": "55%",
"width": "25%",
"height": "24px"
},
"textStyles": {
"align": "center",
"size": "10px"
}
},{
"tag": "font",
"id": "newwindowIcon",
"text": "\ue6c9",
"position": {
"top": "4px",
"left": "75%",
"width": "25%",
"height": "24px"
},
"textStyles": {
"fontSrc": "_www/fonts/iconfont.ttf",
"align": "center",
"size": "24px"
}
}, {
"tag": "font",
"id": "newwindowText",
"text": "新窗口",
"position": {
"top": "24px",
"left": "75%",
"width": "25%",
"height": "24px"
},
"textStyles": {
"align": "center",
"size": "10px"
}
},
{
"tag": "rect",
"id": "tabBorder",
"position": {
"top": "0",
"left": "0",
"width": "100%",
"height": "1px"
},
"rectStyles": {
"color": "#ccc"
}
}
]
}
]
}

2019-02-26 14:32 负责人:无 分享
已邀请:
lydreamer

lydreamer

这么久没人回答尼……
这个获取底部导航栏的viewobj对象,然后执行hide()操作就行。
获取方式,示例代码中已经给了

var nview = plus.nativeObj.View.getViewById('tabBar');  
nview.hide();  
// 中间大图标隐藏  
var icon= plus.nativeObj.View.getViewById('icon');  
icon.hide();

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