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.

34 lines
617 B

  1. -- 通知弹窗
  2. local TongZhiView = class("TongZhiView", cc.UIView)
  3. function TongZhiView:ctor()
  4. TongZhiView.super.ctor(self);
  5. local ui = loadUI("res/ui/ui_dating/ui_tongzhi.ui")
  6. self.ui = ui
  7. self:addChild(ui)
  8. end
  9. function TongZhiView:onEnter()
  10. TongZhiView.super.onEnter(self)
  11. self.ui.Items.Button_Close:registerClick(handler(self , self.onClickClose))
  12. self:updateView();
  13. end
  14. function TongZhiView:updateView()
  15. end
  16. -- 关闭
  17. function TongZhiView:onClickClose()
  18. playBtnCloseEffect()
  19. app:dispatchEvent({name = "onCloseTongZhiSucc"})
  20. self:removeFromParent()
  21. end
  22. return TongZhiView;