【小程序】小程序中设置 tabBar

小程序中 tabBar 的设置,tabBar 就是底部导航栏,在app.json中配置。
list 为数组至少两项。tab栏的 position 为 top 时间,不显示图标。

"tabBar": { 
  "color": "#a9b7b7", 
  "selectedColor": "#11cd6e", 
  "borderStyle":"black",
 "backgroundColor": "#ffffff", 
  "list": [{ 
    "selectedIconPath": "images/111.png", 
    "iconPath": "images/11.png", 
    "pagePath": "pages/index/index", 
    "text": "首页" 
  }, { 
    "selectedIconPath": "images/221.png", 
    "iconPath": "images/22.png", 
    "pagePath": "pages/logs/logs", 
    "text": "日志" 
  }] 
}

猜你喜欢

转载自www.cnblogs.com/xiangbei400G/p/10110138.html