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();