9***@qq.com
9***@qq.com
  • 发布:2022-05-30 15:36
  • 更新:2022-05-30 15:36
  • 阅读:261

【报Bug】打包后,iphone X显示不了subNVues,其他型号可以真机测试正常

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

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

HBuilderX类型: 正式

HBuilderX版本号: 3.4.7

手机系统: iOS

手机系统版本号: iOS 14

手机厂商: 苹果

手机机型: iphone X

页面类型: nvue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

login.vue 用了 web-view,引入js作为动画背景,app端的web-view层级太高,代码无法覆盖到背景上面显示(网页端可以用定位显示)

            <web-view :style="{height:mapHeight+'px',width:'750rpx',background:'#377df6'}" src="/hybrid/html/demo/index.html"></web-view>  
        </view> ```       
所以在page.json中,给login加入subNVues弹窗  

 ```        {  
            "path": "pages/login",  
            "style": {  

                "navigationBarTitleText": "",  
                "enablePullDownRefresh": false,  
                "navigationStyle": "custom",  
                "navigationBarTextStyle": "white",  
                "subNVues": [{ //弹出层  
                    "id": "popup",  
                    "path": "pages/subNVue/popup",  
                    "style": {  
                        "position": "popup",  
                        "margin": "auto",  
                        "width": "100%",  
                        //这里的宽高都设置成100%,才能挡住整个页面,虽然底部的tabbar不能遮挡住,但是点击页面不会有反应  
                        "height": "100%",  
                        "background": "rgba(0,0,0,0.1)",  
                        "zindex": "999999"  
                    }  
                }]  

            }  

        }  

预期结果:

webview引入js动画作为背景,sunNvues显示弹窗显示登陆

实际结果:

iphoneX只显示webview背景

bug描述:

由于登陆页用了

pages.json中,给登录页加了subNVues弹窗,真机测试能显示!打包后所有安卓正常,ipone10正常 ,公司两个iphoneX都显示不了。

2022-05-30 15:36 负责人:无 分享
已邀请:

要回复问题请先登录注册