在app.json 全局文件写
"tabBar": {
"color": "#cdcdcd",
"selectedColor": "#66CCCC",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "static/1.jpg",
"selectedIconPath": "static/2.png"
},
{
"pagePath": "pages/my/my",
"text": "我",
"iconPath": "static/1.jpg",
"selectedIconPath": "static/2.png"
}
]
},