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