# setStatusBar

设置状态栏:根据业务设置手机状态栏的背景以及字体颜色。以适应不同颜色背景的页面

# 请求参数

Prop Type Comment
colorMode Number 模式

# 参数代码示例

let params = {
  colorMode: '2'
}
1
2
3

# 接口调用示例

let params = {
  colorMode: '2'
}
this.$bridge
  .setStatusBar(params)
  .then(res => {
    this.$toast(res)
  })
  .catch(err => {
    this.$toast(err)
  })
1
2
3
4
5
6
7
8
9
10
11

# 返回参数

  • 成功时返回 N/A
Last Updated: 8/6/2021, 4:29:43 PM