<template>
	<view class="head">
		<lf-nav :spreadOut="false" :showIcon="true" bgColor="transparent" titleColor="white" title="我的报名"></lf-nav>
		<view class="bg-left"></view>
		<view class="bg-right"></view>
		<view class="margin-auto">
			<view class="register-card">
				<view class="lf-flex lf-p-l-40 register-content">
					<image class="register-head" src="https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png" mode="aspectFill"></image>
					<view class="lf-color-black lf-m-l-21 lf-font-32">
						LA MER海蓝之谜
					</view>
				</view>
				<view class="lf-p-l-40" style="position: relative;top: 160rpx;">
					<view class="lf-font-36 lf-color-black lf-font-bold ">海蓝之谜美颜会</view>
					<view class="lf-m-t-30">
						<view class="lf-m-t-20">
							<text class="lf-color-777 lf-font-28">活动时间：</text><text class="lf-font-28 lf-color-black lf-m-l-10">2021.09.01-2021.09.15</text>
						</view>
						<view class="lf-m-t-20">
							<text class="lf-color-777 lf-font-28">活动地点：</text><text class="lf-font-28 lf-color-black lf-m-l-10">海蓝之谜专卖店</text>
						</view>
						<view class="lf-m-t-20">
							<text class="lf-color-777 lf-font-28">报名时间：</text><text class="lf-font-28 lf-color-black lf-m-l-10">2021.09.02 18:37:57</text>
						</view>
						<view class="lf-m-t-20">
							<text class="lf-color-777 lf-font-28">报名费用：</text><text class="lf-font-28 lf-color-black lf-m-l-10">免费</text>
						</view>
						<view style="margin-top: 60rpx;display: flex;justify-content: center;">
							<view class="lf-flex-column">
								<lf-qrcode :options="config.qrc"></lf-qrcode>
								<view class="lf-font-28 lf-row-center" style="color: #15716E;">待使用</view>
							</view>
						</view>
						<view style="margin-top: 60rpx;">
							<view class="lf-font-32 lf-color-black">
								报名信息
							</view>
							<view class="lf-m-t-30">
								<text class="lf-font-28 lf-color-777">报名人:</text><text class="lf-font-28 lf-color-777 lf-m-l-10">王晓人</text>
							</view>
							<view class="lf-m-t-30">
								<text class="lf-font-28 lf-color-777">手机号码:</text><text class="lf-font-28 lf-color-777 lf-m-l-10">13200000000</text>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import lfQrcode from '@/components/lf-code/lf-qrcode.vue';
	export default {
		data() {
			return {
				config: {
					bar: {
						code: 'E01181016286106',
						color: '#000', // 条形码的颜色
						bgColor: '#FFFFFF', // 背景色
						width: 586, // 宽度
						height: 210 // 高度
					},
					qrc: {
						code: "https://weixin.qq.com/g/AwYAAHO3aO4zlasEij6bLsk4hlZd5XNFkkBmqyS55mLPFxmn5c9PaI1omqLhd24fABCD23333",
						size: 352, // 二维码大小
						level: 4, //等级 0～4
						bgColor: '#FFFFFF', //二维码背景色 默认白色
						// border: {
						// 	color: ['#8A2387', '#F27121'], //边框颜色支持渐变色
						// 	lineWidth: 3, //边框宽度
						// },
						// img: '/static/logo.png', //图片
						// iconSize: 40, //二维码图标的大小
						color: '#000000', //边框颜色支持渐变色
					}
				},
			}
		},
		components: {lfQrcode}
	}
</script>

<style lang="scss" scoped>
	.register-content {
		position: absolute;
		top: -30rpx;
	}
	.register-head {
		width: 160rpx;
		height: 160rpx;
		box-shadow: 0px 2rpx 8rpx 1rpx rgba(21, 113, 110, 0.2);
		border: 5rpx solid #FFFFFF;
		border-radius: 50%;
	}
	.margin-auto {
		margin: 0 auto;
		position: relative;
		top: 0;
	}
	.register-card {
		width: 686rpx;
		height: 1266rpx;
		background: #FFFFFF;
		border-radius: 20rpx;
	}
	.head {
		width: 750rpx;
		height: 1624rpx;
		background: linear-gradient(270deg, #187B7A 0%, #2FAAA7 100%, #22A2A0 100%);
		position: relative;
		overflow: hidden;
		display: flex;
		align-items: flex-end;
		box-sizing: border-box;
		padding: 60rpx 32rpx 110rpx;
		color: #FFFFFF;
	}
	.bg-left{
		position: absolute;
		width: 196rpx;
		height: 196rpx;
		border-radius: 50%;
		background-color: rgba(255,255,255,0.04);
		left: -92rpx;
		bottom: 60rpx;
	}
	.bg-right{
		position: absolute;
		width: 520rpx;
		height: 520rpx;
		border-radius: 50%;
		background-color: rgba(255,255,255,0.04);
		right: -168rpx;
		top: -142rpx;
	}
</style>
