<template>
<view style="height: 100%; width: 100%;">
<web-view :src="url" :webview-styles="webviewStyles"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
url: '',
webviewStyles: {
progress: {
color: '#d72c22'
}
}
}
},
onLoad(e) {
this.url = JSON.parse(e.params)
uni.hideTabBar()
var currentWebview = this.$scope.$getAppWebview()
setTimeout(function() {
let wv = currentWebview.children()[0]
// wv.setStyle({top: 48})
}, 100);
}
}
</script>
1 个回复
DCloud_UNI_Anne
请查看相关问题:https://ask.dcloud.net.cn/question/134109