From ad9c163fefcfdd15463926f7713c4af81c01cd87 Mon Sep 17 00:00:00 2001 From: zuoxiao <zuoxiao> Date: 星期四, 27 三月 2025 13:50:58 +0800 Subject: [PATCH] 更新创建灌溉计划页面,添加API通信模块,优化项目选择器和时间选择功能;增强用户体验,修复轮灌组显示逻辑,调整样式和配置文件。 --- pages/home/home.js | 18 ++++-------------- 1 files changed, 4 insertions(+), 14 deletions(-) diff --git a/pages/home/home.js b/pages/home/home.js index 944db7c..e990d66 100644 --- a/pages/home/home.js +++ b/pages/home/home.js @@ -260,22 +260,12 @@ * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚 */ onReady() { - if (this.data.options.param === "1") { - this.setData({ - showTipDialog: true, - tipData: "寮�闃�鍛戒护涓嬪彂鎴愬姛锛屽洜寮�闃�闇�瑕佹椂闂达紝绾�20-60绉掑悗鍙埛鏂板揩閫熷叧闃�鍒楄〃鏌ョ湅鎵ц缁撴灉銆�" - }) - setTimeout(() => { - this.getOpenList(); - }, 20000) - - } else if (this.data.options.param === "2") { - this.setData({ - showTipDialog: true, - tipData: "棰勭害寮�闃�鍛戒护涓嬪彂鎴愬姛锛屽綋鍒拌揪棰勭害鏃堕棿骞朵笖鎴愬姛寮�闃�鍚庡揩閫熷叧闃�鍒楄〃浼氭樉绀烘湭鍏抽榾璁板綍" - }) + // 妫�鏌ユ槸鍚︽湁options鍜宲aram + if (this.data.options && this.data.options.param) { + if (this.data.options.param === "1" || this.data.options.param === "2") { this.getOpenList(); } + } }, /** -- Gitblit v1.8.0