没记错的话app.json里设置一下就好了啊。
app.json里面的pages跟tabBar添加路径就可以了
app.js
{
"tabBar":{
//字体颜色
"color": "#999",
//选择的字体颜色
"selectedColor": "#2a82e4",
//最少两个
"list": [
{
"text": "导师",
//页面路径
"pagePath": "pages/index/index",
//未选中时展示的图标
"iconPath": "/images/111.png",
//选中时展示的图标
"selectedIconPath": "/images/222.png"
},
}
}
有帮助请采纳