底部导航的设置
app.json里设置导航
"tabBar": { "color": "#999", "selectedColor": "#51c3dd", "height": "99rpx", "borderStyle": "white", "backgroundColor": "#fff", "list": [ { "pagePath": "pages/index/index", "text": "首页", "iconPath": "./images/index.png", "selectedIconPath": "./images/index_active.png" }, { "pagePath": "pages/mine/mine", "text": "我的", "iconPath": "./images/mine.png", "selectedIconPath": "./images/mine_active.png" } ] }
底部导航的icon放到images里 ./images/aaa.png . 放到服务器上会报错
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步