選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

591 行
20 KiB

  1. -- CEST 海选赛
  2. local ClubTable = class("ClubTable" , require("core.luaScript.Views.Club.ClubTable"));
  3. local ClubDefine = require("core.luaScript.Protocol.Club.ClubDefine")
  4. function ClubTable:ctor(...)
  5. ClubTable.super.ctor(self,...)
  6. -- self.ui.Items.TextBMFont:setPositionY(self.ui.Items.TextBMFont:getPositionY() + 12)
  7. end
  8. function ClubTable:onEnter()
  9. ClubTable.super.onEnter(self)
  10. if self.clubInfo.isArena == ClubDefine.MATCH_SWITCH.PEOPLE_CEST_OPEN then
  11. if self.clubInfo.role == ClubDefine.Job.Member then
  12. self.isBaoming = ClubDefine.CestStatus.BAOMING_CANSAI
  13. self:showNormalView()
  14. self:onChangeBaomingBtn(self.isBaoming)
  15. else
  16. self.isBaoming = ClubDefine.CestStatus.BAOMING_CANSAI
  17. self:showNormalView()
  18. self:onChangeBaomingBtn(self.isBaoming)
  19. end
  20. self:hideMathchShowCestView() -- 隐藏排名赛展示CEST相关界面
  21. self:onRequestCestGameInfo() -- 请求报名开始接口
  22. self:onRequestCestUserInfo() -- 请求个人信息
  23. app.club_php:requestCestGetGameSet(self.clubInfo.clubId)
  24. else
  25. self.ui.Items.Layout_Cest:setVisible(false);
  26. self.ui.Items.Layout_CestInfo:setVisible(false);
  27. self.ui.Items.Layout_cest_bottom:setVisible(false);
  28. self.ui.Items.Layout_bisai_status:setVisible(false);
  29. if app.club_php:getMatchIsOpen(app.club_php.clubID) then
  30. if self.clubInfo.role == ClubDefine.Job.Creator then
  31. self:onOpenCestTip()
  32. -- 7月3日隐藏全部桌子,快速开始,玩法
  33. self.ui.Items.ScrollView:setVisible(false)
  34. self.ui.Items.Layout_quick_start:setVisible(false)
  35. end
  36. end
  37. end
  38. end
  39. -- 显示
  40. function ClubTable:showBaomingOrNormalView(isBaoming)
  41. if isBaoming == ClubDefine.CestStatus.BAOMING_CANSAI then
  42. self:showBaomingView()
  43. else
  44. self:showNormalView()
  45. end
  46. self:onChangeBaomingBtn(isBaoming)
  47. end
  48. -- 隐藏排名赛的东西
  49. function ClubTable:hideMathchShowCestView()
  50. --顶部,查看隐藏牌桌
  51. self.ui.Items.Layout_look_table:setVisible(false)
  52. -- 顶部,冲榜分
  53. self.ui.Items.Layout_ChongBangFen:setVisible(false)
  54. -- 顶部,等级
  55. self.ui.Items.Button_level:setVisible(false)
  56. -- 顶部,问号
  57. self.ui.Items.Button_wenhao:setVisible(false)
  58. -- 底部,快速开始
  59. self.ui.Items.Layout_quick_start:setVisible(false)
  60. self.ui.Items.Text_no_table:setText("当前没有选手在游戏哦!")
  61. -- 显示CEST
  62. self.ui.Items.Button_exit:loadTextureNormal("res/ui/zy_club/club_table/cest_view/club_cest_set_btn_exit.png")
  63. self.ui.Items.ScrollView_chang:setBackGroundColorType(cc.LayoutBackGroundColorType.none)
  64. -- self.ui.Items.ScrollView_chang:hideAllBar()
  65. self.ui.Items.ScrollView_chang:jumpToTopOnSizeChanged()
  66. self.ui.Items.ScrollView_chang:getInnerContainer():setAutoSize(true)
  67. end
  68. --按钮注册点击事件
  69. function ClubTable:registerButton()
  70. ClubTable.super.registerButton(self)
  71. --关闭
  72. self.ui.Items.Button_baoming_close:registerClick(handler(self , self.showNormalView))
  73. self.ui.Items.Button_baoming_chang1:registerClick(handler(self , self.onRequestChang1Baoming))
  74. self.ui.Items.Button_baoming_chang2:registerClick(handler(self , self.onRequestChang2Baoming))
  75. self.ui.Items.Button_baoming_chang3:registerClick(handler(self , self.onRequestChang3Baoming))
  76. self.ui.Items.Button_baoming_chang4:registerClick(handler(self , self.onRequestChang4Baoming))
  77. -- self.ui.Items.Button_Baoming:registerClick(handler(self , self.onRequestBaoming))
  78. self.ui.Items.Button_baoming_canjia:registerClick(handler(self , self.onBaomingCanjia))
  79. self.ui.Items.Button_shenhe_zhong:registerClick(handler(self , self.onShenheZhong))
  80. self.ui.Items.Button_jieshu_benlun:registerClick(handler(self , self.onJieshuBenlun))
  81. -- 顶部,积分和赛点
  82. self.ui.Items.Layout_CestInfo:registerClick(handler(self , self.onClickCestInfo))
  83. -- 顶部,CEST信息问号
  84. self.ui.Items.Button_cestinfo_wenhao:registerClick(handler(self , self.onClickCestInfo))
  85. end
  86. --监听事件
  87. function ClubTable:tableBindEvent()
  88. ClubTable.super.tableBindEvent(self)
  89. self:bindEvent(app.club_php, GAME_EVENT.CLUB_CEST_NO_GAMEINFO, handler(self, self.showCestSet))
  90. self:bindEvent(app.club_php, GAME_EVENT.CLUB_CEST_GAMEINFO, handler(self, self.updateCestGameInfo))
  91. self:bindEvent(app.club_php, GAME_EVENT.CLUB_CEST_END_GAME, handler(self, self.onCestEndGame))
  92. self:bindEvent(app.club_php, GAME_EVENT.CLUB_CEST_USER_INFO, handler(self, self.onUserInfo))
  93. -- self:bindEvent(app.club_php, GAME_EVENT.CLUB_CEST_START_APPLY, handler(self, self.onCestStartApplyRes))
  94. end
  95. function ClubTable:updateChangeRuleBtn()
  96. ClubTable.super.updateChangeRuleBtn(self)
  97. if self.clubInfo.isArena == ClubDefine.MATCH_SWITCH.PEOPLE_CEST_OPEN then
  98. self.ui.Items.Button_change_rule:loadTextureNormal("res/ui/zy_club/club_table/bottom_view/club_cest_room_btn_bisai_guanli.png")
  99. self.ui.Items.Button_match_info:loadTextureNormal("res/ui/zy_club/club_table/bottom_view/club_cest_room_btn_cest_rank.png")
  100. self.ui.Items.Button_zhanji:loadTextureNormal("res/ui/zy_club/club_table/bottom_view/club_cest_room_btn_zhanji.png")
  101. --刷新layout布局
  102. self.ui.Items.Layout_under:requestDoLayout()
  103. self.ui.Items.Layout_under:doLayout()
  104. elseif app.club_php:getMatchIsOpen(app.club_php.clubID) then
  105. -- 7月3日隐藏全部桌子,快速开始,玩法
  106. self.ui.Items.ScrollView:setVisible(false)
  107. self.ui.Items.Layout_quick_start:setVisible(false)
  108. self.ui.Items.Layout_btn_change_rule:setVisible(false);
  109. --刷新layout布局
  110. self.ui.Items.Layout_under:requestDoLayout()
  111. self.ui.Items.Layout_under:doLayout()
  112. end
  113. end
  114. --更新玩法数据
  115. function ClubTable:updateSetting(event)
  116. ClubTable.super.updateSetting(self,event)
  117. if self.clubInfo.isArena == ClubDefine.MATCH_SWITCH.PEOPLE_CEST_OPEN then
  118. self.ui.Items.Layout_btn_hehuoren:setVisible(false)
  119. self.ui.Items.Layout_btn_match_info:setVisible(true)
  120. self.ui.Items.Layout_btn_player_list:setVisible(false)
  121. self.ui.Items.Button_match_set:loadTextureNormal("res/ui/zy_club/club_table/bottom_view/club_room_btn_cest.png")
  122. self.ui.Items.Button_match_info:loadTextureNormal("res/ui/zy_club/club_table/bottom_view/club_cest_room_btn_cest_rank.png")
  123. self.ui.Items.Button_level:setTouchEnabled(self.clubInfo.role == ClubDefine.Job.Creator)
  124. self.ui.Items.Button_wenhao:setTouchEnabled(true)
  125. self.ui.Items.Layout_Score:setTouchEnabled(true)
  126. self.ui.Items.Button_wenhao:setVisible(false) -- cest 里面里面不显示了
  127. self.ui.Items.Button_level:setVisible(false) -- cest 里面里面不显示了
  128. self.ui.Items.Layout_Score:setVisible(true)
  129. self.ui.Items.Layout_FangKa:setVisible(self.clubInfo.role == 3)
  130. if self.inView == ClubDefine.View.Baoming then
  131. self:showBottomBtnVisible(false)
  132. else
  133. self:showBottomBtnVisible(true)
  134. end
  135. --刷新layout布局
  136. self.ui.Items.Layout_under:requestDoLayout()
  137. self.ui.Items.Layout_under:doLayout()
  138. self.ui.Items.Layout_look_table:setVisible(false)
  139. end
  140. end
  141. function ClubTable:showBaomingView()
  142. self.ui.Items.Layout_Cest:setVisible(true);
  143. self.ui.Items.Layout_cest_bottom:setVisible(true);
  144. self.ui.Items.Layout_Mid:setVisible(false);
  145. self.ui.Items.Layout_bottom:setVisible(false);
  146. self.ui.Items.Layout_up:setVisible(false);
  147. -- 茶馆名
  148. local nickname = getShortNameByLength(self.clubInfo.clubName,5)
  149. self.ui.Items.Text_cest_name:setText(nickname)
  150. --club id
  151. local idStr = string.format("ID:%d",self.clubInfo.clubId)
  152. self.ui.Items.Text_cest_id:setText(idStr)
  153. -- 根据条件隐藏茶馆id
  154. local cliext = self.clubInfo.groupext and self.clubInfo.groupext.cliext
  155. if not cliext or not cliext.is_hideGid or (cliext and cliext.is_hideGid == 1) then
  156. if tonumber(self.clubInfo.role) ~= ClubDefine.Job.Manager and tonumber(self.clubInfo.role) ~= ClubDefine.Job.Creator then
  157. self.ui.Items.Text_cest_id:setVisible(false)
  158. end
  159. end
  160. self:showBaomingViewRule()
  161. self.inView = ClubDefine.View.Baoming
  162. end
  163. function ClubTable:showBaomingViewRule()
  164. self.ui.Items.Text_rule:setVisible(false);
  165. self.ui.Items.ScrollView_rule:hideAllBar()
  166. self.ui.Items.ScrollView_rule:getInnerContainer():setAutoSize(true)
  167. local mListView = self.ui.Items.ScrollView_rule
  168. mListView:removeAllChildren()
  169. local content = {
  170. "1、玩家根据自己的竞技能力,可自主报名参与对应的比赛场;\n",
  171. "2、报名成功后,可获得该场的初始积分;\n",
  172. "3、每参与一场比赛,给冠军选手颁发冠军奖励(赛点)。当比赛积分低于淘汰分或打满本轮局数时,需本轮比赛结束,系统将本轮获得的赛点成绩更新到海选赛排行榜上后,选手可重新参与新一轮比赛;\n",
  173. "4、海选赛排行榜实时更新,以选手每天上报的最高好绩进行排名,为保证自己的最好成绩,选手可提前申请结束本轮比赛,保存本轮比赛成绩;\n",
  174. "5、海选赛排行榜24:00停止刷新,确定最终排名,取排行榜前50名,分别奖励50-1分的CEST商城兑换积分;\n",
  175. "6、获得天梯赛排名可参与CEST专业赛事,和福利赛事,CEST商城兑换积分,可到商城中兑换礼物里;\n",
  176. }
  177. for k,v in ipairs(content) do
  178. local item = self.ui.Items.Text_rule:getCopied()
  179. item:setString(v)
  180. mListView:addChild(item,0);
  181. end
  182. mListView:requestDoLayout()
  183. mListView:doLayout()
  184. mListView:jumpToTopOnSizeChanged()
  185. end
  186. -- local Cmd = require("luaScript.Protocol.Club.ClubCmd")
  187. function ClubTable:showNormalView()
  188. -- local test = {}
  189. -- test.error = ""
  190. -- test.code = 1121
  191. -- app.club_php:showError(Cmd.PHP_CLUB_MATER_UNION_MESSAGE_JUDGE,test)
  192. -- showTooltip((app.club_php:getCestIsOpen(app.club_php.clubID) and PLN.CLUB_CEST_CREATE_SUCCESS or PLN.CLUB_CREATE_SUCCESS))
  193. self.ui.Items.Layout_Cest:setVisible(false);
  194. self.ui.Items.Layout_cest_bottom:setVisible(false);
  195. self.ui.Items.Layout_Mid:setVisible(true);
  196. self.ui.Items.Layout_bottom:setVisible(true);
  197. self.ui.Items.Layout_up:setVisible(true);
  198. -- -- 显示底部三个
  199. self.inView = ClubDefine.View.Normal
  200. -- self:updateTopBaoJianInfo() -- 有包间信息,就刷新包间信息
  201. self:showBottomBtnVisible(true)
  202. --刷新layout布局
  203. self.ui.Items.Layout_under:requestDoLayout()
  204. self.ui.Items.Layout_under:doLayout()
  205. -- 显示底部CEST报名/审核中/本轮结束
  206. self:onChangeBaomingBtn(self.isBaoming)
  207. end
  208. function ClubTable:showBottomBtnVisible(isVisible)
  209. -- self.ui.Items.Layout_btn_change_rule:setVisible(isVisible)
  210. -- self.ui.Items.Layout_btn_match_info:setVisible(isVisible)
  211. -- self.ui.Items.Layout_btn_zhanji:setVisible(isVisible)
  212. end
  213. -- 报名参加
  214. function ClubTable:onRequestChang1Baoming()
  215. playBtnEffect()
  216. if self.isBaoming == ClubDefine.CestStatus.BAOMING_CANSAI then
  217. local function onSureCallBack()
  218. local parm = {
  219. clubId = self.clubId,
  220. type = 1,
  221. }
  222. app.club_php:requestCestStartApply(parm, handler(self,self.onCestStartApplyRes))
  223. end
  224. local function onCancel()
  225. end
  226. local notice = "确认报名试炼场?"
  227. showConfirmDialog(notice,onSureCallBack,onCancel)
  228. else
  229. local function onSureCallBack()
  230. end
  231. local function onCancel()
  232. end
  233. local notice = "报名申请中,请耐心等待!"
  234. showConfirmDialog(notice,onSureCallBack,onCancel)
  235. end
  236. end
  237. function ClubTable:onRequestChang2Baoming()
  238. playBtnEffect()
  239. if self.isBaoming == ClubDefine.CestStatus.BAOMING_CANSAI then
  240. local function onSureCallBack()
  241. local parm = {
  242. clubId = self.clubId,
  243. type = 2,
  244. }
  245. app.club_php:requestCestStartApply(parm, handler(self,self.onCestStartApplyRes))
  246. end
  247. local function onCancel()
  248. end
  249. local notice = "确认报名初级场?"
  250. showConfirmDialog(notice,onSureCallBack,onCancel)
  251. else
  252. local function onSureCallBack()
  253. end
  254. local function onCancel()
  255. end
  256. local notice = "报名申请中,请耐心等待!"
  257. showConfirmDialog(notice,onSureCallBack,onCancel)
  258. end
  259. end
  260. function ClubTable:onRequestChang3Baoming()
  261. playBtnEffect()
  262. if self.isBaoming == ClubDefine.CestStatus.BAOMING_CANSAI then
  263. local function onSureCallBack()
  264. local parm = {
  265. clubId = self.clubId,
  266. type = 6,
  267. }
  268. app.club_php:requestCestStartApply(parm, handler(self,self.onCestStartApplyRes))
  269. end
  270. local function onCancel()
  271. end
  272. local notice = "确认报名中级场?"
  273. showConfirmDialog(notice,onSureCallBack,onCancel)
  274. else
  275. local function onSureCallBack()
  276. end
  277. local function onCancel()
  278. end
  279. local notice = "报名申请中,请耐心等待!"
  280. showConfirmDialog(notice,onSureCallBack,onCancel)
  281. end
  282. end
  283. function ClubTable:onRequestChang4Baoming()
  284. playBtnEffect()
  285. if self.isBaoming == ClubDefine.CestStatus.BAOMING_CANSAI then
  286. local function onSureCallBack()
  287. local parm = {
  288. clubId = self.clubId,
  289. type = 3,
  290. }
  291. app.club_php:requestCestStartApply(parm, handler(self,self.onCestStartApplyRes))
  292. end
  293. local function onCancel()
  294. end
  295. local notice = "确认报名高级场?"
  296. showConfirmDialog(notice,onSureCallBack,onCancel)
  297. else
  298. local function onSureCallBack()
  299. end
  300. local function onCancel()
  301. end
  302. local notice = "报名申请中,请耐心等待!"
  303. showConfirmDialog(notice,onSureCallBack,onCancel)
  304. end
  305. end
  306. function ClubTable:onCloseCestApplyLayer()
  307. self.ui.Items.Layout_Cest:setVisible(false);
  308. self.ui.Items.Layout_Mid:setVisible(true);
  309. end
  310. function ClubTable:onUpdateCestInfo()
  311. end
  312. function ClubTable:updateCestGameInfo()
  313. if self.clubInfo.groupext.cestext then
  314. if self.clubInfo.groupext.cestext.one_point then
  315. self.ui.Items.Text_jifen_1:setText(tostring("初始积分:"..self.clubInfo.groupext.cestext.one_point))
  316. end
  317. if self.clubInfo.groupext.cestext.one_gamenum then
  318. self.ui.Items.Text_lun_1:setText(tostring(""..self.clubInfo.groupext.cestext.one_gamenum.."场/轮"))
  319. end
  320. if self.clubInfo.groupext.cestext.two_point then
  321. self.ui.Items.Text_jifen_2:setText(tostring("初始积分:"..self.clubInfo.groupext.cestext.two_point))
  322. end
  323. if self.clubInfo.groupext.cestext.two_gamenum then
  324. self.ui.Items.Text_lun_2:setText(tostring(""..self.clubInfo.groupext.cestext.two_gamenum.."场/轮"))
  325. end
  326. if self.clubInfo.groupext.cestext.mid_point then
  327. self.ui.Items.Text_jifen_3:setText(tostring("初始积分:"..self.clubInfo.groupext.cestext.mid_point))
  328. end
  329. if self.clubInfo.groupext.cestext.mid_gamenum then
  330. self.ui.Items.Text_lun_3:setText(tostring(""..self.clubInfo.groupext.cestext.mid_gamenum.."场/轮"))
  331. end
  332. if self.clubInfo.groupext.cestext.three_point then
  333. self.ui.Items.Text_jifen_4:setText(tostring("初始积分:"..self.clubInfo.groupext.cestext.three_point))
  334. end
  335. if self.clubInfo.groupext.cestext.three_gamenum then
  336. self.ui.Items.Text_lun_4:setText(tostring(""..self.clubInfo.groupext.cestext.three_gamenum.."场/轮"))
  337. end
  338. end
  339. end
  340. -- 改变CEST报名按钮
  341. function ClubTable:onChangeBaomingBtn(isBaoming)
  342. self.ui.Items.Button_baoming_canjia:setVisible(false)
  343. self.ui.Items.Button_shenhe_zhong:setVisible(false)
  344. self.ui.Items.Button_jieshu_benlun:setVisible(false)
  345. self.ui.Items.Layout_jieshu_benlun:setVisible(false)
  346. if isBaoming == ClubDefine.CestStatus.BAOMING_CANSAI then -- 报名参赛
  347. self.ui.Items.Button_baoming_canjia:setVisible(true)
  348. elseif isBaoming == ClubDefine.CestStatus.SHENHE_ZHONG then -- 审核中
  349. self.ui.Items.Button_shenhe_zhong:setVisible(true)
  350. elseif isBaoming == ClubDefine.CestStatus.JIESHU_BENLUN then -- 结束本轮
  351. self.ui.Items.Button_jieshu_benlun:setVisible(true)
  352. self.ui.Items.Layout_jieshu_benlun:setVisible(true)
  353. local memberInfo = app.club_php.clubCestInfo
  354. if memberInfo.curgamenum and memberInfo.gamenum then
  355. self.ui.Items.Text_cur_lun:setText(tostring(memberInfo.curgamenum))
  356. self.ui.Items.Text_total_lun:setText("/"..tostring(memberInfo.gamenum))
  357. end
  358. end
  359. end
  360. function ClubTable:onRequestBaoming()
  361. if self.isBaoming == ClubDefine.CestStatus.BAOMING_CANSAI then
  362. self:showBaomingView()
  363. else
  364. local function onSureCallBack()
  365. end
  366. local function onCancel()
  367. end
  368. local notice = "确认申请退赛?审核通过后,参赛券和比赛积分将清0!"
  369. showConfirmDialog(notice,onSureCallBack,onCancel)
  370. end
  371. end
  372. function ClubTable:onRequestCestGameInfo()
  373. local parm = {
  374. clubId = self.clubId,
  375. }
  376. app.club_php:requestCestGameInfo(parm)
  377. end
  378. function ClubTable:onRequestCestUserInfo()
  379. app.club_php:requestCestUserInfo(self.clubId)
  380. end
  381. -- 报名参加返回
  382. function ClubTable:onCestStartApplyRes()
  383. self.isBaoming = ClubDefine.CestStatus.SHENHE_ZHONG
  384. self:onChangeBaomingBtn(self.isBaoming)
  385. self:showNormalView()
  386. -- self:updateTopBaoJianInfo() -- 有包间信息,就刷新包间信息
  387. end
  388. function ClubTable:onClickCestInfo()
  389. playBtnEffect()
  390. local view = import("luaScript.Views.Club.Cest.ClubCestLevelLog"):new(self.clubId,3,app.user.loginInfo.uid)
  391. view:setAnchorPoint(cc.p(0.5, 0.5))
  392. app:showWaitDialog(view)
  393. end
  394. function ClubTable:onBaomingCanjia()
  395. playBtnEffect()
  396. self:showBaomingView()
  397. end
  398. function ClubTable:onShenheZhong()
  399. playBtnEffect()
  400. local memberInfo = app.club_php.clubCestInfo
  401. if tonumber(memberInfo.type) == ClubDefine.Saichang.Shilian or tonumber(memberInfo.type) == ClubDefine.Saichang.Chuji or tonumber(memberInfo.type) == ClubDefine.Saichang.Gaoji then
  402. showTooltip("报名申请中,请耐心等待!")
  403. elseif tonumber(memberInfo.type) == ClubDefine.Saichang.Tuisai then
  404. showTooltip("退赛申请中,请耐心等待!")
  405. end
  406. end
  407. function ClubTable:onJieshuBenlun()
  408. playBtnEffect()
  409. local room = app.club_php:getMyInRoom(self.clubInfo.clubId)
  410. if room then
  411. showTooltip("在房间内,不能申请退赛")
  412. return
  413. end
  414. local function onSureCallBack()
  415. app.club_php:requestCestDrawEndGame(self.clubId)
  416. end
  417. local function onCancel()
  418. end
  419. -- local notice = "是否确定结束本轮比赛?"
  420. -- showConfirmDialog(notice,onSureCallBack,onCancel)
  421. local content = "是否确定结束本轮比赛?";
  422. local notice = "注:确定后,本轮成绩上报排名,可重新报名参赛。"
  423. local view = import("luaScript.Views.Club.Cest.ClubCestInfoTip"):new(1, onSureCallBack, nil, content, notice)
  424. view:setAnchorPoint(cc.p(0.5, 0.5))
  425. app:showWaitDialog(view)
  426. end
  427. -- 申请退赛返回
  428. function ClubTable:onCestEndGame()
  429. -- self.isBaoming = ClubDefine.CestStatus.BAOMING_CANSAI
  430. -- self:onChangeBaomingBtn(self.isBaoming)
  431. self:onUserInfo()
  432. end
  433. function ClubTable:onUserInfo()
  434. local memberInfo = app.club_php.clubCestInfo
  435. self.ui.Items.Text_jifen:setText(tostring(memberInfo.point))
  436. self.ui.Items.Text_saidian:setText(tostring(memberInfo.contribute))
  437. -- 更新状态,老麦原话
  438. -- type 为 1,2 ,3,的时候 status 状态,0,未领取,1领取 ,2审核中 ,
  439. -- type 为4 是退赛,这时status 2是退赛申请 ,type如果0也是没有申请
  440. if tonumber(memberInfo.type) == ClubDefine.Saichang.None then -- 没有申请
  441. self.isBaoming = ClubDefine.CestStatus.BAOMING_CANSAI
  442. self:onChangeBaomingBtn(self.isBaoming)
  443. elseif tonumber(memberInfo.type) == ClubDefine.Saichang.Shilian
  444. or tonumber(memberInfo.type) == ClubDefine.Saichang.Chuji
  445. or tonumber(memberInfo.type) == ClubDefine.Saichang.Zhongji
  446. or tonumber(memberInfo.type) == ClubDefine.Saichang.Gaoji then
  447. if tonumber(memberInfo.status) == ClubDefine.SaichangStatus.Agree then
  448. self.isBaoming = ClubDefine.CestStatus.JIESHU_BENLUN
  449. self:onChangeBaomingBtn(self.isBaoming)
  450. elseif tonumber(memberInfo.status) == ClubDefine.SaichangStatus.Shenhe then -- 审核中
  451. self.isBaoming = ClubDefine.CestStatus.SHENHE_ZHONG
  452. self:onChangeBaomingBtn(self.isBaoming)
  453. end
  454. elseif tonumber(memberInfo.type) == ClubDefine.Saichang.Tuisai then -- 退赛
  455. self.isBaoming = ClubDefine.CestStatus.SHENHE_ZHONG
  456. self:onChangeBaomingBtn(self.isBaoming)
  457. end
  458. end
  459. function ClubTable:showCestSet()
  460. if self.clubInfo.role == ClubDefine.Job.Creator then
  461. app.club_php:setCestFirst(self.clubInfo.clubId, true)
  462. local view = import("luaScript.Views.Club.ClubSheZhi.ClubShezhi"):new(self.clubInfo.clubId)
  463. view:setAnchorPoint(cc.p(0.5, 0.5))
  464. app:showWaitDialog(view)
  465. end
  466. end
  467. -- 给馆主打开CEST提示
  468. function ClubTable:onOpenCestTip()
  469. local view = import("luaScript.Views.Club.Cest.ClubCestCreatorTips"):new()
  470. view:setAnchorPoint(cc.p(0.5, 0.5))
  471. app:showWaitDialog(view)
  472. end
  473. return ClubTable