1. 程式人生 > >小程式底部導航欄設定

小程式底部導航欄設定

 

tabBar與window、pages並列,pagePath點選進入的頁面路徑,selectedIconPath點選選中狀態

"tabBar": {
"color": "#353535",
"selectedColor": "#3cc51f",
"borderStyle": "white",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "pages/index/index",
"iconPath": "images/man.png",
"selectedIconPath": "images/people.png",
"text": "主頁"
},
{
"pagePath": "pages/logs/logs",
"iconPath": "images/people.png",
"selectedIconPath": "images/man.png",
"text": "主題日報"
},
{
"pagePath": "pages/demo/demo",
"iconPath": "images/people.png",
"selectedIconPath": "images/man.png",
"text": "測試"
}
]
}