webview.vue 685 Bytes
<template>
	<page-meta>
		<navigation-bar :title="nbTitle" :front-color="nbFrontColor" :background-color="nbBackgroundColor" />
	</page-meta>
	<view>
		<web-view :webview-styles="webviewStyles" :src="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				nbTitle: '',
				nbFrontColor: '#000000',
				nbBackgroundColor: '#ffffff',
				url: "",
				webviewStyles: {
					progress: {
						color: '#FF3333'
					}
				}
			}
		},

		onLoad(option) {
			console.log(option);
			this.url = option.url;
			this.nbTitle = option.navtitle;
		},

		methods: {

		}
	}
</script>

<style lang="scss" scoped>

</style>