From 032f821c77485c1178de18f78092ddedd25d2fb2 Mon Sep 17 00:00:00 2001
From: zuoxiao <zuoxiao>
Date: 星期三, 09 四月 2025 15:26:58 +0800
Subject: [PATCH] 添加删除功能到灌溉计划页面,用户可通过点击删除按钮确认删除相应的轮灌计划;更新样式以增强用户体验。
---
pages/irrigation/irrigation.wxss | 23 ++++++++++++++++++-----
1 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/pages/irrigation/irrigation.wxss b/pages/irrigation/irrigation.wxss
index 690a85d..2d5116d 100644
--- a/pages/irrigation/irrigation.wxss
+++ b/pages/irrigation/irrigation.wxss
@@ -39,7 +39,7 @@
bottom: 0;
left: 50%;
transform: translateX(-50%);
- width: 40rpx;
+ width: 50rpx;
height: 4rpx;
background-color: #0052d9;
border-radius: 2rpx;
@@ -81,19 +81,24 @@
}
.status-tag.draft {
- background-color: #ff9d00;
+ background-color: #9E9E9E;
}
.status-tag.published {
- background-color: #0052d9;
+ background-color: #90CAF9;
}
.status-tag.executing {
- background-color: #00a870;
+ background-color: #2196F3;
}
.status-tag.completed {
- background-color: #999;
+ background-color: #4CAF50;
+}
+
+.status-tag.terminated {
+ background-color: #F44336;
+ color: #ffffff;
}
/* 鍐呭鍖哄煙鏍峰紡 */
@@ -252,6 +257,10 @@
background-color: #1890FF !important;
}
+.delete-button {
+ background-color: #ff4d4f !important;
+}
+
.stop-button {
background-color: #ff4d4f !important;
}
@@ -314,6 +323,10 @@
opacity: 0.8 !important;
}
+.delete-button-hover {
+ opacity: 0.8 !important;
+}
+
.stop-button-hover {
opacity: 0.8 !important;
}
--
Gitblit v1.8.0