tabBar小程序导航
小程序是一个多tab标签应用(客户端窗口的底部或顶部有tab栏可以切换页面),可以通过Tabbar配置项指定tab栏的表现,以及tab切换时显示的对应页面。
小程序根目录下的 app.json 文件用来对微信小程序进行全局配置
在小程序配置文件里面可以设置tabBar属性:
案例:
"tabBar":{
"list":[
{
"pagePath":"pages/home/home",
"text":"首页",
"iconPath":"images/icons/home.png",
"selectedIconPath":"images/icons/home_selected.png"
},
{
"pagePath": "pages/market/market",
"text": "商城",
"iconPath": "images/icons/hyper.png",
"selectedIconPath": "images/icons/hyper_selected.png"
},
{
"pagePath": "pages/order/order",
"text":