UIPOPGotCtr.lua 636 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. local UIPOPGotCtr = class("UIPOPGotCtr", require("UICtrBase"))
  2. function UIPOPGotCtr:Init(view)
  3. self.view = view
  4. end
  5. function UIPOPGotCtr:SetData(data)
  6. -- 添加数据
  7. self.data = data
  8. self.asyncIdx = 0
  9. self.rewards = self.data.rewards
  10. self.title = self.data.title
  11. end
  12. function UIPOPGotCtr:GetAsyncIdx()
  13. self.asyncIdx = self.asyncIdx + 1
  14. return self.asyncIdx
  15. end
  16. function UIPOPGotCtr:GetData()
  17. return self.data
  18. end
  19. function UIPOPGotCtr:GetRewards()
  20. return self.rewards
  21. end
  22. function UIPOPGotCtr:GetTitle()
  23. return self.title
  24. end
  25. function UIPOPGotCtr:OnDispose()
  26. self.data = nil
  27. self.view = nil
  28. end
  29. return UIPOPGotCtr