<template>
	<view class="page-cont">
		<view class="icon-cont">
			<u-icon class="icon" name="checkmark" color="#ffffff" size="80"></u-icon>
			<view>支付成功</view>
			<view>150 乐豆</view>
		</view>
		<view class="back-btn">
			<u-button @click="toHome">返回首页</u-button>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			orderId: '' //订单id
		}
	},
	onLoad(option) {
		console.log(option,'option')
		this.orderId = option.id
	},
	methods: {
		// 查看订单详情
		toOrderDetail() {
			uni.navigateTo({
			    url: '/pages/order/orderDetail?id=' + this.orderId
			})
		},
		// 返回首页
		toHome() {
			uni.reLaunch({
			    url: '/pages/index/index'
			})
		}
	}
}
</script>

<style lang="less">
	page{
		height: 100%;
	}
	.page-cont{
		width: 100%;
		height: 100%;
		background-color: #fff;
		padding: 0 40upx;
		.icon-cont{
			width: 100%;
			height: 400upx;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			>view{
				font-size: 30upx;
				margin-top: 40upx;
			}
		}
		.icon{
			width: 120upx;
			height: 120upx;
			background-color: #00aa00;
			display: flex;
			justify-content: center;
			border-radius: 50%;
		}
		.back-btn{
			margin-top: 40upx;
		}
	}
</style>
