update dc top bg
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user