From 61e89d748cc7f5456c20866e672a4bde153534f1 Mon Sep 17 00:00:00 2001
From: zuoxiao <zuoxiao>
Date: 星期一, 21 四月 2025 17:18:53 +0800
Subject: [PATCH] 优化项目配置,重构项目URL管理逻辑,改为使用动态配置;更新灌溉组详情页面,添加详细信息展示和请求逻辑,提升用户体验;更新首页项目选择器,支持动态项目列表展示。
---
pages/irrigationDetail/irrigationDetail.wxss | 67 +++++++++++++++++++++++++++++++++
1 files changed, 66 insertions(+), 1 deletions(-)
diff --git a/pages/irrigationDetail/irrigationDetail.wxss b/pages/irrigationDetail/irrigationDetail.wxss
index 55c152d..49b79e4 100644
--- a/pages/irrigationDetail/irrigationDetail.wxss
+++ b/pages/irrigationDetail/irrigationDetail.wxss
@@ -86,6 +86,25 @@
font-weight: 500;
}
+/* 瀹為檯涓鏃堕棿楂樹寒鏍峰紡 */
+.time-info .highlight-text {
+ color: #F44336;
+ font-weight: bold;
+ background-color: rgba(244, 67, 54, 0.1);
+ padding: 4rpx 12rpx;
+ border-radius: 4rpx;
+}
+
+/* 鍛戒护鍙戝竷澶辫触鏁版牱寮� */
+.time-info .error-text {
+ color: #ff4d4f;
+ font-weight: bold;
+ background-color: rgba(255, 77, 79, 0.1);
+ padding: 4rpx 12rpx;
+ border-radius: 4rpx;
+ display: inline-block;
+}
+
/* 椤圭洰鍒楄〃鏍峰紡 */
.project-list {
flex: 1;
@@ -199,6 +218,14 @@
background-color: #2196F3;
}
+.group-item.terminated .status-dot {
+ background-color: #F44336;
+}
+
+.group-item.canceled .status-dot {
+ background-color: #9E9E9E;
+}
+
.status-text {
font-size: 26rpx;
color: #666;
@@ -217,6 +244,14 @@
color: #2196F3;
}
+.group-item.terminated .status-text {
+ color: #F44336;
+}
+
+.group-item.canceled .status-text {
+ color: #9E9E9E;
+}
+
/* 鏍规嵁涓嶅悓鐘舵�佹樉绀轰笉鍚岃儗鏅壊 */
.group-item.pending .group-status-indicator {
background-color: rgba(255, 215, 0, 0.1);
@@ -230,6 +265,14 @@
background-color: rgba(33, 150, 243, 0.1);
}
+.group-item.terminated .group-status-indicator {
+ background-color: rgba(244, 67, 54, 0.1);
+}
+
+.group-item.canceled .group-status-indicator {
+ background-color: rgba(158, 158, 158, 0.1);
+}
+
/* 杞亴缁勪俊鎭牱寮� */
.group-info {
margin-top: 12rpx;
@@ -240,6 +283,12 @@
align-items: center;
margin-bottom: 12rpx;
width: 100%;
+}
+
+.group-index {
+ color: #1890FF;
+ margin-right: 8rpx;
+ font-size: 32rpx;
}
.group-label {
@@ -270,7 +319,8 @@
.time-label {
color: #666;
font-size: 26rpx;
- width: 160rpx;
+ width: 140rpx;
+ flex-shrink: 0;
}
.time-value {
@@ -339,4 +389,19 @@
font-size: 24rpx;
color: #F44336;
padding-left: 20rpx;
+}
+
+.failure-count {
+ margin-top: 10rpx;
+ font-size: 28rpx;
+}
+
+.failure-count .label {
+ color: #666;
+}
+
+.failure-count .error-text {
+ color: #ff4d4f;
+ font-weight: bold;
+ margin-left: 8rpx;
}
\ No newline at end of file
--
Gitblit v1.8.0