<template name="alert">
	<view class="alert spec" :class="specClass">
		<!-- 运费弹窗说明 -->
		<view class="freight-alert"  @tap="hideFreight">
			<view class="content">
				<view class="title">
					<text>提示</text>
				</view>
				<view class="text-content">
					<view class="text">
						<text>系统检测到您的微信已绑定供应商账户，不能继续登录</text>
					</view>
					<view class="exit-btn">
						<navigator open-type="exit" target="miniProgram" class="btn">退出</navigator>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		name:'alert',
		props:{},
		data() {
			return{
				
			}
		},
		created() {
			
		},
		onLoad(){
			
		},
		methods:{
			hideFreight(){
				this.$parent.isErrorAlert = false
			},
		},
		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: 530rpx;
			height: 300rpx;
			position: absolute;
			background: $bg-color;
			left: 0;
			right: 0;
			bottom: 0;
			top: 0;
			margin: auto;
			padding: 20rpx 25rpx;
			border-radius: 12rpx;
			.title{
				width: 100%;
				height: 68rpx;
				line-height: 68rpx;
				font-size: $font-size-30;
				color: $text-color;
				text-align: center;
				margin-bottom: 20rpx;
				position: relative;
			}
			.text-content{
				width: 70%;
				height: auto;
				margin: 0 auto;
				.text{
					line-height: 44rpx;
					font-size: $font-size-28;
					color:#666666;
					text-align: center;
				}
				.exit-btn{
					width: 100%;
					height: 70rpx;
					display: flex;
					align-items: center;
					flex-direction:column;
					margin-top: 30rpx;
					.btn{
						width: 200rpx;
						line-height: 70rpx;
						font-size: $font-size-28;
						text-align: center;
						color: #FFFFFF;
						border-radius: 35rpx;
						padding: 0;
						background: $btn-confirm;
					}
				}
			}
		}
	}
	
</style>