<template>
	<view>
		<web-view :src="webUrl"></web-view>  
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webUrl: '',
				pageName: ''
			}
		},
		onLoad(option) {
			this.pageName = JSON.parse(option.data).name
			this.webUrl = JSON.parse(option.data).src
		},
		methods: {
			goBack() { // 返回上一頁面
				uni.navigateBack()
			}
		}
	}
</script>

<style scoped lang="scss">
</style>