From 5f9cf32984bb26a99e3fe0359e295c7a27cd5069 Mon Sep 17 00:00:00 2001
From: zuoxiao <zuoxiao>
Date: 星期二, 22 四月 2025 14:17:13 +0800
Subject: [PATCH] 重构灌溉组详情页面的请求逻辑,改用请求库简化API调用;更新WXML以优化组名展示样式,提升用户体验。

---
 pages/createIrrigation/createIrrigation.wxss |  121 ++++++++++++++++++++++++++++++++++++++-
 1 files changed, 116 insertions(+), 5 deletions(-)

diff --git a/pages/createIrrigation/createIrrigation.wxss b/pages/createIrrigation/createIrrigation.wxss
index 3872378..3ea92a9 100644
--- a/pages/createIrrigation/createIrrigation.wxss
+++ b/pages/createIrrigation/createIrrigation.wxss
@@ -8,6 +8,44 @@
   box-sizing: border-box;
 }
 
+/* 閫夋嫨鍣ㄥ鍣ㄦ牱寮� */
+.picker-container {
+  position: fixed;
+  top: 0;
+  left: 0;
+  width: 100%;
+  height: 100%;
+  z-index: 9999;
+  pointer-events: none;
+}
+
+/* 钂欏眰鏍峰紡 */
+.picker-mask {
+  position: absolute;
+  top: 0;
+  left: 0;
+  width: 100%;
+  height: 100%;
+  background-color: rgba(0, 0, 0, 0.5);
+  pointer-events: auto;
+}
+
+.picker-container .t-date-time-picker,
+.picker-container .t-picker {
+  pointer-events: auto;
+}
+
+/* 褰撻�夋嫨鍣ㄦ樉绀烘椂 */
+.t-date-time-picker[visible],
+.t-picker[visible] {
+  position: absolute;
+  bottom: 0;
+  left: 0;
+  width: 100%;
+  background-color: #fff;
+  border-radius: 24rpx 24rpx 0 0;
+}
+
 /* 琛ㄥ崟椤规牱寮� */
 .form-item {
   display: flex;
@@ -21,11 +59,17 @@
 }
 
 .form-label {
+  display: flex;
+  align-items: center;
   font-size: 28rpx;
   color: #333;
-  font-weight: 500;
-  width: 200rpx; /* 鍥哄畾鏍囩瀹藉害 */
-  flex-shrink: 0; /* 闃叉鏍囩瀹藉害琚帇缂� */
+  margin-bottom: 16rpx;
+}
+
+.info-icon {
+  width: 32rpx;
+  height: 32rpx;
+  margin-left: 8rpx;
 }
 
 .form-input {
@@ -213,14 +257,31 @@
   flex-wrap: wrap;
 }
 
+.group-index {
+  color: #1890FF;
+  margin-right: 8rpx;
+  font-size: 26rpx;
+}
+
 .group-name {
+  display: flex;
+  align-items: center;
   font-size: 26rpx;
   color: #666;
   position: relative;
-  padding-left: 10rpx;
-  background-color: rgba(24, 144, 255, 0.1);
   padding: 4rpx 20rpx;
+  background-color: rgba(24, 144, 255, 0.1);
   border-radius: 10rpx;
+}
+
+.group-name-text {
+  color: #333;
+  margin-right: 8rpx;
+}
+
+.group-intake-count {
+  color: #999;
+  font-size: 24rpx;
 }
 
 .group-hint {
@@ -361,4 +422,54 @@
   font-size: 32rpx;
   color: #1890FF;
   font-weight: 500;
+}
+
+.empty-container {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  padding: 40rpx 0;
+}
+
+.empty-image {
+  width: 200rpx;
+  height: 200rpx;
+  margin-bottom: 20rpx;
+}
+
+.empty-text {
+  color: #999;
+  font-size: 30rpx;
+}
+
+.empty-tip {
+  font-size: 28rpx;
+  color: #999;
+}
+
+.dialog-content {
+  padding: 20rpx 0;
+}
+
+.dialog-section {
+  margin-bottom: 24rpx;
+}
+
+.dialog-section:last-child {
+  margin-bottom: 0;
+}
+
+.dialog-title {
+  font-size: 28rpx;
+  color: #333;
+  font-weight: 500;
+  margin-bottom: 8rpx;
+}
+
+.dialog-desc {
+  font-size: 26rpx;
+  color: #666;
+  line-height: 1.6;
+  padding-left: 20rpx;
 } 
\ No newline at end of file

--
Gitblit v1.8.0