From 35cd1fc2e97ee8c8ec93d632cfc6b8b90e7a6e2b Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期五, 18 十月 2024 17:18:31 +0800 Subject: [PATCH] 1.首页添加横滑删除功能2.同步最新代码 --- pages/waterIntake/waterIntake.js | 19 ++++++------------- 1 files changed, 6 insertions(+), 13 deletions(-) diff --git a/pages/waterIntake/waterIntake.js b/pages/waterIntake/waterIntake.js index 912fe64..103b2a0 100644 --- a/pages/waterIntake/waterIntake.js +++ b/pages/waterIntake/waterIntake.js @@ -54,21 +54,15 @@ }, /** - * 閫夋嫨铏氭嫙鍗� + * 璺宠浆鍒伴�夋嫨铏氭嫙鍗$晫闈� * @param {} event */ choseCard(event) { - //鏄剧ず浜屾纭寮圭獥 this.setData({ - showConfirm: true, choseItem: event.currentTarget.dataset.item, allWaterPoints: [] }) - // console.log(intakeId); - // wx.navigateTo({ - // url: '/pages/openCard/openCard?intakeId='+intakeId, - // }) - + this.toOpenCard(); }, //寮�娉甸�氫俊 /** @@ -270,10 +264,9 @@ this.getcommonWaterPoints(); }, confirmDialog() { - // this.setData({ - // showConfirm: false - // }) - // this.postOpenValva(this.data.choseItem.intakeId); + this.setData({ + showConfirm: false + }) this.toOpenCard(); }, closeDialog() { @@ -303,7 +296,7 @@ }, toOpenCard(){ wx.navigateTo({ - url: '/pages/openCard/openCard', + url: '/pages/openCard/openCard?intakeId='+this.data.choseItem.intakeId, }) } }) \ No newline at end of file -- Gitblit v1.8.0