local YuLanClubTable = class("YuLanClubTable" , cc.UIView); function YuLanClubTable:ctor(pid) YuLanClubTable.super.ctor(self) local ui = loadUI("res/ui/ui_club/ui_club_yulan_table.ui") self.ui = ui; self:addChild(ui); self.pid = pid end function YuLanClubTable:onEnter() YuLanClubTable.super.onEnter(self) self.ui.Items.Button_Back:registerClick(handler(self, self.onClickBack)) if self.pid then self.ui.Items.ImageView:loadTexture(string.format("res/ui/zy_club/club_common/club_common_bg_%d.jpg",self.pid)) end self.ui.Items.Layout_Touch:registerClick(handler(self,self.onClickToch)) end function YuLanClubTable:onClickBack() playBtnEffect() self:removeFromParent() end function YuLanClubTable:onClickToch() end return YuLanClubTable