在app.json中写
"tabBar": {
"list": [{
"pagePath": "pages/index/index",
"text": "时间",
"iconPath": "icons/time.png",
"selectedIconPath": "icons/_time.png"
},
{
"pagePath": "pages/user/user",
"text": "我的",
"iconPath": "icons/mine.png",
"selectedIconPath": "icons/_mine.png"
}]
},