update dc top bg
This commit is contained in:
@@ -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",
|
||||
|
||||
|
||||
|
||||
@@ -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