From f10dbc0ea551559e02795150cffe09cea27b22e5 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Mon, 3 Nov 2025 10:52:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=96=B0=E5=BB=BA=E6=97=A5?= =?UTF-8?q?=E7=A8=8B=E6=97=A5=E6=9C=9F=E5=90=8C=E6=AD=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 2 +- pages/add-event/index.vue | 38 +++++++++++--------------------------- pages/index/index.vue | 6 +++--- 3 files changed, 15 insertions(+), 31 deletions(-) diff --git a/pages.json b/pages.json index 4c51c7f..019d53a 100644 --- a/pages.json +++ b/pages.json @@ -6,7 +6,7 @@ } }, - "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + "pages": [ { "path": "pages/index/index", "style": { diff --git a/pages/add-event/index.vue b/pages/add-event/index.vue index 5d49745..de11af0 100644 --- a/pages/add-event/index.vue +++ b/pages/add-event/index.vue @@ -238,7 +238,8 @@ diff --git a/pages/index/index.vue b/pages/index/index.vue index 6ad55e4..7256d59 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -7,7 +7,7 @@ - 当前选择日期:{{ selectedDate }},事件数:{{ eventsInDay ? eventsInDay.length : 0 }} + 当前选择日期:{{ selectedDate }},日程数:{{ eventsInDay ? eventsInDay.length : 0 }} @@ -313,7 +313,7 @@ const resetToCenter = () => { setTimeout(() => { isAnimating.value = false; - }, 300); // 与 transition 时间一致(0.3s) + }, 0); // 与 transition 时间一致(0.3s) }; // 滑动到前一天的位置(动画完成后更新日期) @@ -341,7 +341,7 @@ const slideToPreviousDay = () => { console.log(`日期切换:上一天,新日期:${selectedDate.value}`); }, 0); // 一帧的时间,确保 transition 已禁用 - }, 300); // 与 transition 时间一致(0.3s) + }, 0); // 与 transition 时间一致(0.3s) }; // 滑动到后一天的位置(动画完成后更新日期)