app.json里配置
“tabBar”:{
“color”:"#666666",
“selectedColor”:“blue”,
“borderStyle”: “black”,
“backgroundColor”: “#fff”,
“list”:[
{
“pagePath”:“pages/index/index”,
“text”:“首页”,
“iconPath”:"./resources/首页.png",
“selectedIconPath”:"./resources/首页-选中.png"
},
{
“pagePath”: “pages/game/game”,
“text”: “游戏”,
“iconPath”: “./resources/游戏2.png”,
“selectedIconPath”: “./resources/游戏.png”
},
{
“pagePath”: “pages/contactUs/contactUs”,
“text”: “联系我们”,
“iconPath”: “./resources/客服2.png”,
“selectedIconPath”: “./resources/客服.png”
},
{
“pagePath”: “pages/cooperation/cooperation”,
“text”: “我的”,
“iconPath”: “./resources/合作2.png”,
“selectedIconPath”: “./resources/合作.png”
}
]
}
微信小程序底部tab切换
最新推荐文章于 2024-07-09 21:30:00 发布