"tabBar": { "color": "#dddddd", "selectedColor": "white", "backgroundColor": "#ffffff", "list":[ { "pagePath":"pages/index/index", "iconPath":"", "selectedIconPath":"", "text":"首页" }, { "pagePath": "pages/active/active", "iconPath": "", "selectedIconPath": "", "text": "活动" }, { "pagePath": "pages/my/my", "iconPath": "", "selectedIconPath": "", "text": "我的" } ] }
注意:代码是在app.js中编写
1,List里面是你的页面的数量
2,pagePath是页面的路径
3,iconpath是图标路径
4,text是标题
其余不多做解释