<template>
	<view class="exam_submit">
		<view class="exam_submit_bg">
		
	</view>
		<view class="exam_submit_card">
			<img src="../../../static/img/icon/success.png">
			<view>
				已观看视频		
			</view>
			<view class="flex_sb exam_submit_btn">
				<button @click="back">返回首页</button>
				<button @click="joinExam">参加考试</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: ''
			};
		},
		onLoad(option) {
			const {id} = option
			this.id = id
		},
		methods:{
			joinExam() {
				uni.redirectTo({
					url: `/subpkg/exam/examPaper/examPaper?id=${this.id}`
				})
			},
			back(){
				uni.navigateBack()
			},
		}
	}
</script>

<style lang="scss">
	.exam_submit{
		min-height: 100vh;
		background-color: #FAFAFA;
		&_bg{
			background: linear-gradient(180deg,#2E75E6,#FAFAFA);
			width: 100%;
			height: 348rpx;			
		}
		&_card{
			margin: 24rpx;
			transform: translateY(-50%);
			height: 500rpx;
			border-radius: 32rpx;
			background-color: #FFFFFF;
			image{
				margin-top: 80rpx;
				width: 120rpx;
				height: 120rpx;
				margin-left: 50%;
				transform: translateX(-50%);
			}
			>view{
				text-align: center;
				font-size: 48rpx;
				color: #27C488;
				margin: 24rpx;
			}
		}
		&_btn{
			button{	
				border: none;
				margin: 0;
				width: 315rpx;
				height: 80rpx;
				line-height: 80rpx;
				border-radius: 40rpx;
				background-color: #F0F8FF;
				color: #2E75E6;
				&:after{
					content: '';
					border: none;
				}
			}
		}
	}
</style>
