app.js
{
"pages": [
"pages/index/index",
"pages/saleMng/saleMng",
"pages/newsMng/newsMng",
"pages/my/my"
],
"tabBar": {
"custom": true,
"color": "#6b6c75",
"selectedColor": "#FF3B3B",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "pages/index/index",
"iconPath": "/img/icon/tabIcon1.png",
"selectedIconPath": "/img/icon/tabIcon1-.png",
"text": "首页"
},
{
"pagePath": "pages/saleMng/saleMng",
"iconPath": "/img/icon/tabIcon2.png",
"selectedIconPath": "/img/icon/tabIcon2-.png",
"text": "采销"
},
{
"pagePath": "pages/newsMng/newsMng",
"iconPath": "/img/icon/tabIcon4.png",
"selectedIconPath": "/img/icon/tabIcon4-.png",
"text": "消息"
},
{
"pagePath": "pages/my/my",
"iconPath": "/img/icon/tabIcon5.png",
"selectedIconPath": "/img/icon/tabIcon5-.png",
"text": "我的"
}
]
},
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "WeChat",
"navigationBarTextStyle": "black"
},
"sitemapLocation": "sitemap.json"
}
custom-tab-bar/index.wxml
<!--custom-tab-bar/index.wxml-->
<view class="tab-bar">
<!-- <view class="tab-bar-border"></view>