微信小程序底部导航栏

微信小程序tabBar

"borderStyle": "black"  边框颜色,默认为灰色

"color": "#FF62627A",默认未选中字体颜色

"selectedColor": "#FF4B8DFF",选中字体颜色

"selectedIconPath": "images/home/jiankong_h.png",选中图片路径

"iconPath": "images/home/jiankong_n.png",默认未选中图片

"pagePath": "pages/home/vehControl/vehControl",页面路径,和pages里面保持一致

"text": "item1"文本

进入tabBar两种方法

1:tabBar第一个页面同样也是启动后的第一个页面

如下:

微信小程序tabBar

2:使用路由器跳转进入

2.1:关闭所有页面,打开到应用内的某个页面

微信小程序tabBar

2.2:跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面

微信小程序tabBar

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2021-12-24
猜你喜欢
  • 2021-10-16
  • 2021-11-17
  • 2022-12-23
  • 2021-07-21
  • 2021-08-10
  • 2022-02-25
  • 2022-12-23
相关资源
相似解决方案