代码如下:
"tabBar": {
"backgroundColor": "#fff",
"color": "#8896cd",
"selectedColor": "#708090",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "/images/index.png",
"selectedIconPath": "/images/indexing.png"
},
{
"pagePath": "pages/face/face",
"text": "人脸对比",
"iconPath": "/images/facegay.png",
"selectedIconPath": "/images/face.png"
},
{
"pagePath": "pages/detection/detection",
"text": "活体检测",
"iconPath": "/images/huo2.png",
"selectedIconPath": "/images/huo.png"
}
]
},
需要注意的是路径问题,图片路径直接引入即可,用../会报错,"backgroundColor": "#fff",是背景颜色, "color": "#8896cd",是 字体颜色,"selectedColor": "#708090",是选中高亮的颜色,还有图片类型要一致(png!==PNG).
网友评论