在app.json 中添加
"tabBar": {
"color":"#ffffff",
"borderStyle":"white",
"selectedColor":"#d81e06",
"backgroundColor":"#245685",
"list": [{
"pagePath": "pages/index/index", //跳转链接
"text": "首页", //显示名字
"iconPath":"/images/gprs_1.png", //默认图片
"selectedIconPath":"/images/gprs_2.png" //选中图片 }, {
"pagePath": "pages/logs/logs",
"text": "地图"
}, {
"pagePath": "pages/user_info/user_info",
"text": "个人信息"
} ]