<template>
	<view class="container">
		<!-- 空状态图标区域 -->
		<view class="empty-icon">
			<view class="file-icon">
				<view class="file-corner"></view>
				<view class="file-line"></view>
				<view class="file-line"></view>
			</view>
			<view class="warn-icon">
				<text>!</text>
			</view>
		</view>

		<!-- 提示文字 -->
		<view class="tip-text">还未上报延包摸底数据</view>

		<!-- 操作按钮 -->
		<view class="btn-wrap">
			<button class="submit-btn" @click="goToReport">去上报</button>
		</view>
	</view>
</template>

<script setup lang="ts">
	import { onLoad } from '@dcloudio/uni-app';
	import { ref } from 'vue';
	const getCbfbmjump = ref([]);

	// 导入后即可正常使用 onLoad
	onLoad((options) => {
		getCbfbmjump.value = JSON.parse(decodeURIComponent(options.groupInfo));
		console.log(222, getCbfbmjump.value)

	});
	const goToReport = () => {
		console.log(1123,getCbfbmjump.value)
		// 跳转到上报页面，根据实际路由修改
		uni.navigateTo({
			url: `/pages/Escalation/index?groupInfo=${encodeURIComponent(JSON.stringify(getCbfbmjump.value))}`
		})
	}
</script>

<style lang="scss" scoped>
	.container {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		min-height: 100vh;
		background-color: #fff;
		padding: 0 60rpx;
	}

	.empty-icon {
		position: relative;
		width: 200rpx;
		height: 200rpx;
		margin-bottom: 60rpx;

		.file-icon {
			width: 160rpx;
			height: 200rpx;
			background-color: #e5e5e5;
			border-radius: 8rpx;
			position: relative;

			.file-corner {
				position: absolute;
				top: 0;
				right: 0;
				width: 40rpx;
				height: 40rpx;
				background-color: #fff;
				clip-path: polygon(100% 0, 0 0, 100% 100%);
			}

			.file-line {
				width: 100rpx;
				height: 16rpx;
				background-color: #d5d5d5;
				border-radius: 8rpx;
				position: absolute;
				left: 30rpx;

				&:first-child {
					top: 60rpx;
				}

				&:last-child {
					top: 100rpx;
				}
			}
		}

		.warn-icon {
			width: 80rpx;
			height: 80rpx;
			background-color: #e5e5e5;
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			position: absolute;
			right: 0;
			bottom: 0;

			text {
				font-size: 40rpx;
				color: #fff;
				font-weight: bold;
				line-height: 80rpx;
			}
		}
	}

	.tip-text {
		font-size: 36rpx;
		color: #333;
		margin-bottom: 120rpx;
	}

	.btn-wrap {
		width: 100%;
	}

	.submit-btn {
		width: 100%;
		height: 88rpx;
		background-color: #007aff;
		color: #fff;
		border-radius: 44rpx;
		font-size: 32rpx;
		line-height: 88rpx;
		text-align: center;
		border: none;
	}
</style>