<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">
			<navigator url="/pages/index/index" open-type="switchTab" class="mix-btn hollow">返回首页</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-top: 100upx;
	}

	.mix-btn {
		margin-top: 30upx;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 300rpx;
		height: 78rpx;
		border: 2rpx solid;
		border-image: linear-gradient(0deg, #CA57DC, #65B2E9) 10 10;
		background: linear-gradient(0deg, #CA57DC 0%, #65B2E9 100%);
		border-radius: 10rpx;
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #DC262B;
		background: linear-gradient(0deg, #CA57DC 0%, #65B2E9 100%);
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
	}
</style>