"tabBar": {//字体颜色"color": "#999",//选中字体背景"selectedColor": "#ff2da4",//背景颜色"backgroundColor": "#fafafa",//边框类型"borderStyle": "black",//列表"list": [{//页面路径"pagePath": "pages/index/index",//页面名称"text": "首页",//页面图片"iconPath": "/icons/home.png",//被选中图片"selectedIconPath": "/icons/home-o.png"},{"pagePath": "pages/category/category","text": "分类","iconPath": "/icons/category.png","selectedIconPath": "/icons/category-o.png"},{"pagePath": "pages/cart/cart","text": "喜欢","iconPath": "/icons/cart.png","selectedIconPath": "/icons/cart-o.png"},{"pagePath": "pages/my/my","text": "我的","iconPath": "/icons/my.png","selectedIconPath": "/icons/my-o.png"}]},
如果觉得《微信小程序——设置tabBar》对你有帮助,请点赞、收藏,并留下你的观点哦!