创建页面时,会自动在pages.json中创建对应页面基础信息
配置
{"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages//tabbar页面配置{"path": "pages/index/index","style": {"navigationBarTitleText": "uni-app"}},{"path" : "pages/news/news","style" :{"navigationBarTitleText": "","enablePullDownRefresh": false}},{"path" : "pages/msg/msg","style" :{"navigationBarTitleText": "","enablePullDownRefresh": false}},{"path" : "pages/my/my","style" :{"navigationBarTitleText": "","enablePullDownRefresh": false}}],//tabBar配置"tabBar": {// 文字颜色"color":"#323232",// 选中状态的颜色"selectedColor":"#ED6384",// 设置背景色"backgroundColor":"#FFFFFF",// 设置上边线的颜色,自由black和white"borderStyle":"black",// 对应页面配置// 有多少个页面就配置多少个"list": [{"pagePath":"pages/index/index","text":"首页","iconPath":"static/tabbar/index.png",// 最后一定不要有',',否则会报错的"selectedIconPath":"static/tabbar/indexed.png"},{"pagePath":"pages/news/news","text":"动态","iconPath":"static/tabbar/news.png",// 最后一定不要有',',否则会报错的"selectedIconPath":"static/tabbar/newsed.png"}{"pagePath":"pages/msg/msg","text":"消息","iconPath":"static/tabbar/paper.png",// 最后一定不要有',',否则会报错的"selectedIconPath":"static/tabbar/papered.png"}{"pagePath":"pages/my/my","text":"我的","iconPath":"static/tabbar/home.png",// 最后一定不要有',',否则会报错的"selectedIconPath":"static/tabbar/homeed.png"}]}}
tabbar边线
