时间:2022-12-06 01:51
微信小程序tabbar页面是拥有底部导航栏的页面,实现方法:
在app.json中添加以下代码:
"tabBar":{"list":[
{
"pagePath":"pages/home/home",
"iconPath":"images/tabbar/component.png",
"selectedIconPath":"images/tabbar/component_cur.png",
"text":"首页"
},
{
"pagePath":"pages/register/register",
"iconPath":"images/tabbar/plugin.png",
"selectedIconPath":"images/tabbar/plugin_cur.png",
"text":"发布"
},
{
"pagePath":"pages/register/register",
"iconPath":"images/tabbar/about.png",
"selectedIconPath":"images/tabbar/about_cur.png",
"text":"我"
}
]
},