代码
实现步骤
- 新建一个页面
me
- 使用 空白页面模版(组合式)
- 勾选 在pages.json中注册
修改script使用lang="uts"
在pages.json中注册的效果
- 添加的底部导航栏
添加的位置与效果{ "tabBar": { "color": "#7A7E83", "selectedColor": "#2979ff", "backgroundColor": "#FFFFFF", "borderStyle": "black", "list": [ { "pagePath": "pages/index/index", "text": "首页", "iconPath": "/static/home.png", "selectedIconPath": "/static/home-fill.png" }, { "pagePath": "pages/me/me", "text": "我的", "iconPath": "/static/user.png", "selectedIconPath": "/static/user-fill.png" } ] } }
- 不同
tabBar点击的效果






