app.json中设置
"tabBar": {
"position": "bottom",
"borderStyle": "white",
"list": [
{
"pagePath": "pages/subpages/News/News",
"text": "首页",
"iconPath": "images/tabbar/home.png",
"selectedIconPath": "images/tabbar/home.png"
},
{
"pagePath": "pages/user/user",
"text": "购物车",
"iconPath": "images/tabbar/home.png",
"selectedIconPath": "images/tabbar/home.png"
},
{
"pagePath": "pages/user/user",
"text": "特惠专区",
"iconPath": "images/tabbar/home.png",
"selectedIconPath": "images/tabbar/home.png"
}
]
}
注意:
与本文件pages中的第一项月tabbar第一项一致才可显示
"pages": [
"pages/subpages/News/News",