页面跳转
// 窗口的底部或顶部有 tab 栏可以切换页面,可以通过 tabBar 配置项指定
"tabBar": {
// tab 上的文字默认颜色,仅支持十六进制颜色
"color": "#000",
// tab 上的文字选中时的颜色,仅支持十六进制颜色
"selectedColor":"#f0f",
// tabBar 的位置,仅支持 bottom / top
"position":"bottom",
// tab 的列表,详见 list 属性说明,最少 2 个、最多 5 个 tab
"list": [
{
// 页面路径,必须在 pages 中先定义
"pagePath":"pages/index/index",
// tab 上按钮文字
"text":"主页",
// 图片路径,icon 大小限制为 40kb,建议尺寸为 81px * 81px,不支持网络图片。当 position 为 top 时,不显示 icon。
"iconPath":"/static/images/tabs/tab-home.png",
// 选中时的图片路径,icon 大小限制为 40kb,建议尺寸为 81px * 81px,不支持网络图片。当 position 为 top 时,不显示 icon。
"selectedIconPath":"/static/images/tabs/tab-home-current.png"
},
{
"pagePath":"pages/video/video",
"text":"视频",
"iconPath":"/static/images/tabs/select.png",
"selectedIconPath":"/static/images/tabs/selected.png"
},
{
"pagePath":"pages/personal/personal",
"text":"个人中心",
"iconPath":"/static/images/tabs/tab-my.png",
"selectedIconPath":"/static/images/tabs/tab-my-current.png"
}
]
}