tabBar是微信小程序的底部导航栏,它是微信自带的一个框架。
微信小程序自定义tabBar的描述
tabBar需要在app.json书写。
这是我的app.json
{
"pages":[
"pages/index/index",
"pages/games/games",
"pages/videos/videos",
"pages/me/me"
],
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "WeChat",
"navigationBarTextStyle":"black"
},
"tabBar": {
"selectedColor": "#44b549",
"backgroundColor": "#fff",
"list": [
{
"pagePath": "pages/index/index",
"text": "学习笔记",
"iconPath": "./images/tabBar/notes-unselected.png",
"selec