调整UI细节
This commit is contained in:
@@ -17,6 +17,8 @@ export class Home extends Laya.Script {
|
||||
public bg_dc: Laya.Image;
|
||||
@property(Laya.Label)
|
||||
public label_dc_title: Laya.Label;
|
||||
@property(Laya.Label)
|
||||
public label_dc_date: Laya.Label;
|
||||
@property(Laya.Sprite)
|
||||
public btn_play: Laya.Sprite;
|
||||
@property(Laya.Sprite)
|
||||
@@ -43,11 +45,18 @@ export class Home extends Laya.Script {
|
||||
var dayNow = new Date().getDate()
|
||||
var stageID = `${year}-${month}-${dayNow}`
|
||||
|
||||
if (user.get_doneCountBydate(year, month) >= 31)
|
||||
if (user.get_doneCountBydate(year, month) >= 31) {
|
||||
this.bg_dc.skin = respath.home_top_dc_bg_finish
|
||||
else
|
||||
this.label_dc_title.color = "#ffffff"
|
||||
this.label_dc_date.color = "#ffffff"
|
||||
}
|
||||
else {
|
||||
this.bg_dc.skin = respath.home_top_dc_bg_normal
|
||||
this.label_dc_title.text = `${config.MONTH_ABBRS[month-1]} ${dayNow}`
|
||||
this.label_dc_title.color = "#2d3138"
|
||||
this.label_dc_date.color = "#2d3138"
|
||||
}
|
||||
|
||||
this.label_dc_date.text = `${config.MONTH_ABBRS[month-1]} ${dayNow}`
|
||||
|
||||
var progress = user.get_done(stageID)
|
||||
if (progress <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user