<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: 350rpx;
			height: 80rpx;
			background: #ecd0a9;
			border-radius: 40rpx;
			font-size: 36rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #ffffff;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}
}
</style>
