<template>
	<view class="container">
		<!-- 导航栏 -->
		<view class="navbar">
			<view class="nav-left" @click="goBack">
				<text class="back-icon"><</text>
			</view>
			<view class="nav-title">完成任务</view>
			<view class="nav-right">
				<text class="more-icon">...</text>
				<text class="eye-icon">O</text>
			</view>
		</view>
		
		<!-- 内容区域 -->
		<view class="content">
			<!-- 成功图标 -->
			<view class="success-icon-wrapper">
				<view class="success-icon">
					<view class="circle circle-outer"></view>
					<view class="circle circle-middle"></view>
					<view class="circle circle-inner">
						<text class="checkmark">✓</text>
					</view>
					<view class="decoration decoration-1">○</view>
					<view class="decoration decoration-2">·</view>
					<view class="decoration decoration-3">+</view>
					<view class="decoration decoration-4">·</view>
				</view>
			</view>
			
			<!-- 成功文字 -->
			<view class="success-title">已提交</view>
			
			<!-- 提示文字 -->
			<view class="success-tips">提现申请发起后,预计在3个工作日到账</view>
		</view>
		
		<!-- 底部按钮 -->
		<view class="bottom-bar">
			<view class="home-btn" @click="goHome">返回首页</view>
		</view>
	</view>
</template>

<script>
export default {
	methods: {
		goBack() {
			uni.navigateBack()
		},
		goHome() {
			uni.switchTab({
				url: '/pages/home/index'
			})
		}
	}
}
</script>

<style lang="scss" scoped>
.container {
	min-height: 100vh;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20rpx 24rpx;
	background: #fff;
	border-bottom: 1rpx solid #f0f0f0;
	
	.nav-left {
		width: 60rpx;
		
		.back-icon {
			font-size: 36rpx;
			color: #333;
			font-weight: bold;
		}
	}
	
	.nav-title {
		flex: 1;
		text-align: center;
		font-size: 36rpx;
		font-weight: bold;
		color: #333;
	}
	
	.nav-right {
		display: flex;
		align-items: center;
		gap: 24rpx;
		width: 60rpx;
		justify-content: flex-end;
		
		.more-icon {
			font-size: 32rpx;
			color: #333;
		}
		
		.eye-icon {
			font-size: 32rpx;
			color: #333;
		}
	}
}

.content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80rpx 24rpx;
}

.success-icon-wrapper {
	position: relative;
	margin-bottom: 48rpx;
	
	.success-icon {
		position: relative;
		width: 240rpx;
		height: 240rpx;
		
		.circle {
			position: absolute;
			left: 50%;
			top: 50%;
			transform: translate(-50%, -50%);
			border-radius: 50%;
			
			&.circle-outer {
				width: 240rpx;
				height: 240rpx;
				background: rgba(82, 196, 26, 0.1);
			}
			
			&.circle-middle {
				width: 180rpx;
				height: 180rpx;
				background: rgba(82, 196, 26, 0.3);
			}
			
			&.circle-inner {
				width: 120rpx;
				height: 120rpx;
				background: #52C41A;
				display: flex;
				align-items: center;
				justify-content: center;
				
				.checkmark {
					font-size: 72rpx;
					color: #fff;
					font-weight: bold;
					line-height: 1;
				}
			}
		}
		
		.decoration {
			position: absolute;
			color: #FFC107;
			font-size: 32rpx;
			
			&.decoration-1 {
				left: 20rpx;
				top: 40rpx;
				color: rgba(82, 196, 26, 0.4);
			}
			
			&.decoration-2 {
				left: 40rpx;
				top: 20rpx;
			}
			
			&.decoration-3 {
				right: 40rpx;
				top: 20rpx;
				color: rgba(82, 196, 26, 0.4);
			}
			
			&.decoration-4 {
				right: 20rpx;
				top: 60rpx;
			}
		}
	}
}

.success-title {
	font-size: 48rpx;
	font-weight: bold;
	color: #333;
	margin-bottom: 32rpx;
}

.success-tips {
	font-size: 26rpx;
	color: #999;
	text-align: center;
	line-height: 1.8;
}

.bottom-bar {
	padding: 24rpx;
	background: #fff;
	border-top: 1rpx solid #f0f0f0;
	
	.home-btn {
		width: 100%;
		height: 88rpx;
		background: #388BFF;
		border-radius: 44rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 32rpx;
		font-weight: bold;
		color: #fff;
	}
}
</style>


