local UIThumbsUp = UIViewClass() function UIThumbsUp:OnOpened(context) self.txt_Recommend.text = context.thumbsUpDesc if context.activityId == LuaConst.ActivityType.SyncSolo then -- 公平1v1 if context.isRobot then UIUtils.SetImageByAssetBundle(self.img_PlayerHead, ConstAssetPathConfig.RobotHeadImagePath) else CTL.Character.SetImgPortrait(self.img_PlayerHead, self.context.heroId) end else UTL.Item.SetHeroIconByHeroId(self.img_PlayerHead, self.context.heroId) end end return UIThumbsUp