From a4dff5c7eb76e5728319dad8a0e8be42a4190dde Mon Sep 17 00:00:00 2001 From: yangwen Date: Fri, 30 May 2025 15:02:12 +0800 Subject: [PATCH] =?UTF-8?q?dc=E6=8C=91=E6=88=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dc/DailyChallenge.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/views/dc/DailyChallenge.ts b/src/views/dc/DailyChallenge.ts index 971745c..d82f323 100644 --- a/src/views/dc/DailyChallenge.ts +++ b/src/views/dc/DailyChallenge.ts @@ -98,10 +98,8 @@ export class DailyChallenge extends Laya.Script { }) this.btn_play.on(Laya.Event.CLICK, this, () => { - // console.log(">>>>>>>>>>>>>>>>>>>>>>>", this.selectedUnit.day) - const now = new Date() - const year = now.getFullYear() - const month = now.getMonth() + 1 + const year = this.selectedUnit.year + const month = this.selectedUnit.month const dayNow = this.selectedUnit.day const stageID = `${year}-${month}-${dayNow}` const doStage = StorageManager.getInstance().getStage(stageID) @@ -173,8 +171,7 @@ export class DailyChallenge extends Laya.Script { this.currentIndex = i break } - } - console.log("DailyChallenge loadWithMonth >>>>>>>>>>>>>>>", nowYear, nowMonth, this.currentIndex) + } this.loadWithIndex(this.currentIndex) } @@ -182,6 +179,7 @@ export class DailyChallenge extends Laya.Script { this.btn_left.visible = this.currentIndex > 0 this.btn_right.visible = this.currentIndex < this.indexMax const info = MONTH_LIST[index] + console.log("DailyChallenge loadWithIndex >>>>>>>>>>>>>>>", info.year, info.month) const user = StorageManager.getInstance().getUser() const now = new Date() const nowYear = now.getFullYear()