<template>
	<view class="fullHeight">
		<view class="fixedheader">
			<headers  :themeType="true" :showBack="true">
			<view class="headerName">
				预览
			</view>
		</headers>
		</view>
		
		<view class="" :style="{ 'padding-top': (statusBarHeight + 50 ) * 2+ 'rpx' }">
			<iframe :src="previewUrl" width='100%' height='550px' frameborder='1'></iframe>
		</view>
	</view>
</template>

<script>
	import {
		isJSON
	} from "@/utils/tool.js"
	export default {
		data() {
			return {
				statusBarHeight: 0,
				previewUrl: "",
			}
		},
		onLoad(option) {
			this.statusBarHeight = uni.getStorageSync('systemInfo').statusBarHeight;
			// this.projectSn = JSON.parse(uni.getStorageSync('projectDetail')).projectSn;
			// this.userInfo = JSON.parse(uni.getStorageSync('userInfo'));
			this.previewUrl = option.url;
			console.log(option)
		},
		methods: {
			
		}
	
	}
</script>

<style lang="scss" scoped>
	.fullHeight {
		.fixedheader {
			position: fixed;
			top: 0;
			left: 0;
			width: 100%;
			z-index: 2;
		}
	}
</style>