- 发布:2023-05-09 11:29
- 更新:2023-08-10 20:36
- 阅读:165
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 3.8.1
手机系统: 全部
手机厂商: 苹果
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
测试过的手机:
示例代码:
"tabBar": {
"color": "#666666",
"selectedColor": "#333333",
"borderStyle": "white",
"backgroundColor": "#ffffff",
"height": "70px",
"midButton": {
"text": "免押金",
"height": "82px",
"iconWidth": "64px",
"width": "94px",
"iconPath": "static/tabbar/center.png"
},
"list": [{
"pagePath": "pages/home/index",
"iconPath": "static/tabbar/home.png",
"selectedIconPath": "static/tabbar/active-home.png",
"text": "首页"
}, {
"pagePath": "pages/classification/index",
"iconPath": "static/tabbar/classification.png",
"selectedIconPath": "static/tabbar/active-classification.png",
"text": "分类"
}, {
"pagePath": "pages/message/index",
"iconPath": "static/tabbar/message.png",
"selectedIconPath": "static/tabbar/active-message.png",
"text": "消息"
}, {
"pagePath": "pages/me/index",
"iconPath": "static/tabbar/me.png",
"selectedIconPath": "static/tabbar/active-me.png",
"text": "我的"
}]
},
"tabBar": {
"color": "#666666",
"selectedColor": "#333333",
"borderStyle": "white",
"backgroundColor": "#ffffff",
"height": "70px",
"midButton": {
"text": "免押金",
"height": "82px",
"iconWidth": "64px",
"width": "94px",
"iconPath": "static/tabbar/center.png"
},
"list": [{
"pagePath": "pages/home/index",
"iconPath": "static/tabbar/home.png",
"selectedIconPath": "static/tabbar/active-home.png",
"text": "首页"
}, {
"pagePath": "pages/classification/index",
"iconPath": "static/tabbar/classification.png",
"selectedIconPath": "static/tabbar/active-classification.png",
"text": "分类"
}, {
"pagePath": "pages/message/index",
"iconPath": "static/tabbar/message.png",
"selectedIconPath": "static/tabbar/active-message.png",
"text": "消息"
}, {
"pagePath": "pages/me/index",
"iconPath": "static/tabbar/me.png",
"selectedIconPath": "static/tabbar/active-me.png",
"text": "我的"
}]
},
操作步骤:
pages.json
pages.json
预期结果:
显示正常
显示正常
实际结果:
显示不正常
显示不正常
bug描述:
配置的高度在两种系统上显示不一样 苹果正常安卓就会遮挡到下面的文字 安卓正常的话苹果就会高