要实现的效果
小程序 显示Toobar

 

 

在 下面app.json  中加下列代码

小程序 显示Toobar

 

 
"tabBar": {
"color": "#7A7E83",
"selectedColor": "#3cc51f",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "pages/index/index",
"iconPath": "pages/images/icon_API.png",
"selectedIconPath": "pages/images/icon_API_HL.png",
"text": "API"
},
{
"pagePath": "pages/logs/logs",
"iconPath": "pages/images/icon_component.png",
"selectedIconPath": "pages/images/icon_component.png",
"text": "接口"
},
{
"pagePath": "pages/my/my",
"iconPath": "pages/images/icon_component.png",
"selectedIconPath": "pages/images/icon_component.png",
"text": "组件"
}
 
]
}
 
注意  页面路由  index  这个要第一显示否则下面toobar  看不到
小程序 显示Toobar

 

小程序 显示Toobar

 

相关文章:

  • 2021-12-04
  • 2021-11-17
  • 2021-04-04
  • 2021-06-03
  • 2021-07-07
  • 2022-01-15
  • 2022-01-10
  • 2022-12-23
猜你喜欢
  • 2021-12-24
  • 2021-08-10
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案