index.sass 4.94 KB
page {
	background: #F2F3F7;
}
.page-title {
	font-size: var(--fontSize34);
	color: #222222;
	font-weight: 600;
}
.bg {
	width: 100%;
	height: var(--fontSize480);
	background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/page-bg.png') no-repeat;
	background-size: 100% var(--fontSize480);
	position: fixed;
	left: 0;
	top: 0;
	z-index: -1;
}
.container {
	height: 100vh;
	box-sizing: border-box;
	.user-info {
		padding: 8rpx 40rpx;
		display: flex;
		align-items: center;
		font-size: 32rpx;
		color: #222222;
		font-weight: 500;
		image {
			flex-shrink: 0;
			width: 56rpx;
			height: 56rpx;
			border-radius: 50%;
			overflow: hidden;
			margin-right: 16rpx;
		}
	}
	.static-info {
		display: flex;
		align-items: center;
		gap: 6rpx;
		padding: 16rpx 24rpx 24rpx;
		.static-item {
			box-sizing: border-box;
			padding: 24rpx;
			flex: 1;
			border-radius: 16rpx;
			font-size: 28rpx;
			color: #FFFFFF;
			.label {
				margin-bottom: 8rpx;
			}
			.value {
				font-size: 40rpx;
				font-family: 'numberBold';
			}
		}
	}
	.date {
		padding: 16rpx 24rpx;
	}
	.data-container {
		.sticky-box {
			position: sticky;
			top: 0;
			z-index: 100;
			&.is-sticky {
				.tab-box {
					background: #FFFFFF;
				}
				.date {
					background: #FFFFFF;
				}
			}
		}
		.count-row {
			display: flex;
			align-items: center;
			justify-content: space-between;
			background: #F2F3F7;
			padding: 16rpx 24rpx;
		}

		.number {
			height: 30rpx;
			font-size: 24rpx;
			color: #999999;
		}

		.sub-tab {
			display: flex;
			align-items: center;
			gap: 24rpx;
			padding: 8rpx;
			border-radius: 16rpx;
			background: #FFFFFF;
		}

		.center-switch {
			display: flex;
			align-items: center;
			padding: 4rpx 8rpx;
			border-radius: 8rpx;
			&.active {
				background: #E7EDFE;
			}
		}

		.center-switch__text {
			font-size: 26rpx;
			color: #292D33;
			&.active {
				color: #2C66F7;
				font-weight: 600;
			}
		}

		.center-switch__icon {
			font-size: 26rpx;
			color: #BEC1C7;
			line-height: 1;
			margin: 0 6rpx;
		}
		.content-box {
			padding: 0 24rpx;
			box-sizing: border-box;
			.list {
				.item {
					border-radius: 12px;
					background: #FFFFFF;
					padding: 24rpx;
					margin-bottom: 24rpx;
					&:last-child{
						margin-bottom: 0;
					}
					.item-top {
						display: flex;
						align-items: center;
						.status {
							font-size: 22rpx;
							padding: 8rpx 12rpx;
							border-radius: 8rpx;
						}
						.name {
							margin-left: 12rpx;
							font-size: 28rpx;
							font-weight: 500;
							color: #222222;
						}
					}
					.list-item {
						margin: 24rpx 0;
						display: flex;
						align-items: center;
						font-size: 24rpx;
						color: #999999;
						.label{
							flex-shrink: 0;
						}
						.icon {
							margin-right: 8rpx;
							width: 32rpx;
							height: 32rpx;
							flex-shrink: 0;
						}
						.break-all {
							width: calc(100% - 170rpx);
							display: inline-block;
							word-break: break-all;
						}
						.progress {
							display: flex;
							align-items: center;
							justify-content: space-between;
							position: relative;
							width: 100%;
							.progress-line {
								width: calc(100% - 82rpx);
								height: 12rpx;
								border-radius: 12rpx;
								opacity: 1;
								background: #f2f3f7;
							}
							.progress-item {
								position: absolute;
								top: 50%;
								transform: translateY(-50%);
								height: 12rpx;
								border-radius: 12rpx;
								background: linear-gradient(270deg, #3d76fc 0%, #4da6ff 100%);
								max-width: calc(100% - 82rpx);
							}
							.num {
								font-size: 24rpx;
								color: #999999;
							}
						}
					}
					.btn-box {
						display: flex;
						justify-content: flex-end;
						.btn {
							width: 144rpx;
							box-sizing: border-box;
							text-align: center;
							padding: 12rpx 0;
							border-radius: 60rpx;
							opacity: 1;
							border: 1rpx solid #2c66f780;
							color: #2C66F7;
							font-size: 26rpx;
							font-weight: 500;
							&.primary {
								background: #2c66f71a;
								border: none;
							}
						}
					}
				}
			}
		}
	}
}
.add-btn-box {
	width: 260rpx;
	height: 96rpx;
	border-radius: 48rpx;
	opacity: 1;
	background: #2C66F7;
	position: fixed;
	bottom: 32rpx;
	right: 20rpx;
	font-size: 24rpx;
	font-weight: 500;
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
}
.addBtn {
	width: 260rpx;
	height: 96rpx;
	border-radius: 48rpx;
	opacity: 1;
	background: #2C66F7;
	position: fixed;
	bottom: 32rpx;
	right: 20rpx;
	font-size: 32rpx;
	font-weight: 500;
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	.btn-text {
		margin-left: 20rpx;
	}
}
.arrowIcon {
	width: 32rpx;
	height: 96rpx;
	opacity: 1;
	position: fixed;
	bottom: 32rpx;
	right: 0;
	border-radius: 16rpx 0 0 16rpx;
	background: #2C66F7;
	box-shadow: 0 4rpx 20rpx 0 #0000001a;
	display: flex;
	align-items: center;
	justify-content: center;
	.image {
		width: 32rpx;
		height: 32rpx;
	}
}