微信小程序--26(全局配置-1)
一、全局配置文件
1.标志
2.配置项
3.window
二、window
1.导航栏
- navigationBarTitleText
导航栏标题文字内容 - 步骤:app.json→window→navigationBarTitleText

- navigationBarBackgroundColor
导航栏背景颜色 - 步骤:app.json→window→navigationBarBackgroundColor

- navigationBarTextStyle
导航栏表一颜色 黑/白 - 步骤:app.json→window→navigationBarTextStyle

2.窗口背景
- backgroundColor
窗口背景色 - 步骤:app.json→window→backgroundColor

- backgroundTextStyle(小圆点)
下拉loading的样式 - 步骤:app.json→window→backgroundTextStyle

3.页面效果
- enablePullDownRefresh
是否全局开启下拉刷新
下拉刷新,重新加载页面 - 步骤:app.json→window→enablePullDownRefresh设置为true

- onReachBottomDistance
页面上拉触底事件时距页面底部举例
三、tabBar
1.作用
2.类型
3.注意点
- 只能2-5项
- 顶部只能显示文本
- 在pages处tabBar页面必须在前面
4.组成
- backgroundColor
tabBar的背景颜色
5.配置选项

6.练习


- 3.配置tabBar选项
app.json中新增tabBar节点
在tabBar中新增list数组
配置tab项的配置对象

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2039956.html
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!