小程序底部欄的配置:
需要在app.json中配置tabBar!!!
可配置的有:(這裏表格還不太會用 就個大家放一個網址了)
點我查看有哪些配置
以下就是我配置的底部欄代碼了 配置過程中需要注意的是 底部欄配置的跳轉域名.必須在pages中也配置一套纔可以跳轉,否則便會發生點擊之後沒有反應的錯誤.
"tabBar": {
"color": "grey",
"background": "gary",
"selectedColor": "red",
"borderStyle":"black",
"list": [
{
"pagePath": "pages/home/home",
"text": "首頁",
"iconPath": "./five.jpg",
"selectedIconPath": "./five.jpg"
},
{
"pagePath": "pages/user/user",
"text": "其他",
"iconPath": "./five.jpg",
"selectedIconPath": "./five.jpg"
}
]
}