"tabBar": {
"color": "#404040",
"selectedColor": "#2778E5",
"borderStyle": "#ffffff",
"fontSize": "12px",
"iconWidth": "18px",
"height": "48px",
"spacing": "2px",
"backgroundImage": "./static/tabbar/tabbar-bg.png",
"list": [
{
"pagePath": "pages/index/index",
"iconPath": "./static/tabbar/im.png",
"selectedIconPath": "./static/tabbar/im-s.png",
"text": "消息"
},
{
"pagePath": "pages/help/index",
"iconPath": "./static/tabbar/help.png",
"selectedIconPath": "./static/tabbar/help-s.png",
"text": "协作"
},
{
"pagePath": "pages/work/index",
"iconPath": "./static/tabbar/work.png",
"selectedIconPath": "./static/tabbar/work-s.png",
"text": "工作台"
},
{
"pagePath": "pages/file/index",
"iconPath": "./static/tabbar/file.png",
"selectedIconPath": "./static/tabbar/file-s.png",
"text": "文档"
},
{
"pagePath": "pages/phone/index",
"iconPath": "./static/tabbar/phone.png",
"selectedIconPath": "./static/tabbar/phone-s.png",
"text": "通讯录"
}
]
}
- 发布:2024-03-12 11:34
- 更新:2024-03-14 19:30
- 阅读:162
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win11
手机系统: iOS
手机系统版本号: iOS 17
手机厂商: 苹果
手机机型: iphone12
页面类型: nvue
vue版本: vue2
打包方式: 云端
项目创建方式: CLI
CLI版本号: @vue/cli-service4.5
示例代码:
操作步骤:
真机调试ios运行
真机调试ios运行
预期结果:
tabbar显示背景图
tabbar显示背景图
实际结果:
无生效,背景是纯白色
无生效,背景是纯白色
bug描述:
【报Bug】uni开发tabbar中backgroundImage在ios中失效
HRK_01
感谢反馈,我去更新一下回复,IOS确实是不支持
2024-03-14 19:37