From aec1b6ec73897b5e5f3a85f2985447726a399ed0 Mon Sep 17 00:00:00 2001 From: zuoxiao <zuoxiao> Date: 星期六, 19 四月 2025 15:56:48 +0800 Subject: [PATCH] 更新灌溉计划页面,添加灌溉计划列表刷新标记,优化项目选择器和时间选择器的逻辑;更新样式以提升用户体验,确保在切换标签时只加载必要的数据。 --- pages/irrigationDetail/irrigationDetail.wxss | 42 +++++++++++++++++++++++++++++++++++++++++- 1 files changed, 41 insertions(+), 1 deletions(-) diff --git a/pages/irrigationDetail/irrigationDetail.wxss b/pages/irrigationDetail/irrigationDetail.wxss index c73a291..49b79e4 100644 --- a/pages/irrigationDetail/irrigationDetail.wxss +++ b/pages/irrigationDetail/irrigationDetail.wxss @@ -86,6 +86,15 @@ 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; @@ -209,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; @@ -227,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); @@ -240,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; @@ -250,6 +283,12 @@ align-items: center; margin-bottom: 12rpx; width: 100%; +} + +.group-index { + color: #1890FF; + margin-right: 8rpx; + font-size: 32rpx; } .group-label { @@ -280,7 +319,8 @@ .time-label { color: #666; font-size: 26rpx; - width: 160rpx; + width: 140rpx; + flex-shrink: 0; } .time-value { -- Gitblit v1.8.0