</u-navbar> -->
<web-view ref="webview" :src="weburl" :style="{height:mbHeight,width:mbWidth,top:0}" :webview-styles="webviewStyles"
fullscreen="true" @load="load" @onPostMessage="handlePostMessage"></web-view>
</template>
<script>
export default {
data() {
return {
weburl: '',
mbBottom: uni.getSystemInfoSync().windowBottom + 'px',
// mbTop: uni.getSystemInfoSync().statusBarHeight + 'px',
mbWidth: uni.getSystemInfoSync().screenWidth + 'px',
mbHeight: uni.getSystemInfoSync().screenHeight + 'px',
webviewStyles: {
progress: false
}
}
},
onLoad(item) {
console.log(item, uni.getSystemInfoSync().screenWidth, uni.getSystemInfoSync().screenHeight, uni
.getSystemInfoSync().windowBottom)
// this.weburl = item.url
this.weburl = 'http://www.baidu.com'
}
}
</script>
<style>
</style>
0 个回复