核心提示:window用于设置小程序状态栏、导航条、标题、窗口背景色。 属性 类型 默认值 描述 navigationBarBackgroundColor HexColor 000000 ...
window
用于设置小程序状态栏、导航条、标题、窗口背景色。
属性 | 类型 | 默认值 | 描述 |
---|---|---|---|
navigationBarBackgroundColor | HexColor | 000000 | 导航栏背景颜色 |
navigationBarTextStyle | string | white | 导航栏标题颜色 |
navigationBarTitleText | string | 导航栏标题文字内容 | |
backgroundColor | HexColor | 窗口的背景颜色 | |
backgroundTextStyle | string | dark | 下拉背景字体、lading图的样式,仅支持dark/light |
enablePullDownRefresh | Boolean | false | 是否开启下拉刷新 |
如app.json:
"window":{ "backgroundTextStyle": "light", "navigationBarBackgroundColor": "#2A292E", "navigationBarTitleText": "微信(13)", "navigationBarTextStyle": "white" },

注意:导航条右边的三个点(分享)是不能够去掉的 ,微信的自带功能