1、找到项目根目录的配置文件 app.json,在配置文件中加入配置代码。例如:
"tabBar": { <!--底部的导航配置属性-->
"color": "为选择时底部导航栏的颜色",
"selectedColor": "选中时底部导航栏的颜色",
"borderStyle":"底部导航栏边框样式",
"list": [{ <!--导航配置数组-->
"selectedIconPath": "选中时的图片路径",
"iconPath": "未选中时的图片路径",
"pagePath": "页面访问地址",
"text": "首页"
}, {
"selectedIconPath": "选中时的图片路径",
"iconPath": "未选中时的图片路径",
"pagePath": "页面访问地址",
"text": "会员"
}, {
"selectedIconPath": "选中时的图片路径",
"iconPath": "未选中时的图片路径",
"pagePath": "页面访问地址",
"text": "订单"
}]
},
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号