
- 发布:2025-09-04 15:13
- 更新:2025-09-04 16:35
- 阅读:53
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 12.5.1
HBuilderX类型: 正式
HBuilderX版本号: 4.66
手机系统: 全部
手机厂商: 华为
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: HBuilderX
测试过的手机:
示例代码:
tabbar配置项
"tabBar": {
"custom": false,
"color": "#333333",
"selectedColor": "#7554FA",
"backgroundColor": "#fff",
"iconWidth": "20px",
"list": [
//业务员 start
{
"pagePath": "pages/tab-bar/salesman/index",
"iconPath": "/static/images/tab-bar/index.png",
"selectedIconPath": "/static/images/tab-bar/index_active.png",
"text": "首页"
}, {
"pagePath": "pages/tab-bar/cart/index",
"iconPath": "/static/images/tab-bar/shopping_cart.png",
"selectedIconPath": "/static/images/tab-bar//shopping_cart_active.png",
"text": "购物车"
},
{
"pagePath": "pages/tab-bar/analysis/index",
"iconPath": "/static/images/tab-bar/analysis.png",
"selectedIconPath": "/static/images/tab-bar/analysis_active.png",
"text": "数据"
},
{
"pagePath": "pages/tab-bar/main/index",
"iconPath": "/static/images/tab-bar/center.png",
"selectedIconPath": "/static/images/tab-bar/center_active.png",
"text": "我的"
},
{
"pagePath": "",
"iconPath": "",
"selectedIconPath": "",
"text": "",
"visible": false
},
{
"pagePath": "",
"iconPath": "",
"selectedIconPath": "",
"text": "",
"visible": false
}
],
"midButton": {
"width": "80px",
"height": "50px",
"text": "",
"iconPath": "/static/images/tab-bar/yc-init.png",
"iconWidth": "50px",
"backgroundImage": ""
}
}
tabbar配置项
"tabBar": {
"custom": false,
"color": "#333333",
"selectedColor": "#7554FA",
"backgroundColor": "#fff",
"iconWidth": "20px",
"list": [
//业务员 start
{
"pagePath": "pages/tab-bar/salesman/index",
"iconPath": "/static/images/tab-bar/index.png",
"selectedIconPath": "/static/images/tab-bar/index_active.png",
"text": "首页"
}, {
"pagePath": "pages/tab-bar/cart/index",
"iconPath": "/static/images/tab-bar/shopping_cart.png",
"selectedIconPath": "/static/images/tab-bar//shopping_cart_active.png",
"text": "购物车"
},
{
"pagePath": "pages/tab-bar/analysis/index",
"iconPath": "/static/images/tab-bar/analysis.png",
"selectedIconPath": "/static/images/tab-bar/analysis_active.png",
"text": "数据"
},
{
"pagePath": "pages/tab-bar/main/index",
"iconPath": "/static/images/tab-bar/center.png",
"selectedIconPath": "/static/images/tab-bar/center_active.png",
"text": "我的"
},
{
"pagePath": "",
"iconPath": "",
"selectedIconPath": "",
"text": "",
"visible": false
},
{
"pagePath": "",
"iconPath": "",
"selectedIconPath": "",
"text": "",
"visible": false
}
],
"midButton": {
"width": "80px",
"height": "50px",
"text": "",
"iconPath": "/static/images/tab-bar/yc-init.png",
"iconWidth": "50px",
"backgroundImage": ""
}
}
肖肖二呐 (作者)
感谢感谢
2025-09-04 16:38