<template>
	<view class="success">
		<view class="header">
			<image src="../../static/img/submitsuccess.png" mode=""></image><br>
			<text>提交成功</text>
		</view>
		<view class="button" @click="tabTo('/pages/index/index')" >返回首页</view>
		<!-- <navigator url="@/pages/index/index"><view class="btntoindex">返回首页</view></navigator> -->
		<!-- <navigator url="/pages/index/index"><view class="btntoindex">返回首页</view></navigator> -->
	</view>
</template>

<script>
	export default {
		methods: {
			//跳转
			tabTo(url) {
				uni.switchTab({
					url: url
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	page {
		height: 100%;
		background-color: #fff;
	}
	.success {
		.header {
			margin-top: 200rpx;
			text-align: center;
			image {
				width: 400rpx;
				height: 300rpx;
			}
			text {
				position: relative;
				top: -40rpx;
				font-size: 38rpx;
				color: #333333;
			}
		}
		.button {
			margin: 50rpx auto;
			border-radius: 10rpx;
			padding: 15rpx;
			text-align: center;
			width: 320rpx;
			border: solid 1rpx #438BED;
			color: #438BED;
		}
	}
</style>
