管灌系统农户端微信小程序(嘉峪关应用)
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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
/* pages/home/home.wxss */
.base-wrapper {
    background-color: #ececec;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* 防止底部区域滚动 */
    display: flex;
    flex-direction: column;
}
 
.head-wrapper {
    background-color: #1890FF;
    height: 25vh;
    width: 100%;
    padding-left: 40rpx;
    display: grid;
    flex-direction: column;
    align-items: center;
    border-bottom-left-radius: 5rpx;
    border-bottom-right-radius: 5rpx;
    z-index: 1;
    border-top: 1px solid #0484fc;
 
}
 
.head-top {
    display: flex;
    align-items: center;
    /* 在纵向方向上居中对齐 */
}
 
 
.head-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    margin-left: 15rpx;
}
 
.head-button-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 15rpx;
}
 
 
.head-bottom {
    margin-top: 20rpx;
    color: #fff;
    font-size: 35rpx;
}
 
.unbind {
    font-size: 30rpx;
    /* 按钮文字的字体大小 */
    color: #1890FF;
    /* 按钮文字颜色 */
    background-color: #fff;
    /* 按钮背景颜色 */
    border: none;
    /* 去掉按钮边框 */
    border-radius: 20px;
    /* 按钮圆角 */
    padding-left: 20rpx;
    padding-right: 20rpx;
    padding-top: 5rpx;
    padding-bottom: 5rpx;
    margin-bottom: 10rpx;
}
 
.head-text-wrapper text {
    color: #fff;
    font-size: 32rpx;
}
 
.balance-label {
    margin-bottom: 40rpx;
    color: #fff;
    font-size: 35rpx;
}
 
.center-wrapper {
    margin-top: -40rpx;
    margin-right: 20rpx;
    margin-left: 20rpx;
    margin-bottom: 10rpx;
    height: 18vh;
    background-color: #fff;
    border-radius: 5px;
    display: flex;
    padding-top: 20rpx;
    padding-bottom: 20rpx;
    justify-content: space-around;
    z-index: 1;
    /* 使 center-wrapper 在头部之上 */
}
 
.center-view {
    flex: 1;
    /* 每个元素平分宽度 */
    display: flex;
    flex-direction: column;
    /* 在纵向上排列子元素 */
    align-items: center;
    /* 在纵向上居中显示子元素 */
    justify-content: center;
    /* 在横向和纵向上都居中显示子元素 */
}
 
.center-view image,
.center-view t-avatar {
    width: 90rpx;
    /* 根据需要调整图标大小 */
    height: 90rpx;
    /* 根据需要调整图标大小 */
    margin-bottom: 10rpx;
    /* 图标和文本之间的间距 */
}
 
.center-view text {
    margin-top: 15rpx;
    font-size: 30rpx;
    color: #1890FF;
}
 
.bottom-wrapper {
    margin-right: 20rpx;
    margin-left: 20rpx;
    display: flex;
    flex-direction: column;
    margin-top: 48vh;
}
 
.scroll-view {
    flex: 1;
    overflow-y: auto;
    /* 允许垂直滚动 */
    z-index: 0;
    /* 确保 scroll-view 在头部和 center-wrapper 之下 */
    background-color: #f5f5f5;
    margin-top: 0;
    padding-top: 0;
    box-sizing: border-box;
}
 
.scroll-bg {
    padding: 20rpx 0;
    box-sizing: border-box;
    padding-top: 0;
    width: 100%;
}
 
/* 确保所有含宽度的元素使用相同的计算方式 */
.bottom-title,
.scroll-bg > view {
    width: calc(100% - 40rpx);
    margin-left: 20rpx;
    margin-right: 20rpx;
    box-sizing: border-box;
}
 
.scroll-bg > view {
    margin-bottom: 20rpx;
    border-radius: 12rpx;
    overflow: hidden;
    box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
}
 
t-swipe-cell {
    display: block;
    width: 100%;
    border-radius: 12rpx;
    overflow: hidden;
}
 
.swipe-cell {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    width: 100%;
    height: 100%;
    border-radius: 12rpx;
    overflow: hidden;
}
 
.list-item {
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 30rpx;
    width: 100%;
    box-sizing: border-box;
}
 
.item-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}
 
.left-intake-name {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 20rpx;
    padding-left: 4rpx;
}
 
.item-img-left {
    width: 40rpx;
    height: 40rpx;
    flex-shrink: 0;
}
 
.item-img {
    width: 40rpx;
    height: 40rpx;
    flex-shrink: 0;
}
 
.left-intake-name .item-img {
    margin-left: 8rpx;
}
 
.water-intake-name {
    font-size: 42rpx !important;
    margin-left: 16rpx;
    margin-right: 15rpx;
    white-space: nowrap; /* 防止文本换行 */
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
}
 
.left-time {
    width: 100%;
    display: flex;
    align-items: center;
    color: #666;
    flex-wrap: nowrap;
    overflow: hidden;
    padding-right: 10rpx;
    padding-left: 4rpx;
}
 
.flow-time {
    font-size: 28rpx !important;
    margin-left: 16rpx;
    margin-right: 2rpx;
    white-space: nowrap;
    color: #666;
    display: inline-block;
}
 
.flow-rate {
    font-size: 28rpx !important;
    margin-left: 6rpx;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    color: #666;
}
 
.item-right {
    display: flex;
    align-items: center;
    margin-left: 20rpx;
}
 
.item-button {
    display: flex;
    height: 70rpx;
    padding: 0 40rpx;
    background-color: #1890FF;
    color: white;
    border: none;
    border-radius: 35rpx;
    font-size: 30rpx !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* 确保文字不换行 */
    box-shadow: 0 4rpx 8rpx rgba(24, 144, 255, 0.2);
    transition: all 0.3s;
}
 
.item-button:active {
    background-color: #1378d8;
    transform: scale(0.98);
}
 
.delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140rpx;
    height: 100%;
    color: white;
    background-color: #e34d59;
    font-size: 30rpx;
}
 
.list-item text {
    font-size: 30rpx;
}
 
 
 
.list-item-piping {
    display: flex;
    flex-direction: column;
    align-items: center;
}
 
.bottom-title {
    border-radius: 12rpx 12rpx 0 0;
    background-color: #fff;
    display: flex;
    align-items: center;
    /* 垂直方向居中 */
    justify-content: space-between;
    /* 子元素在主轴上的对齐方式 */
    padding: 30rpx;
    /* 容器的内边距 */
    width: calc(100% - 40rpx);
    margin-left: 20rpx;
    margin-right: 20rpx;
    margin-top: 20rpx;
    margin-bottom: 0;
    box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.03);
    position: relative;
    box-sizing: border-box;
    border-bottom: 1rpx solid #e7e7e7;
}
 
.bottom-title-text {
    margin-right: 10rpx;
    /* 给文本和图标之间添加一些间距 */
    font-size: 34rpx;
    /* 字体大小 */
    color: #333;
    /* 字体颜色 */
    font-weight: 500;
}
 
.refresh-button {
    margin-left: auto;
    /* 将按钮推到容器的最右侧 */
    font-size: 28rpx;
    /* 按钮文字的字体大小 */
    color: #fff;
    /* 按钮文字颜色 */
    background-color: #1890FF;
    /* 按钮背景颜色 */
    border: none;
    /* 去掉按钮边框 */
    border-radius: 30rpx;
    /* 按钮圆角 */
    padding: 15rpx 30rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4rpx 8rpx rgba(24, 144, 255, 0.2);
    transition: all 0.3s;
}
 
.refresh-button:active {
    background-color: #1378d8;
    transform: scale(0.98);
}
 
.refresh-view {
    text-align: center;
    padding: 40rpx;
    display: flex;
    justify-content: center;
    align-items: center;
}
 
.dot {
    width: 16rpx;
    height: 16rpx;
    background-color: #1890FF;
    border-radius: 50%;
    margin: 0 8rpx;
    animation: blink 1.4s infinite both;
    opacity: 0.7;
}
 
.dot:nth-child(2) {
    animation-delay: 0.2s;
}
 
.dot:nth-child(3) {
    animation-delay: 0.4s;
}
 
@keyframes blink {
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
}
 
.switch {
    --td-switch-checked-color: #1890FF;
}
 
/* 修改选择器,使其不会影响flow-time */
.item-left .water-intake-name {
    min-width: 150rpx;
}
 
.dialog {
    --td-dialog-content-font-size: 40rpx;
    --td-dialog-content-line-height: 50rpx
}
 
.noMore-View-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 80rpx;
    padding: 40rpx;
}
 
.noMore-img {
    width: 200rpx;
    height: 200rpx;
    margin-bottom: 20rpx;
    opacity: 0.7;
}
 
.noMore-text {
    font-size: 32rpx;
    color: #999;
}
 
.error-dialog {
    --td-dialog-title-color: red;
    --td-dialog-title-font-size: 40rpx;
}
 
.scen-view {
    position: absolute;
    /* 添加这行 */
    top: 15rpx;
    /* 根据需要调整距离顶部的距离 */
    right: 30rpx;
    /* 根据需要调整距离右侧的距离 */
    display: flex;
    align-items: center;
    /* 垂直方向居中 */
    justify-content: space-between;
}
 
.scen-code {
    width: 40rpx;
    height: 40rpx;
}
 
.scen-view text {
    font-size: 30rpx;
    color: #ffffff;
}
 
.project-select-container {
    padding: 20rpx 0;
}
 
.project-select-container .t-radio {
    margin-bottom: 20rpx;
    padding: 10rpx 0;
}
 
.project-select-container .t-radio:last-child {
    margin-bottom: 0;
}
 
.project-select-container .t-radio__label {
    font-size: 28rpx;
    color: #333;
}
 
.project-select-container .t-radio--checked {
    background: #e6f4ff;
}
 
/* 弹窗按钮样式 */
.dialog__button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 32rpx;
}
 
.dialog__button-group .t-button {
    flex: 1;
    margin: 0 16rpx;
}
 
.dialog__button-group .t-button:first-child {
    margin-left: 0;
}
 
.dialog__button-group .t-button:last-child {
    margin-right: 0;
}
 
.project-select-popup {
    background-color: #fff;
    border-radius: 16rpx;
    width: 600rpx;
}
 
.popup-title {
    font-size: 32rpx;
    font-weight: bold;
    text-align: center;
    padding: 32rpx;
    border-bottom: 1px solid #f0f0f0;
}
 
.popup-content {
    padding: 32rpx;
}
 
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 20rpx;
}
 
.radio-group .t-radio {
    margin-bottom: 20rpx;
    padding: 20rpx;
    background: #f5f5f5;
    border-radius: 8rpx;
}
 
.radio-group .t-radio:last-child {
    margin-bottom: 0;
}
 
.popup-footer {
    padding: 32rpx;
    border-top: 1px solid #f0f0f0;
}
 
.dialog-content {
    padding: 32rpx;
    max-height: 60vh;
}
 
.project-options {
    display: flex;
    flex-direction: column;
    gap: 20rpx;
}
 
.project-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30rpx;
    background: #f5f5f5;
    border-radius: 8rpx;
    font-size: 32rpx;
}
 
.project-option.selected {
    background: #e6f4ff;
    border: 2rpx solid #1890FF;
}
 
.selected-icon {
    width: 40rpx;
    height: 40rpx;
}
 
.project-dialog-content {
    padding: 20rpx;
}
 
.project-item {
    margin: 20rpx 0;
    padding: 30rpx;
    background-color: #f5f5f5;
    border-radius: 8rpx;
    text-align: center;
    font-size: 32rpx;
}
 
.project-item-selected {
    background-color: #e6f4ff;
    color: #1890FF;
    border: 2rpx solid #1890FF;
}
 
.radio-content {
    padding: 30rpx 20rpx 10rpx;
}
 
.radio-content .t-radio {
    margin-bottom: 20rpx;
    padding: 20rpx;
    background-color: #f5f5f5;
    border-radius: 8rpx;
}
 
.radio-content .t-radio--checked {
    background-color: #e6f4ff;
}
 
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}
 
.project-modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}
 
.project-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 600rpx;
    background-color: #fff;
    border-radius: 16rpx;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
 
.project-modal-header {
    padding: 24rpx;
    text-align: center;
    font-size: 32rpx;
    font-weight: bold;
    border-bottom: 1rpx solid #eee;
}
 
.project-modal-body {
    padding: 0;
    max-height: 60vh;
}
 
.project-scroll-view {
    max-height: 55vh; /* 稍微减小高度,确保在小屏幕上也能看到底部按钮 */
    height: auto;
}
 
.project-radio-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}
 
.project-radio {
    padding: 24rpx;
    display: flex;
    align-items: center;
    border-bottom: 1rpx solid #f5f5f5;
    width: 100%;
    box-sizing: border-box;
}
 
.project-radio radio {
    margin-right: 16rpx;
}
 
.project-radio text {
    font-size: 30rpx;
    color: #333;
}
 
.project-radio-selected {
    background-color: #f0f9ff;
}
 
.project-modal-footer {
    padding: 24rpx;
    border-top: 1rpx solid #eee;
}
 
.project-modal-btn {
    background-color: #1890FF;
    color: white;
    border-radius: 8rpx;
    font-size: 28rpx;
    padding: 16rpx 0;
}
 
.project-modal-btn[disabled] {
    background-color: #cccccc;
    color: #666666;
}
 
.info-img {
    width: 50rpx;
    height: 50rpx;
}
 
.title-center {
    position: absolute;
    /* 绝对定位 */
    left: 50%;
    /* 移动到容器的中间 */
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    /* 使子元素在主轴上均匀分布 */
    align-items: center;
    /* 垂直居中对齐 */
}
.content-container {
    white-space: pre-line;
    word-wrap: break-word;
    /* 防止长单词无法换行 */
  }
  
  .long-content {
    height: 500rpx;
    margin-top: 16rpx;
    font-size: 32rpx;
    color: #888;
  }