配置tabBar:对若干一级页面的入口链接。
在app.json中配置tabBar属性。
配置关于和推荐电影
"tabBar": {
"list": [{
"pagePath": "pages/about/about",
"text": "关于",
"iconPath": "image/icon/ab1.png",
"selectedIconPath": "image/icon/ab2.png"
},
{
"pagePath": "pages/weekly/weekly",
"text": "每周推荐",
"iconPath": "image/icon/m1.png",
"selectedIconPath": "image/icon/m2.png"
}
],
"color": "#000000",
"selectedColor": "blue"
}
此时前面的链接就会失效
这是设置 open-type为switchTab