From c9a74e58e0d0fa8a1856d4e7f03a33267fed9204 Mon Sep 17 00:00:00 2001 From: p4oufk2iw <2488672761@qq.com> Date: Wed, 9 Oct 2024 21:15:51 +0800 Subject: [PATCH] ADD file via upload --- created.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 created.js diff --git a/created.js b/created.js new file mode 100644 index 0000000..f15540e --- /dev/null +++ b/created.js @@ -0,0 +1,27 @@ +Page({ + data: { + activities: [ + { id: 1, name: "活动1", participants: 10 }, + { id: 2, name: "活动2", participants: 20 }, + { id: 3, name: "活动3", participants: 15 } + ] + }, + + onSearchInput(e) { + // 实现搜索功能 + console.log("搜索:", e.detail.value); + }, + + onActivityTap(e) { + const activityId = e.currentTarget.dataset.id; + wx.navigateTo({ + url: `/pages/activityDetail/activityDetail?id=${activityId}` + }); + }, + + onCreateActivity() { + wx.navigateTo({ + url: '/pages/createActivity/createActivity' + }); + } +}); \ No newline at end of file