fix: check-in
This commit is contained in:
@@ -63,7 +63,9 @@
|
|||||||
color="#d81e06"
|
color="#d81e06"
|
||||||
style="margin-right: 12rpx"
|
style="margin-right: 12rpx"
|
||||||
/>
|
/>
|
||||||
<text>开启今日好运</text>
|
<text>{{
|
||||||
|
signInfo.isSignedToday ? "今日已开启" : "开启今日好运"
|
||||||
|
}}</text>
|
||||||
</button>
|
</button>
|
||||||
<view class="progress-section">
|
<view class="progress-section">
|
||||||
<view class="progress-info">
|
<view class="progress-info">
|
||||||
@@ -244,8 +246,8 @@ const handleLogin = () => {
|
|||||||
};
|
};
|
||||||
const luckyScore = ref(98);
|
const luckyScore = ref(98);
|
||||||
const luckyColor = ref("赤金朱红");
|
const luckyColor = ref("赤金朱红");
|
||||||
const continuousDays = ref(1); // 连续天数
|
const continuousDays = computed(() => signInfo.value.continuousDays || 0);
|
||||||
const currentMonthDays = ref(new Date().getDate()); // 当前月签到天数(模拟为当天日期)
|
const currentMonthDays = computed(() => signInfo.value.totalDays || 0);
|
||||||
const totalMonthDays = computed(() => {
|
const totalMonthDays = computed(() => {
|
||||||
const date = new Date();
|
const date = new Date();
|
||||||
return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();
|
return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();
|
||||||
|
|||||||
Reference in New Issue
Block a user