From 8d47d6d4949d0693509c829fc4f1b5126f9b4152 Mon Sep 17 00:00:00 2001 From: zzc <1761997216@qq.com> Date: Wed, 25 Feb 2026 14:59:18 +0800 Subject: [PATCH] fix: check-in --- pages/index/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index a9c1b94..016a7cc 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -63,7 +63,9 @@ color="#d81e06" style="margin-right: 12rpx" /> - 开启今日好运 + {{ + signInfo.isSignedToday ? "今日已开启" : "开启今日好运" + }} @@ -244,8 +246,8 @@ const handleLogin = () => { }; const luckyScore = ref(98); const luckyColor = ref("赤金朱红"); -const continuousDays = ref(1); // 连续天数 -const currentMonthDays = ref(new Date().getDate()); // 当前月签到天数(模拟为当天日期) +const continuousDays = computed(() => signInfo.value.continuousDays || 0); +const currentMonthDays = computed(() => signInfo.value.totalDays || 0); const totalMonthDays = computed(() => { const date = new Date(); return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();