MailMain.ts 570 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { _decorator, Component, Node } from 'cc';
  2. import { BaseView } from '../../../framework/layer/BaseView';
  3. import { MailItem } from './MailItem';
  4. const { ccclass, property } = _decorator;
  5. @ccclass('MailMain')
  6. export class MailMain extends BaseView {
  7. private _mailData = [];
  8. onLoad() {
  9. super.onLoad();
  10. }
  11. onDestroy() {
  12. super.onDestroy();
  13. }
  14. onOpen() {
  15. }
  16. onClose() {
  17. }
  18. onShow() {
  19. }
  20. onHide() {
  21. }
  22. private onTouchButton(event: Event, customStr) {
  23. }
  24. onEventList(item, idx) {
  25. item.getComponent(MailItem).init(this._mailData[idx]);
  26. }
  27. }