微信小程序自定义tabbar。完成图如下:
我是引用了colorui的组件库里面的操作条。
下面是colorui的官网
https://github.com/weilanwl/ColorUI/
首先在app.json里设置
"custom": true,
可直接复制
"tabBar": {
"custom": true,
"backgroundColor": "#ffffff",
"color": "#999999",
"selectedColor": "#545454",
"borderStyle": "black",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页"
},
{
"pagePath": "pages/discover/discover/index",
"text": "发现"
},
{