# showBottomBar
通知 App 显示或隐藏底部导航栏。
# 调用方式
showBottomBar(params)
1
返回 Promise,使用 then/catch 或 await 处理结果。
# 请求参数
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| params | Object | Y | — | 底部导航栏配置 |
| params.showBottomBar | Number | Y | — | 1 显示,0 隐藏 |
# 接口调用示例
this.$bridge.showBottomBar({ showBottomBar: 1 })
.then(res => {
console.log(res)
})
.catch(error => {
console.error(error)
})
1
2
3
4
5
6
7
2
3
4
5
6
7
# 返回参数
返回 Promise,成功结果尝试按 JSON 解析;字段由原生端决定,失败时进入 catch。