From 6d228f20f816bcd6894f415d9f2936a954800a91 Mon Sep 17 00:00:00 2001
From: lld <15027638633@163.com>
Date: Wed, 25 Mar 2026 01:21:40 +0800
Subject: [PATCH] =?UTF-8?q?ui=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/data/data.vue | 236 +++++++++++++++++++++++++
pages/data/index.vue | 227 ++----------------------
pages/data/indexDemo.vue | 122 ++++++++-----
pages/home/control/automatic.vue | 84 +++++----
pages/index.vue | 5 +-
tuniao-ui/components/tn-fab/tn-fab.vue | 16 +-
6 files changed, 395 insertions(+), 295 deletions(-)
create mode 100644 pages/data/data.vue
diff --git a/pages/data/data.vue b/pages/data/data.vue
new file mode 100644
index 0000000..d228b59
--- /dev/null
+++ b/pages/data/data.vue
@@ -0,0 +1,236 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/data/index.vue b/pages/data/index.vue
index 53d0a6f..5b16226 100644
--- a/pages/data/index.vue
+++ b/pages/data/index.vue
@@ -1,236 +1,31 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
\ No newline at end of file
diff --git a/pages/data/indexDemo.vue b/pages/data/indexDemo.vue
index 0356fc6..ad3e9a2 100644
--- a/pages/data/indexDemo.vue
+++ b/pages/data/indexDemo.vue
@@ -1,79 +1,121 @@
-
-
+
+
+
+
\ No newline at end of file
+};
+
diff --git a/pages/home/control/automatic.vue b/pages/home/control/automatic.vue
index 56991cf..713a0c9 100644
--- a/pages/home/control/automatic.vue
+++ b/pages/home/control/automatic.vue
@@ -280,6 +280,26 @@
:maskCloseable="false"
@click="showTips"
/>
+
+
+
+
+
@@ -295,6 +315,7 @@ import UniSection from "../../../components/uni-section/uni-section.vue";
import UniFormsItem from "../../../uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue";
import { checkTimeConflict } from "../../../utils/agri"
import {getAgriTerm, saveAgriTerm} from "../../../api/control/autoTerm";
+import HistoryData from "../../data/data.vue";
export default {
options: {
@@ -390,6 +411,7 @@ export default {
components: {
UniFormsItem,
UniSection,
+ HistoryData,
UniPopup // 注册弹窗组件
},
mounted() {
@@ -550,7 +572,20 @@ export default {
reservedLen: null,
ventTotalLen: null
},
- showTip:false
+ showTip:false,
+ pattern: {
+ color: '#7A7E83',
+ backgroundColor: '#fff',
+ selectedColor: '#007AFF',
+ buttonColor: '#007AFF',
+ iconColor: '#fff'
+ },
+ content: [{
+ iconPath: '/static/image.png',
+ selectedIconPath: '/static/image-active.png',
+ text: '温度',
+ active: false
+ }]
};
},
@@ -1104,6 +1139,12 @@ export default {
if (event.index===1) {
this.saveAgriTerm();
}
+ },
+ showData() {
+ this.$refs.showHistoryData.open();
+ this.$nextTick(() => {
+ this.$refs.historyDataRef.getAgriList()
+ })
}
}
@@ -1206,12 +1247,15 @@ export default {
}
/* 新增:弹窗样式 */
-.modal-container, .modal-container_ {
+.modal-container_ {
width: 600rpx;
background: #fff;
border-radius: 16rpx;
padding: 30rpx 20rpx;
}
+.popup {
+ width: 700rpx;
+}
.modal-container_{
padding: 30rpx 40rpx;
.uni-forms-item:nth-child(1) {
@@ -1222,40 +1266,7 @@ export default {
gap: 30rpx;
}
}
-.modal-title {
- font-size: 30rpx;
- font-weight: 500;
- text-align: center;
- margin-bottom: 40rpx;
- color: #333;
-}
-.modal-input-wrap {
- display: flex;
- align-items: center;
- margin-bottom: 35rpx;
- font-size: 26rpx;
- margin-left: 20rpx;
-}
-
-.modal-label {
- width: 180rpx;
- color: #666;
-}
-
-.modal-current {
- margin-left: 14rpx;
- color: #333;
-}
-
-.modal-input {
- height: 60rpx;
- border: 1px solid #eee;
- border-radius: 8rpx;
- padding: 0 15rpx;
- font-size: 26rpx;
- width: 80rpx;
-}
/* 核心样式:让子元素水平排列 */
.modal-slider {
display: flex;
@@ -1466,5 +1477,6 @@ export default {
/deep/ .uni-swipe_button {
height: 140rpx;
border-radius: 10rpx;
+ box-shadow: 8rpx 5rpx 10rpx #D9D9D9 !important
}
-
+
\ No newline at end of file
diff --git a/pages/index.vue b/pages/index.vue
index 17d9310..c6af4b3 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -594,10 +594,13 @@ page {
// #ifdef H5
height: 192rpx !important;
// #endif
- margin-right: 10rpx;
border-radius: 12rpx;
box-shadow: 8rpx 5rpx 10rpx #999;
}
+
+/deep/ .uni-swipe_button:nth-child(even) {
+ margin-right: 10rpx
+}
.list-item,/deep/.tn-swipe-action-item {
height: 190rpx !important;
/* 移除border-bottom,改为margin-top,并且把列表项背景设为半透明白色 */
diff --git a/tuniao-ui/components/tn-fab/tn-fab.vue b/tuniao-ui/components/tn-fab/tn-fab.vue
index 9ce0cde..effd7b7 100644
--- a/tuniao-ui/components/tn-fab/tn-fab.vue
+++ b/tuniao-ui/components/tn-fab/tn-fab.vue
@@ -97,7 +97,12 @@
@tap.stop="fabClick"
>
-
+
+
+
+ {{ text }}
+
+
@@ -165,6 +170,14 @@
type: String,
default: 'open'
},
+ color: {
+ type: String,
+ default: '#fff'
+ },
+ text: {
+ type: String,
+ default: ''
+ },
// 按钮圆角
radius: {
type: [String, Number],
@@ -347,7 +360,6 @@
}, 10)
return
}
- console.log(btnRectInfo);
this.systemInfo = {
width: systemInfo.windowWidth,
height: systemInfo.windowHeight