slot0 = class("ShenshengxvmuPage", import(".TemplatePage.PtTemplatePage")) function slot0.OnFirstFlush(slot0) uv0.super.OnFirstFlush(slot0) setActive(slot0.displayBtn, false) setActive(slot0.awardTF, false) onButton(slot0, slot0.battleBtn, function () uv0:emit(ActivityMediator.EVENT_GO_SCENE, SCENE.TASK, { page = "activity" }) end, SFX_PANEL) end function slot0.OnUpdateFlush(slot0) uv0.super.OnUpdateFlush(slot0) setActive(slot0:findTF("got", slot0.bg), not slot0.ptData:CanGetNextAward()) slot2, slot3, slot4 = slot0.ptData:GetResProgress() setText(slot0.step, slot4 >= 1 and setColorStr(slot2, COLOR_GREEN) or slot2) setText(slot0.progress, "/" .. slot3) end return slot0