赞
踩
uni-app官网•全局文件•pages.json页面路由https://uniapp.dcloud.net.cn/collocation/pages#tabbar
1.在pages文件夹中定义页面
2.在pages.json文件中的tabBar节点配置
- "tabBar": {
- "list": [
- {
- "pagePath": "pages/home/home",
- "iconPath": "static/icons8-首页-24.png",
- "selectedIconPath": "static/icons8-首页-24 (1).png",
- "text": "首页"
- },
- {
- "pagePath": "pages/classify/classify",
- "iconPath": "static/icons8-分类-32.png",
- "selectedIconPath": "static/icons8-分类-32 (1).png",
- "text": "分类"
- }
- ]
- }
示例:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。