This commit is contained in:
王丹 2025-01-07 16:53:03 +08:00
parent 2ea711903e
commit ca253a2cd4

View File

@ -1,11 +1,13 @@
<template>
<custom-nav-bar :left="true" :title="params.title" />
<view v-if="params.url">
<web-view style="margin-top: 45px;" :webview-styles="webviewStyles" :src="`${params.url}`"></web-view>
<web-view style="margin-top: 45px;" :webview-styles="webviewStyles"
:src="`${params.url}`"></web-view>
</view>
</template>
<script>
var wv; //webvie
export default {
data() {
return {
@ -30,6 +32,18 @@
// title: event.title
// })
// }
},
onReady() {
// #ifdef APP-PLUS
//html5plusplus.webview.currentWebview()uni-appvue使plus.webview.currentWebview()
var currentWebview = this.$scope.$getAppWebview()
setTimeout(function() {
wv = currentWebview.children()[0]
wv.setStyle({
top: 60
})
}, 100); //
// #endif
}
}
</script>