diff --git a/src/components/points-and-badge/check-in.vue b/src/components/points-and-badge/check-in.vue index 2adbddf9..bf337eb5 100644 --- a/src/components/points-and-badge/check-in.vue +++ b/src/components/points-and-badge/check-in.vue @@ -217,12 +217,13 @@ checkInSuccessCallback = onCheckInSuccess; // 示例:X=10时,以"10天前"为第1天,生成35天列表 try { - const X = continuousDay.value - (isSigned.value ? 1 : 0); + const X = continuousDay30.value - (isSigned.value ? 1 : 0); // const X = 10; // console.log(`以${continuousDay.value}天`); // console.log(`以${X}天前为第1天的35天分组日期:`); - console.log('取模', continuousDay30.value); - dateGroups.value = generateGroupedDateList(continuousDay30.value); + // console.log('取', X); + dateGroups.value = generateGroupedDateList(X); + } catch (err) { console.error(err.message); }