当前位置:   article > 正文

微信小程序设置tabBar选中颜色和图标_小程序底部tab 可以配置icon 么

小程序底部tab 可以配置icon 么
{
  "pages":[
    "pages/index/index",
    "pages/logs/logs"
  ],
  "window":{
    "backgroundTextStyle":"light",
    "navigationBarBackgroundColor": "#000",
    "navigationBarTitleText": "首页",
    "navigationBarTextStyle":"white"//只能black和white
  },

  "tabBar": {
    "list": [
      {
        "pagePath": "pages/index/index",//跳转路径
        "selectedIconPath": "img/home2.png",//选中时候展示icon
        "iconPath": "img/home1.png",//默认展示icon
        "text": "首页"
      },
      {
        "pagePath": "pages/logs/logs",
        "selectedIconPath": "img/part2.png",
        "iconPath": "img/part1.png",
        "text": "分类"
      },

      {
        "pagePath": "pages/logs/logs",
        "selectedIconPath": "img/mine2.png",
        "iconPath": "img/mine1.png",
        "text": "我的"
      }
    ]
  },
  "style": "v2",
  "sitemapLocation": "sitemap.json"
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38

传送门:微信小程序开发文档

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/89873
推荐阅读