<template>
	<view class="content">
		<image class="success-icon" src="../../static/img/paySuccess.png" mode=""></image>
		<text class="tit">支付成功</text>
		<view class="btn-group">
			<!-- <navigator :url="'/pages/order/orderDetail?id=' + orderId" open-type="redirect" class="mix-btn">查看订单</navigator> -->
			<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: 100rpx;
	width: 302rpx;
	height: 320rpx;
}
.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 #303030;
	border-radius: 10rpx;
	font-size: $font-lg;
	color: #fff;
	background-color: $base-color;
	border-radius: 10upx;
	&.hollow {
		background: #fff;
		color: #303133;
		border: 1px solid #ccc;
	}
}
</style>
