local UIGoldenHeroBossRewardClaim = UIViewClass() function UIGoldenHeroBossRewardClaim:OnOpened(context) self.activityId = context.activityId self:RegistSystemEvent(EventID.UI_OperationActivity_CloseView, self.OnCloseActivitySelf) UIUtils.SetLabelText(self.UITemplatePopUpZero.txt_Title, Const_IDS.IDS_GoldHeroActivity_SynergyBoss_Battle_Hint11) self.txt_FindPoint.text = context.findPointReward end function UIGoldenHeroBossRewardClaim:OnCloseActivitySelf(viewClassPath, activityId) if viewClassPath == self.__viewClassPath then if self.activityId and activityId == self.activityId then self:CloseView() end end end function UIGoldenHeroBossRewardClaim:OnButtonClicked(comp) if comp == self.UITemplatePopUpZero.Bottom then self:CloseView() end end return UIGoldenHeroBossRewardClaim