微信登录

app.json - tabBar - 底部栏

作用:分页面

准备的东西:

1、想好中文名字、英文名字
2、未点击的图片,建议尺寸为 81px 81px
3、点击的图片,建议尺寸为 81px
81px
4、pages下新建一个page

上面加上英文逗号分隔

  1. app.js
  1. {
  2. "pages": [
  3. "pages/index/index", //最先显示的页排第一
  4. ],
  5. "tabBar": {
  6. "selectedColor": "#1296db",
  7. "list": [{
  8. "pagePath": "pages/index/index",
  9. "text": "首页",
  10. "iconPath": "images/ico-home.png",
  11. "selectedIconPath": "images/ico-home-d.png"
  12. },{
  13. "pagePath": "pages/setting/setting",
  14. "text": "设置",
  15. "iconPath": "images/ico-setting.png",
  16. "selectedIconPath": "images/ico-setting-d.png"
  17. },{
  18. "pagePath": "pages/help/help",
  19. "text": "帮助",
  20. "iconPath": "images/ico-help.png",
  21. "selectedIconPath": "images/ico-help-d.png"
  22. }]
  23. }
  24. }
app.json - tabBar - 底部栏