<template>
  <view class="bg">
	  <video class="video" v-if="url" :src="url" preload="metadata" ></video>
  </view>
</template>
 
<script>
export default {
  data() {
    return {
      url: ''
    }
  },
  onLoad(option) {
	  console.log(option);
	  if (option.url) {
	  	this.url = decodeURIComponent(option.url)
	  }else{
		this.goBack()
	  }
    console.log(this.url)
    // 传入需要跳转的链接 使用web-view标签进行跳转
  }
}
</script>
 
<style lang="scss" scoped>
	.bg{
		width: 100%;
		height: calc(100vh - 44px);
		background: black;
		display: flex;
		align-items: center;
		justify-content: center;
		overflow: hidden;
		.video{
			width: 100%;
		}
	}
</style>
 