MailItem.js 719 B

12345678910111213141516171819202122232425262728293031323334353637
  1. var ListItem = require("ListItem");
  2. import SoundMgr from "../base/SoundMgr";
  3. cc.Class({
  4. extends: ListItem,
  5. properties: {
  6. labTou: cc.Label,
  7. labRen: cc.Label,
  8. labTime: cc.Label,
  9. read: cc.Node,
  10. isRead: cc.Node,
  11. },
  12. // LIFE-CYCLE CALLBACKS:
  13. // onLoad () {},
  14. start () {
  15. },
  16. setInfo(mailJs, info){
  17. this.mailJs = mailJs;
  18. this.labTou.string = info;
  19. this.labRen.string = `发件人:系统${info}`;
  20. this.labTime.string = '1970-1-1';
  21. this.read.active = true;
  22. this.isRead.active = false;
  23. },
  24. onClickLook(){
  25. SoundMgr.playClick();
  26. this.mailJs.onClickLook(this.node._listId);
  27. },
  28. });