🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 一、底部菜单 ``` "tabBar":{ "color":"#007AFF", "selectedColor":"#4CD964", "list":[ { "iconPath":"static/logo.png", "selectedIconPath":"static/logo.png", "text":"首页", "pagePath":"pages/index/index" }, { "iconPath":"static/logo.png", "selectedIconPath":"static/logo.png", "text":"动态中心", "pagePath":"pages/feeds/feeds" }, { "iconPath":"static/logo.png", "selectedIconPath":"static/logo.png", "text":"我的", "pagePath":"pages/me/me" } ] } ``` ## 二、全部代码 ``` { "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/index/index", "style": { "navigationBarTitleText": "原克技术" } } ,{ "path" : "pages/feeds/feeds", "style" : {} } ,{ "path" : "pages/me/me", "style" : {} } ], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "uni-app", "navigationBarBackgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8" }, "tabBar":{ "color":"#007AFF", "selectedColor":"#4CD964", "list":[ { "iconPath":"static/logo.png", "selectedIconPath":"static/logo.png", "text":"首页", "pagePath":"pages/index/index" }, { "iconPath":"static/logo.png", "selectedIconPath":"static/logo.png", "text":"动态中心", "pagePath":"pages/feeds/feeds" }, { "iconPath":"static/logo.png", "selectedIconPath":"static/logo.png", "text":"我的", "pagePath":"pages/me/me" } ] } } ```