紫川丶
紫川丶
  • 发布:2020-01-03 10:08
  • 更新:2020-01-03 11:18
  • 阅读:1425

uniapp使用原生插件后,页面被原生标题栏挤压,顶部空白无法恢复,请问如何修改view的高度?

分类:uni-app

app使用了腾讯的人脸核身,公司的ios人员做的sdk插件,正常调用后,从sdk拉取的页面返回后,页面顶部会有一个sdk的标题栏高度的空白区域,所有内容都在这个高度下面,包括uniapp配置的标题栏。重启app后恢复。
使用

this.webview=this.$mp.page.$getAppWebview();  
console.log(this.webview.getStyle);

打印出的参数如下

{  
    "background": "#28252A",  
    "backgroundColor": "#28252A",  
    "backgroundColorBottom": "#28252A",  
    "backgroundColorTop": "#28252A",  
    "height": 778,  
    "id": "1",  
    "kernel": "WKWebview",  
    "left": 0,  
    "name": "1",  
    "navigationBarBackgroundColor": "#28252A",  
    "navigationBarTextStyle": "white",  
    "navigationBarTitleText": "人脸识别",  
    "opacity": 1,  
    "popGesture": "appback",  
    "scrollIndicator": "none",  
    "softinputNavBar": "none",  
    "titleNView": {  
        "autoBackButton": true,  
        "backgroundColor": "#28252A",  
        "dock": "top",  
        "height": 44,  
        "position": "dock",  
        "statusbar": {},  
        "tags": [],  
        "titleColor": "#FFFFFF",  
        "titleSize": "17",  
        "titleText": "人脸识别",  
        "type": "default"  
    },  
    "top": 0,  
    "uni-app": "auto",  
    "usingComponents": {},  
    "width": 375,  
    "zindex": 0  
}  

2020-01-03 10:08 负责人:无 分享
已邀请:
紫川丶

紫川丶 (作者)

救救孩子吧

  • 鹏鹏鹏

    解决了吗(救救我)

    2022-12-26 14:09

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