<template>
	<view class="content">
		<image class="success-icon" src="../../static/img/success.png" mode=""></image>
		<text class="tit">提交成功</text>
		<view class="btn-group">
			<!-- <navigator url="/pages/order/order?state=1" open-type="redirect" class="mix-btn">查看订单</navigator> -->
			<navigator url="/pages/index/index" open-type="switchTab" class="mix-btn hollow">返回首页</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: 2 //1为兑换支付成功2为预购成功
			};
		},
		onLoad(opt) {
			// 保存订单号
			// 	if ('type' in opt) {
			// 		this.type = opt.type;
			// 	}
			// 	if (this.type == 1) {
			// 		uni.setNavigationBarTitle({
			// 			title: '兑换成功'
			// 		});
			// 	}
			// 	if (this.type == 2) {
			// 		uni.setNavigationBarTitle({
			// 			title: '预约成功'
			// 		});
			// 	}
		},
		methods: {}
	};
</script>

<style lang="scss">
	.content {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.success-icon {
		margin-top: 200rpx;
		margin-left: -55rpx;
		width: 400rpx;
		height: 320rpx;
	}

	.tit {
	font-size: 40rpx;
	font-weight: 500;
	color: #333333;
	line-height: 40rpx;
	}

	.btn-group {
		padding-top: 130rpx;
		display: flex;
		justify-content: flex-start;
	}

	.mix-btn {

		display: flex;
		align-items: center;
		justify-content: center;
		width: 301rpx;
		height: 78rpx;
		background: #303030;
		border-radius: 10rpx;
		font-size: 30rpx;
		font-weight: 500;
		color: #fff;
	
	&.hollow {
			background: #fff;
			color: #303030;
			border: 2px solid #303030;
		}
	}
</style>
