<template>
	<view class="container-body">
		<image class="kfqrcode" v-if="qrcode" :src="qrcode" show-menu-by-longpress="true"></image>
		<image v-else src="/static/course_expiration_img.png" mode="aspectFill"></image>
		<u-parse class="title" :content="msg"></u-parse>
		<view class="user" v-if="userId">#{{userId}}</view>
		<view style="margin-bottom: 10vh;" v-show="code">状态码：{{code}}</view>
	</view>
</template>

<script>
	export default {
		props:['code','qrcode','msg','userId'],
		data() {
			return {
			
			}
		}
	}
</script>

<style scoped lang="scss">
	.kfqrcode {
		height: 460rpx;
		width: 460rpx;
	}
	.container-body {
		background-color: #fff;
		position: fixed;
		top: 0;
		right: 0;
		z-index: 9998;
		justify-content: center;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		font-size: 32rpx;
		color: #757575;
		line-height: 48rpx;
		text-align: center;
		height: 100vh;
		width: 100vw;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		.title {
			font-weight: bold;
			font-size: 40rpx;
			color: #1E2F67;
			margin-bottom: 24rpx;
			padding: 0 60rpx;
		}
		image {
			width: 428rpx;
			height: 360rpx;
			margin-bottom: 30rpx;
		}
		.user {
			// position: absolute;
			right: 24rpx;
			top: 124rpx;
			z-index: 9999;
		}
	}
</style>