微信小程序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":"我"
}
]
},
本文来源:https://www.yuntue.com/post/71104.html | 云服务器网,转载请注明出处!