From ad9c163fefcfdd15463926f7713c4af81c01cd87 Mon Sep 17 00:00:00 2001 From: zuoxiao <zuoxiao> Date: 星期四, 27 三月 2025 13:50:58 +0800 Subject: [PATCH] 更新创建灌溉计划页面,添加API通信模块,优化项目选择器和时间选择功能;增强用户体验,修复轮灌组显示逻辑,调整样式和配置文件。 --- pages/rechargeMoney/rechargMoney.js | 49 ++++++++++++++++++++++++++++++++++--------------- 1 files changed, 34 insertions(+), 15 deletions(-) diff --git a/pages/rechargeMoney/rechargMoney.js b/pages/rechargeMoney/rechargMoney.js index 03bfb1b..dfc163e 100644 --- a/pages/rechargeMoney/rechargMoney.js +++ b/pages/rechargeMoney/rechargMoney.js @@ -5,11 +5,28 @@ * 椤甸潰鐨勫垵濮嬫暟鎹� */ data: { - userName: "寮犱笁", - userPhone: "15802220723", - userCode: "15584236", - balance: "1025鍏�", - activeIndex: -1, + userName: "寮犱笁", + userPhone: "15802220723", + userCode: "15584236", + balance: "1025鍏�", + activeIndex: -1, + allRechargeList: [{ + time: "2024-05-12:20:20", + type: "杩滅▼", + morny: "500鍏�" + }, { + time: "2024-05-12:20:20", + type: "杩滅▼", + morny: "500鍏�" + }, { + time: "2024-05-12:20:20", + type: "杩滅▼", + morny: "500鍏�" + }, { + time: "2024-05-12:20:20", + type: "杩滅▼", + morny: "500鍏�" + }] }, /** @@ -67,14 +84,16 @@ onShareAppMessage() { }, - handleMoneyWrapperTap: function (e) { - const index = e.currentTarget.dataset.index; - console.log(index) - if (index !== undefined) { - this.setData({ - activeIndex: parseInt(index), - }); - } - - }, + handleMoneyWrapperTap: function (e) { + const index = e.currentTarget.dataset.index; + console.log(index) + if (index !== undefined) { + this.setData({ + activeIndex: parseInt(index), + }); + } + }, + onPullDownRefresh() { + console.log("onPullDownRefresh") + } }) \ No newline at end of file -- Gitblit v1.8.0