提交 8ed31fd4 编写于 作者: Q qiang

fix: 解决 app 端 subNvue 遮罩无法遮挡 tabBar 的问题

上级 050515c8
......@@ -71,8 +71,14 @@ export function initSubNVue (nvue, plus, BroadcastChannel) {
const maskColor = webview.__uniapp_mask
let maskWebview = plus.webview.getWebviewById(webview.__uniapp_mask_id)
maskWebview = maskWebview.parent() || maskWebview // 再次检测父
let maskWebview = webview.__uniapp_mask_id === '0' ? {
setStyle ({ mask }) {
nvue.requireModule('uni-tabview').setMask({
color: mask
})
}
} : plus.webview.getWebviewById(webview.__uniapp_mask_id)
const oldShow = webview.show
const oldHide = webview.hide
const oldClose = webview.close
......
import { requireNativePlugin } from './index'
function wrapper (webview) {
webview.$processed = true
......@@ -19,8 +21,13 @@ function wrapper (webview) {
return
}
const maskColor = webview.__uniapp_mask
let maskWebview = plus.webview.getWebviewById(webview.__uniapp_mask_id)
maskWebview = maskWebview.parent() || maskWebview// 再次检测父
let maskWebview = webview.__uniapp_mask_id === '0' ? {
setStyle ({ mask }) {
requireNativePlugin('uni-tabview').setMask({
color: mask
})
}
} : plus.webview.getWebviewById(webview.__uniapp_mask_id)
const oldShow = webview.show
const oldHide = webview.hide
const oldClose = webview.close
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册