<template>
	<view class="">
		<!-- <statusBar :item="navBarData"></statusBar> -->
		<web-view :src="url1" weixin-process="auto"></web-view>
		<!-- <iframe :src="url" frameborder="0" style="width: 100%; height: 100vh;"></iframe> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url1: '',
				navBarData: {
					title: '详情',
					btn: 1
				},
			};
		},
		onLoad(options) {
			console.log(options);
			this.url1 = decodeURIComponent(options.url);
		},
		methods: {
			onBackPress(options) {
				const currentWebview = this.$mp.page.$getAppWebview();
				if (currentWebview) {
					let child = currentWebview.children();
					for (let i = 0; i < child.length; i++) {
						currentWebview.remove(child[i]);
					}
				}
				return false;
			}
		}
	}
</script>

<style lang="scss">

</style>