update dc top bg

This commit is contained in:
2025-05-22 18:16:23 +08:00
parent b3681e5c1e
commit 4df55f9031
6 changed files with 2 additions and 22 deletions

View File

@@ -22,8 +22,7 @@ export const respath = {
home_top_dc_bg_normal: "atlas/images/bg_dc_top1.png",
home_top_dc_bg_finish: "atlas/images/bg_dc_top2.png",
dc_top_bg_normal: "atlas/images/img_dc_bg1.png",
dc_top_bg_day_finish: "atlas/images/img_dc_bg2.png",
dc_top_bg_normal: "atlas/images/img_dc_bg2.png",
dc_top_bg_month_finish: "atlas/images/img_dc_finished.png",

View File

@@ -166,20 +166,7 @@ export class DailyChallenge extends Laya.Script {
this.bg_dc.skin = respath.dc_top_bg_month_finish
}
else {
if (info.year == nowYear && info.month == nowMonth) {//当前月份
var stageID = `${info.year}-${info.month}-${nowDay}`
var progress = user.get_done(stageID)
console.log("progress >>>>>>>>>>>>>", stageID, progress)
if (progress >= 1) {
this.bg_dc.skin = respath.dc_top_bg_day_finish
}
else {
this.bg_dc.skin = respath.dc_top_bg_normal
}
}
else {
this.bg_dc.skin = respath.dc_top_bg_normal
}
this.bg_dc.skin = respath.dc_top_bg_normal
}
this.label_year.text = info.year.toString()
this.label_month.text = config.MONTH_FULLNAMES[info.month-1]