配置
"tabBar": { "list": [{ "pagePath": "pages/index/index", "text": "首页", "iconPath": "res/images/index.png", "selectedIconPath": "res/images/index.png" },{ "pagePath": "pages/menu/menu", "text": "菜单", "iconPath": "res/images/menu.png", "selectedIconPath": "res/images/menu.png" },{ "pagePath": "pages/help/help", "text": "帮助", "iconPath": "res/images/help.png", "selectedIconPath": "res/images/help.png" }] }
由于默认项目没有存放资源的目录,就自己建了一个目录。
还有一点需要注意的是,tabBar只会显示在list中配置的页面上。
一开始我没有将首页配置进去,就没有出来效果