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

<script>
	export default {
		data() {
			return {
				url: ''
			}
		},
		onLoad(options) {
			this.url = decodeURIComponent(options.url)
		},
		onShareAppMessage(res) {
			const {
				webViewUrl
			} = res;
			return {
				path: '/pages/webview/webview?url=' + encodeURIComponent(webViewUrl.replace(/[?&]memberId=[^&]*&?/g, "&"))
			};
		}
	}
</script>

<style>

</style>