在app.json里面加入

"tabBar": {    "color": "#dddddd",    "selectedColor": "#3cc51f",    "borderStyle": "black",    "backgroundColor": "#ffffff",    "list": [      {        "pagePath": "pages/index/index",        "iconPath": "img/index.png",        "text": "首页"      },      {        "pagePath": "pages/logs/logs",        "iconPath": "img/index.png",        "text": "kosys学堂"      },      {        "pagePath": "pages/logs/logs",        "iconPath": "img/index.png",        "text": "服务"      },      {        "pagePath": "pages/logs/logs",        "iconPath": "img/index.png",        "text": "商城"      },      {        "pagePath": "pages/logs/logs",        "iconPath": "img/index.png",        "text": "我的"      }    ]  },

图片大小控制 需要在png 格式图片外面留白

TAG标签: 小程序tabBar

http://www.xiaochengxub.com/read-107199.html