<template>
	<view class="page-web">
		<web-view ref='webview' :webview-styles="webviewStyles" :src="src"></web-view>
	</view>
</template>

<script>
export default {
	name: "WEB",
	data() {
		return {
			src: null,
			webviewStyles: {
				progress: {
					color: '#5688E8'
				}
			}
		}
	},
	onLoad(options) {
		if (options.src) this.src = decodeURIComponent(options.src)
	},
	methods: {
	}
}
</script>

<style lang="less" scoped>
.page-web {
	width: 100vw;
	height: 100vh;

	web-view {
		width: 100%;
		height: 100%;
	}
}
</style>