12345678910111213141516171819202122232425262728293031323334353637 |
- var ListItem = require("ListItem");
- import SoundMgr from "../base/SoundMgr";
- cc.Class({
- extends: ListItem,
- properties: {
- labTou: cc.Label,
- labRen: cc.Label,
- labTime: cc.Label,
- read: cc.Node,
- isRead: cc.Node,
- },
- // LIFE-CYCLE CALLBACKS:
- // onLoad () {},
- start () {
- },
- setInfo(mailJs, info){
- this.mailJs = mailJs;
- this.labTou.string = info;
- this.labRen.string = `发件人:系统${info}`;
- this.labTime.string = '1970-1-1';
- this.read.active = true;
- this.isRead.active = false;
- },
- onClickLook(){
- SoundMgr.playClick();
- this.mailJs.onClickLook(this.node._listId);
- },
- });
|