9***@qq.com
9***@qq.com
  • 发布:2020-09-07 13:06
  • 更新:2020-09-07 13:06
  • 阅读:904

【报Bug】iphoneX设置隐藏底部安全区无效

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win7_64

HBuilderX类型: 正式

HBuilderX版本号: 2.8.8

手机系统: iOS

手机系统版本号: iOS 12.1

手机厂商: 苹果

手机机型: iphone x

页面类型: vue

打包方式: 云端

项目创建方式: HBuilderX

示例代码:
    "pages": [  
        {  
            "path": "pages/main/main",  
            "style": {  
                "navigationBarTitleText": "登录模板"  
            }  
        },  
        {  
            "path": "pages/user/user",  
            "style": {  
                "navigationBarTitleText": "我的"  
            }  
        },  
        {  
            "path": "pages/login/login",  
            "style": {  
                "navigationBarTitleText": "登录",  
                "app-plus": {  
                    "contentAdjust": false,  
                    "safearea": {  
                        "bottom": {  
                            "offset": "none"    //配置"offset": "none"后,在登录页面底部依然有安全区的存在  
                        }  
                    }  
                }  
            }  
        }  
    ],  
    "tabBar": {  
        "color": "#7a7e83",  
        "selectedColor": "#0faeff",  
        "backgroundColor": "#ffffff",  
        "list": [{  
            "pagePath": "pages/main/main",  
            "text": "首页",  
            "iconPath": "static/img/home.png",  
            "selectedIconPath": "static/img/homeHL.png"  
        }, {  
            "pagePath": "pages/user/user",  
            "text": "我的",  
            "iconPath": "static/img/user.png",  
            "selectedIconPath": "static/img/userHL.png"  
        }]  
    },  
    "globalStyle": {  
        "navigationBarTextStyle": "white",  
        "navigationBarBackgroundColor": "#0faeff",  
        "backgroundColor": "#fbf9fe"  
    }  
}  

操作步骤:

源码已打包成附件,编译后就能看到效果

预期结果:

"offset": "none"能正常生效

实际结果:

"offset": "none"无效

bug描述:

app配置了tabBar页
但是在非tabBar页配置"offset": "none"后底部依然有安全区。

2020-09-07 13:06 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复