<template>
	<view class="content">
		<view class="bg">
			<view class="bottom"><image src="../../static/img/bottom.png" mode=""></image></view>
		</view>
		<view class="top">
			<view class="img">
				<image src="../../static/img/success.png" mode=""></image>
			</view>
			<view class="title">
				订单支付成功
			</view>
		</view>
		<view class="button"@click="navTo()" >
			返回首页
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			navTo(){
				uni.navigateTo({
					url:'index'
				})
			}
		}
	}
</script>

<style lang="scss">
	.content {
		width: 100%;
		position: absolute;
		height: 100%;
		background: linear-gradient(180deg, #00081B 0%, #00040D 100%);
		.bottom {
			position: absolute;
			bottom: 0;
			width: 750rpx;
			height: 588rpx;
			image {
				width: 100%;
				height: 100%;
			}
		}

		.top {
			display: flex;
			flex-direction: column;
			align-items: center;
			margin: 147rpx  auto 40rpx;

			.img {
				position: relative;
				width: 302rpx;
				height: 302rpx;

				image {
					height: 100%;
					width: 100%;

				}
			}

			.title {
				margin-top: 40rpx;
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #FFFFFF;
				line-height: 42rpx;
			}
		}

		.button {
			margin: 20rpx auto;
			text-align: center;
			width: 301rpx;
			height: 78rpx;
			border: 2rpx solid #08EDE7;
			border-radius: 10rpx;
			font-size: 30rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #08EDE7;
			line-height: 78rpx;
		}
		
	}
</style>
