源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 line
2.1 KiB

  1. FuliVipAskView = FuliVipAskView or BaseClass(BaseView)
  2. local FuliVipAskView = FuliVipAskView
  3. --[[
  4. FuliVipAskView.TabData = {
  5. [1] = {name = "人物", level = MainRoleModel.TabOpenLevel[1]},
  6. }
  7. --]]
  8. function FuliVipAskView:__init()
  9. self.base_file = "fuli"
  10. self.layout_file = "FuliVipAskView"
  11. self.layer_name = "Top"
  12. self.destroy_imm = true
  13. self.use_background = true --全屏界面默认使用这个参数
  14. --self.hide_maincancas = true --全屏界面需要放开隐藏主UI
  15. self.change_scene_close = true
  16. self.append_to_ctl_queue = false --是否要添加进界面堆栈
  17. self.need_show_money = false --是否要显示顶部的金钱栏
  18. self.blur_activity_bg = true
  19. self.model = FuliModel:getInstance()
  20. self.load_callback = function ()
  21. self:LoadSuccess()
  22. self:AddEvent()
  23. end
  24. self.open_callback = function ( )
  25. self:OpenSuccess()
  26. end
  27. self.switch_callback = function(index)
  28. self:SwitchTab(index)
  29. end
  30. self.destroy_callback = function ( )
  31. self:DestroySuccess()
  32. end
  33. end
  34. function FuliVipAskView:Open( )
  35. --self.data = data
  36. BaseView.Open(self)
  37. end
  38. function FuliVipAskView:LoadSuccess()
  39. local nodes = {
  40. "vip_btn:obj", "vip_text:tmp", "close_btn:obj", "sure_btn:obj","bg:raw"
  41. }
  42. self:GetChildren(nodes)
  43. lua_resM:setOutsideRawImage(self, self.bg_raw, GameResPath.GetViewBigBg(self.bg_res or "tips_comm_bg6"), false)
  44. self.vip_text_tmp.text = string.format("高级%s,%s可再次领取哦~", HtmlColorTxt("签到奖励", ColorUtil.ORANGE_DARK), HtmlColorTxt("VIP3",ColorUtil.PURPLE_DARK))
  45. end
  46. function FuliVipAskView:AddEvent()
  47. local on_click = function ( click_obj )
  48. if self.vip_btn_obj == click_obj then
  49. OpenFun.Open(450,2)
  50. elseif self.close_btn_obj == click_obj then
  51. elseif self.sure_btn_obj == click_obj then
  52. end
  53. self:Close()
  54. end
  55. AddClickEvent(self.vip_btn_obj, on_click)
  56. AddClickEvent(self.close_btn_obj, on_click)
  57. AddClickEvent(self.sure_btn_obj, on_click)
  58. end
  59. function FuliVipAskView:OpenSuccess()
  60. self:UpdateView()
  61. end
  62. function FuliVipAskView:UpdateView()
  63. end
  64. function FuliVipAskView:SwitchTab( index )
  65. end
  66. function FuliVipAskView:DestroySuccess( )
  67. end