tabbar的设置
在app.json文件中添加tabbar
pagePath 页面的路径,必须是在pages中已有的路径
text 显示的文字
iconPath 未选中状态时候的图片路径
selectedIconPath 选中状态下的图片路径
"tabBar": {
"position": "bottom",
"color": "black",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "/images/3.png",
"selectedIconPath": "/images/6.png"
},
{
"pagePath": "pages/user/user",
"text": "浏览",
"iconPath": "/images/4.png",
"selectedIconPath": "/images/5.png"
}
]
}

浙公网安备 33010602011771号