管灌系统农户端微信小程序(嘉峪关应用)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
.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;