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

<script>
	export default {
		data() {
			return {
				pdfUrl: '',
				pdfData: ''
			}
		},
		onReady() {
			setTimeout(() => {
				uni.setNavigationBarTitle({
					title:this.pdfData.title
				});
			}, 500)
		},
		created() {
			uni.$on('pdfData',res=>{
				console.log(res)
				this.pdfData=res
			})
		},
		mounted() {
			this.pdfUrl =this.pdfData.url
		},
		methods: {}
	}
</script>

<style lang="scss">

</style>
