.create-irrigation-container {
|
display: flex;
|
flex-direction: column;
|
height: 100vh;
|
background-color: #f5f5f5;
|
position: relative;
|
padding-bottom: 130rpx; /* 为底部按钮留出空间 */
|
box-sizing: border-box;
|
}
|
|
/* 表单项样式 */
|
.form-item {
|
display: flex;
|
flex-direction: row;
|
align-items: center;
|
background-color: #fff;
|
padding: 30rpx;
|
margin-bottom: 2rpx;
|
width: 100%;
|
box-sizing: border-box;
|
}
|
|
.form-label {
|
font-size: 28rpx;
|
color: #333;
|
font-weight: 500;
|
width: 200rpx; /* 固定标签宽度 */
|
flex-shrink: 0; /* 防止标签宽度被压缩 */
|
}
|
|
.form-input {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
height: 80rpx;
|
flex: 1; /* 输入框占据剩余空间 */
|
}
|
|
.form-input input {
|
flex: 1;
|
height: 100%;
|
font-size: 28rpx;
|
text-align: right; /* 文本右对齐 */
|
}
|
|
.time-input {
|
color: #333;
|
font-size: 28rpx;
|
text-align: right; /* 文本右对齐 */
|
display: flex;
|
justify-content: flex-end; /* 内容靠右对齐 */
|
align-items: center;
|
}
|
|
.time-text {
|
flex: 1;
|
text-align: right;
|
padding-right: 20rpx;
|
}
|
|
.placeholder {
|
color: #999;
|
}
|
|
.arrow-icon {
|
width: 32rpx;
|
height: 32rpx;
|
}
|
|
/* 列表容器样式 */
|
.list-container {
|
background-color: #fff;
|
margin-top: 20rpx;
|
flex: 1;
|
box-sizing: border-box;
|
width: 100%;
|
display: flex;
|
flex-direction: column;
|
padding: 0;
|
height: calc(100vh - 300rpx); /* 设置固定高度,减去顶部表单和底部按钮的高度 */
|
}
|
|
.list-title {
|
font-size: 28rpx;
|
color: #333;
|
margin-bottom: 30rpx;
|
font-weight: 500;
|
}
|
|
/* 项目列表样式 */
|
.project-list {
|
display: flex;
|
flex-direction: column;
|
width: 100%;
|
height: 100%; /* 占满容器高度 */
|
padding: 30rpx;
|
box-sizing: border-box;
|
}
|
|
.project-item {
|
margin-bottom: 30rpx; /* 增加项目之间的间距 */
|
border-radius: 8rpx;
|
overflow: visible; /* 允许内容溢出,以便轮灌组列表可以完全展开 */
|
border: 1rpx solid #eee;
|
width: 100%;
|
box-sizing: border-box;
|
}
|
|
.project-header {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
padding: 30rpx;
|
background-color: #f9f9f9;
|
width: 100%;
|
box-sizing: border-box;
|
}
|
|
.project-title {
|
display: flex;
|
align-items: center;
|
}
|
|
.project-name {
|
font-size: 28rpx;
|
color: #333;
|
font-weight: 500;
|
margin-left: 10rpx;
|
}
|
|
.project-duration {
|
font-size: 26rpx;
|
color: #666;
|
}
|
|
.toggle-icon {
|
width: 32rpx;
|
height: 32rpx;
|
transition: transform 0.3s;
|
}
|
|
.toggle-icon.expanded {
|
transform: rotate(180deg);
|
}
|
|
/* 轮灌组列表样式 */
|
.group-list {
|
display: none;
|
flex-direction: column;
|
background-color: #fff;
|
max-height: none; /* 移除最大高度限制 */
|
height: auto; /* 自适应高度 */
|
}
|
|
.group-list.expanded {
|
display: flex;
|
}
|
|
.group-item {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
padding: 25rpx 30rpx;
|
border-top: 1rpx solid #eee;
|
}
|
|
.group-item.selected {
|
background-color: #f0f9ff;
|
}
|
|
.group-info {
|
flex: 1;
|
display: flex;
|
align-items: center;
|
}
|
|
.group-name {
|
font-size: 26rpx;
|
color: #666;
|
}
|
|
.group-duration {
|
display: flex;
|
align-items: center;
|
}
|
|
.duration-input {
|
width: 100rpx;
|
height: 60rpx;
|
border: 1rpx solid #ddd;
|
border-radius: 6rpx;
|
text-align: center;
|
font-size: 26rpx;
|
margin-right: 10rpx;
|
}
|
|
.duration-unit {
|
font-size: 24rpx;
|
color: #999;
|
margin-right: 20rpx;
|
}
|
|
.group-check {
|
margin-left: 10rpx;
|
}
|
|
.check-icon {
|
width: 36rpx;
|
height: 36rpx;
|
}
|
|
/* 底部按钮样式 */
|
.bottom-button {
|
position: fixed;
|
bottom: 0;
|
left: 0;
|
right: 0;
|
padding: 20rpx 30rpx;
|
background-color: #fff;
|
box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
|
z-index: 100; /* 提高z-index确保按钮在最上层 */
|
}
|
|
.confirm-button {
|
width: 100%;
|
height: 88rpx;
|
line-height: 88rpx;
|
text-align: center;
|
background-color: #1890FF;
|
color: #fff;
|
font-size: 30rpx;
|
border-radius: 44rpx;
|
}
|
|
.confirm-button-hover {
|
opacity: 0.8;
|
}
|