伊卡洛斯
伊卡洛斯
  • 发布:2018-08-12 13:04
  • 更新:2018-11-14 23:09
  • 阅读:1491

手机状态栏颜色 pages.style 中设置没有用

分类:uni-app

我在 globalStyle.navigationBarTextStyle 中设置了 white,然后在 pages.style.navigationBarTextStyle 中设置 black,标题颜色改变了,可是状态栏的颜色没有改变。
运行环境:
系统版本:Android 8.0

{
"pages": [ //pages数组中第一项表示应用启动页,
{
"path": "pages/login/login",
"style": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "登录",
"navigationBarBackgroundColor": "#f6f6f6",
"backgroundColor": "#f6f6f6"
}
},
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "uni-app"
}
}
],
"globalStyle": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "移动工单",
"navigationBarBackgroundColor": "#3e9ce4",
"backgroundColor": "#3e9ce4"
}
}

联系方式
QQ:1126993145
电话:13577151539

2018-08-12 13:04 负责人:无 分享
已邀请:
Trust

Trust - 少说废话

上传个简单的 demo 吧,把手机的设备信息也贴一下~

手机->设置->关于手机,直接截图全点。

伊卡洛斯

伊卡洛斯 (作者)

在 globalStyle 中设置了 navigationBarTextStyle 为 white,然后在页面配置 pages.style.navigationBarTextStyle 设置 black,只有标题颜色变了,手机状态栏的颜色没有变。

Trust

Trust - 少说废话

已处理,下个版本更新,请关注更新~

当前版本: 20180810-alpha

WenYuan

WenYuan - 90IT

的确设置了没有效,文字生效背景颜色不生效!

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