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
}
鹏鹏鹏
解决了吗(救救我)
2022-12-26 14:09