文章目录
1、window navigationBarTitleText(全局标题)
- 预览
- app.json
"window": {
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#abc",
"navigationBarTitleText": "小程序全局标题"
},
2、window navigationBarBackgroundColor(全局标题背景)
- 预览
- app.json
"window": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "小程序全局标题",
"navigationBarBackgroundColor": "#FF0"
},
3、window navigationBarTextStyle(全局标题字体颜色)
- 预览
- app.json
"window": {
"navigationBarTitleText": "小程序全局标题",
"navigationBarBackgroundColor": "#000",
"navigationBarTextStyle": "white"
},
4、开启全局下拉并设置背景颜色
- 预览
- app.json(后两句是开启下拉并设置颜色)
"window": {
"navigationBarTitleText": "小程序全局标题",
"navigationBarBackgroundColor": "#000",
"navigationBarTextStyle": "white",
"backgroundColor": "#ccc",
"enablePullDownRefresh": true
},
5、页面级配置文件
属性和app.json一样,但是要注意区别:页面级的并没有在window下