t***@163.com
t***@163.com
  • 发布:2023-05-09 11:29
  • 更新:2023-08-10 20:36
  • 阅读:165

【报Bug】pages.json midButton配置IOS和安卓高度不一致

分类:uni-app

产品分类: 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": "我的"
}]
},

操作步骤:

pages.json

预期结果:

显示正常

实际结果:

显示不正常

bug描述:

配置的高度在两种系统上显示不一样 苹果正常安卓就会遮挡到下面的文字 安卓正常的话苹果就会高

2023-05-09 11:29 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com - 90IT

ifdef APP-ANDROID

需条件编译的代码

endif

1***@qq.com

1***@qq.com - 90IT

ifdef APP-IOS

需条件编译的代码

endif

要回复问题请先登录注册