<template>
	<view class="content" :class="[AppTheme]">
		<view class="success">
			<u-icon name="checkmark-circle-fill" :color="primary" size="45"></u-icon>
			<text class="tit">支付成功</text>
		</view>
		<view class="btn-group">
			<view v-if="n_type==0">
				<navigator url="/pagesD/pages/order/order?state=0" open-type="redirect"
					class="mix-btn bg-linear-gradient">查看订单</navigator>
			</view>
			<view v-else>
				<navigator url="/pagesA/pages/subrecord/subrecord" open-type="redirect"
					class="mix-btn bg-linear-gradient">查看订单</navigator>
			</view>
			<navigator url="/pages/index/index" open-type="switchTab" class="mix-btn hollow">返回首页</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				primary:this.$theme.primary,
				settingFile: getApp().globalData.siteinfo,
				n_type: 0
			}
		},
		methods: {

		},
		onLoad(options) {
			this.n_type = options.type ? options.type : 0

		},
	}
</script>

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

	.success-icon {
		font-size: 160upx;
		color: limegreen;
		margin-top: 100upx;
	}

	.success {
		display: flex;
		justify-content: center;
		align-items: center;
		padding-top: 100upx;
		.tit {
			font-size: 38upx;
			color: #303133;
		}
	}


	.btn-group {
		padding-top: 100upx;
	}

	.mix-btn {
		margin-top: 30upx;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 600upx;
		height: 80upx;
		font-size: $font-lg;
		color: #fff;
		border-radius: 10upx;

		&.hollow {
			background: #fff;
			color: #303133;
			border: 1px solid #ccc;
		}
	}
</style>
