Hide Tab Bar

微信小程序tabBar 设置和使用整理

无人久伴 提交于 2019-11-29 06:16:32
一、从配置文件中设置tabBar app.json配置文件中配置tab的项: "tabBar": { "color": "#000", "selectedColor": "#F69C21", "borderStyle": "black", "backgroundColor": "#ffffff", "list": [ { "pagePath": "pages/index/index", "text": "首页", "iconPath": "style/image/index.png", "selectedIconPath": "style/image/index1.png" }, { "pagePath": "pages/tabone/tabone", "text": "订单", "iconPath": "style/image/order.png", "selectedIconPath": "style/image/order1.png" } ] }, 更多属性说明: https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#tabBar 二、使用js代码修改tabBar 关于tabBar的目前支持的jsAPI如下: Tab Bar 名称 功能说明 wx