<template>
	<view class="container">
		<!-- 状态栏占位 -->
		<view class="content">
			<view class="success-content">
				<image class="w320" src="@/static/image/img_success.png" mode="widthFix"></image>
				<view class="success-text">任务已完成</view>
			</view>
			
			<view class="back-btn-large" @click="goBackToList">
				返回任务列表
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 'px'
		}
	},
	methods: {
		goBack() {
			uni.navigateBack()
		},
		goBackToList() {
			uni.navigateBack({
				delta: 3
			})
		}
	}
}
</script>

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

.status-bar {
	width: 100%;
	background: #fff;
}

.header {
	position: relative;
	height: 88rpx;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-bottom: 1rpx solid #f0f0f0;
	
	.back-btn {
		position: absolute;
		left: 24rpx;
		width: 40rpx;
		height: 40rpx;
		
		image {
			width: 100%;
			height: 100%;
		}
	}
	
	.title {
		font-size: 36rpx;
		font-weight: bold;
		color: #333;
	}
	
	.header-right {
		position: absolute;
		right: 24rpx;
		display: flex;
		align-items: center;
		gap: 16rpx;
		
		.more-icon {
			font-size: 32rpx;
			color: #333;
		}
	}
}

.content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	// justify-content: center;
	padding-top: 190rpx;
}

.success-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 80rpx;
	
	.success-text {
		margin-top: 48rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 36rpx;
		color: #333333;
		line-height: 44rpx;
	}
}

.back-btn-large {
	width: 100%;
	max-width: 600rpx;
	height: 88rpx;
	background: #388BFF;
	border-radius: 44rpx;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32rpx;
	color: #fff;
	font-weight: 500;
}
</style>















