<template>
	<view class="container">
		<view class="content">
			<image class="close" src="../../static/close-gray.png" mode="" @click="close()"></image>
			<view class="title">卡券解锁</view>
			<view class="sub-title">是否确定解锁该卡券？</view>
			<view class="tips">*为了您的资金安全，请勿将卡券信息泄露他人</view>
			<view @click="$emit('certain')" class="buy-bottom" :style="{'background-color':'#FF0520'}">确定</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"AlertUnlock",
		data() {
			return {

			};
		},
		props: {
			closeName: {
				type: String
			}
		},
		methods: {
			close() {
				this.$parent[this.closeName] = false
			}
		}
	}
</script>

<style lang="scss" scoped>
.container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba($color: #000000, $alpha: 0.7);
	z-index: 99999;
	.content {
		margin: 80% 55rpx 40%;
		border-radius: 16rpx;
		background-color: #FFFFFF;
		padding: 48rpx 40rpx;
		// width: 640rpx;
		position: relative;
		.close {
			position: absolute;
			top: 24rpx;
			right: 24rpx;
			height: 36rpx;
			width: 36rpx;
		}
		.title {
			font-size: 32rpx;
			font-weight: bolder;
			color: #333333;
			line-height: 44rpx;
			text-align: center;
		}
		.sub-title {
			margin-top: 48rpx;
			font-size: 32rpx;
			color: #333333;
			line-height: 44rpx;
			text-align: center;
		}
		.tips {
			margin-top: 32rpx;
			font-size: 24rpx;
			line-height: 32rpx;
			color: #666666;
			text-align: center;
		}
		.buy-bottom {
			margin-top: 70rpx;
			border-radius: 40rpx;
			height: 80rpx;
			width: 560rpx;
			background-color: rgba($color: #FF0520, $alpha: 0.5);
			line-height: 82rpx;
			text-align: center;
			color: #FFFFFF;
			font-size: 32rpx;
			z-index: 99999;
		}
	}
}
</style>