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

<script>
	export default {
		data() {
			return {
				src: '' //H5页面路径
			}
		},
		onLoad(option) {
			// console.log(option,'option')
			uni.showToast({
				icon:'none',
				title: JSON.stringify(option)
			})
			this.src = option.src
			// 开启分享
			uni.showShareMenu({
				withShareTicket: true,
				menus: ['shareAppMessage', 'shareTimeline']
			})
		},
		methods: {
			
		},
		onShareAppMessage(res){
			return {
				title:'',
				path:'pages/webView/webView?src='+this.src
			}
		},
		onShareTimeline(res){
			return {
				title:'',
				path:'pages/webView/webView',
				query:'src='+this.src
			}
		}
	}
</script>

<style>
</style>
