<template>
	<view class="container">
		<view class="re-succ-box">
			<image class="re-succ-img" src="../../static/img/success.png"></image>

			<view class="re-succ-tit">提交成功</view>
			<view class="re-succ-tip" v-if="type == 2">请耐心等待审核</view>
			<view class="re-succ-btn" @click="goBack()">返回</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			type: 1
		};
	},
	onLoad(opt) {
		if (opt.type) {
			this.type = opt.type;
		}
	},
	methods: {
		goBack() {
			uni.switchTab({
				url: '/pages/index/index'
			});
		}
	}
};
</script>

<style lang="scss">
page {
	height: 100%;
}
.container {
	height: 100%;
	background: #ffffff;
	.line-top {
		width: 750rpx;
		height: 20rpx;
		background: #f5f5f5;
	}
	.re-succ-box {
		padding-top: 170rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		.re-succ-img {
			margin-left: -30rpx;
			width: 362rpx;
			height: 267rpx;
			display: block;
		}
		.re-succ-tit {
			margin-top: -26rpx;
			font-size: 40rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #333333;
		}
		.re-succ-tip {
			font-size: 26rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #b3b3b3;
			margin-top: 20rpx;
		}
		.re-succ-btn {
			margin-top: 80rpx;
			width: 301rpx;
			height: 78rpx;
			border: 2rpx solid #24a17d;
			border-radius: 10rpx;
			font-size: 30rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #24a17d;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}
}
</style>
