<template name="alert">
	<view class="alert spec" :class="specClass">
		<!-- 运费弹窗说明 -->
		<view class="freight-alert"  @click.stop="unBindUpgrade">
			<view class="content clearfix">
				<view class="title"><text class="iconfont icon-iconfontguanbi" @click.stop="unBindUpgrade"></text></view>
				<view class="text-content">
					<view class="text-h1">您目前为<text class="col">普通机构用户</text></view>
					<view class="text-h1">可以升级<text class="col">会员机构</text>享受更多更好的服务</view>
				</view>
				<view class="text-btn">
					<view class="btn" @click.stop="GoApply">去升级</view>
					<view class="btn-none" @click.stop="unBindUpgrade">暂不升级</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		name:'alert',
		props:{
			clubStatus:{
				type:Number
			}
		},
		data() {
			return{
				status:""
			}
		},
		created() {
			this.status = this.clubStatus
		},
		onLoad(){
			
		},
		methods:{
			GoApply(){
				this.$emit('GoApply')
			},
			unBindUpgrade(){
				this.$emit('unBindUpgrade')
			}
		},
		onShow(){
	
		}
	}
</script>

<style lang="scss">
	/*弹窗*/
	.model-warp.none{
		display: none;
	}
	.model-warp.show{
		display: block;
	}
	.freight-alert{
		width: 100%;
		height: 100%;
		background: rgba(0,0,0,.5);
		position: fixed;
		top: 0;
		left: 0;
		z-index: 8888;
		transition: all 0.4s;
		&.none{
			display: none;			
		}
		&.show{
			display: block;
		}
		.content{
			width: 492rpx;
			height: 710rpx;
			position: absolute;
			background: url(https://img.caimei365.com/group1/M00/03/B0/Cmis217Z9BSAERyCAAG9lz_TNN0938.png) no-repeat;
			background-size: contain;
			left: 0;
			right: 0;
			bottom: 0;
			top: 0;
			margin: auto;
			padding:0 24rpx 20rpx 24rpx;
			border-radius: 12rpx;
			.title{
				width: 100%;
				height: 68rpx;
				line-height: 68rpx;
				text-align: center;
				position: relative;
				.icon-iconfontguanbi{
					width: 50rpx;
					height: 50rpx;
					text-align: center;
					line-height: 50rpx;
					border-radius: 50%;
					border: 1px solid #FFFFFF;
					position: absolute;
					right: -20rpx;
					top: 0;
					font-size: $font-size-32;
					color: #FFFFFF;
				}
			}
			.text-content{
				width: 100%;
				height: auto;
				margin-top: 280rpx;
				.text-h1{
					line-height: 60rpx;
					font-size: $font-size-28;
					color: $text-color;
					text-align: justify;
					.col{
						color: $color-system;
						margin: 0 6rpx;
					}
				}
			}
			.text-btn{
				width: 100%;
				height: auto;
				margin-top: 40rpx;
				.btn{
					width: 100%;
					height: 88rpx;
					float: left;
					background: $btn-confirm;
					line-height: 88rpx;
					font-size: $font-size-28;
					text-align: center;
					color: #FFFFFF;
					border-radius: 44rpx;
					padding: 0;
				}
				.btn-none{
					width: 100%;
					height: 88rpx;
					float: left;
					line-height: 88rpx;
					font-size: $font-size-28;
					text-align: center;
					color: #666666;
					padding: 0;
					margin-top: 20rpx;
				}
			}
		}
	}
	
</style>
