<template>
	<view class="content">
		<view class="success-icon">
			<image src="../../static/img/success.png" mode=""></image>
		</view>
		<text class="tit">支付成功</text>
		<view class="btn-group flex">
			<navigator url="/pages/index/index" open-type="switchTab" class="mix-btn1">返回首页</navigator>
			<navigator :url="'/pages/order/orderDetail?id='+orderId" open-type="redirect" class="mix-btn2">查看订单
			</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				orderId: ''
			}
		},
		onLoad(opt) {
			// 保存订单号
			this.orderId = opt.orderid;
		},
		methods: {

		}
	}
</script>

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

	.success-icon {
		margin-top: 100upx;
		width: 300rpx;
		height: 300rpx;

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

	.tit {
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #333333;
		margin-top: 40rpx;
	}

	.btn-group {
		padding: 100upx 62rpx 0;
	}

	.mix-btn1 {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 300rpx;
		height: 78rpx;
		border: 2px solid #FE7C1C;
		border-radius: 10rpx;
		border: 2rpx solid;
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #FE7C1C;
	}

	.mix-btn2 {
		margin-left: 20rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 300rpx;
		height: 78rpx;
		background: #FE7C1C;
		border-radius: 10rpx;
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
	}
</style>