diff --git a/pages/index/index.vue b/pages/index/index.vue index 42ad469..4e75e1a 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -74,13 +74,15 @@ - 已开启 2026 鸿运周期 - {{ progressDays }} / 15 + 已连续领好运 {{ continuousDays }} 天 + {{ currentMonthDays }} / {{ totalMonthDays }} @@ -238,7 +240,12 @@ const handleLogin = () => { }; const luckyScore = ref(98); const luckyColor = ref("赤金朱红"); -const progressDays = ref(1); +const continuousDays = ref(1); // 连续天数 +const currentMonthDays = ref(new Date().getDate()); // 当前月签到天数(模拟为当天日期) +const totalMonthDays = computed(() => { + const date = new Date(); + return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate(); +}); // 当前月总天数 const currentTab = ref("all"); // 模拟农历数据