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

<script>
	
	export default {
		data() {
			return {
				 url: '', // pdf链接
			}
		},
		onLoad (options) {
			console.log(options);
		      let links = options.links;
		      this.url = 'https://www.geidcp.com/' + links;
			  uni.downloadFile({
			    url: this.url,
			    success: function (res) {
			      var filePath = res.tempFilePath;
			      uni.openDocument({
			        filePath: filePath,
			        success: function (res) {
			          console.log('打开文档成功');
			        }
			      });
			    }
			  });
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
