微信小程序系列——正确使用tabBar

注意事项:

1. list中,第一条是主页,不然显示不了tabBar;

2. list中至少有2条,最多有5条;

3. 默认颜色用“color”,被选中的颜色用“selectedColor”

"tabBar": {
    "selectedColor": "#42B983",
    "list": [{
      "pagePath": "pages/search/search",
      "text": "查询",
      "iconPath": "images/search.png",
      "selectedIconPath": "images/search-active.png"
    },
    {
      "pagePath": "pages/base/base",
      "text": "个人",
      "iconPath": "images/companion.png",
      "selectedIconPath": "images/companion-active.png"
    }]
  }

体验小程序

      

更多内容,请关注公众号:程序员高手之路

在公众号回复:小程序资源   即可免费获取以下微信小程序视频教程!

发布了131 篇原创文章 · 获赞 1663 · 访问量 56万+

猜你喜欢

转载自blog.csdn.net/qq_26230421/article/details/105265429