|
@@ -71,9 +71,11 @@ export class MailDetail extends BaseView {
|
|
this.getTips.getComponent(Label).string = StringUtil.getLanguageData('附件已领取');
|
|
this.getTips.getComponent(Label).string = StringUtil.getLanguageData('附件已领取');
|
|
this.getBtnTx.string = StringUtil.getLanguageData('领取附件');
|
|
this.getBtnTx.string = StringUtil.getLanguageData('领取附件');
|
|
this.delBtnTx.string = StringUtil.getLanguageData('删除邮件');
|
|
this.delBtnTx.string = StringUtil.getLanguageData('删除邮件');
|
|
- tween(this.closeTips.getComponent(UIOpacity))
|
|
|
|
|
|
+
|
|
|
|
+ tween(this.closeTips.node.getComponent(UIOpacity))
|
|
.to(1.2, { opacity: 10 })
|
|
.to(1.2, { opacity: 10 })
|
|
.to(1, { opacity: 255 })
|
|
.to(1, { opacity: 255 })
|
|
|
|
+ .union()
|
|
.repeatForever()
|
|
.repeatForever()
|
|
.start()
|
|
.start()
|
|
}
|
|
}
|
|
@@ -83,7 +85,6 @@ export class MailDetail extends BaseView {
|
|
}
|
|
}
|
|
|
|
|
|
onOpen(data) {
|
|
onOpen(data) {
|
|
- console.log('============= detail open', data)
|
|
|
|
this.data = data;
|
|
this.data = data;
|
|
this.updateUI();
|
|
this.updateUI();
|
|
}
|
|
}
|
|
@@ -107,14 +108,15 @@ export class MailDetail extends BaseView {
|
|
|
|
|
|
} else if (target.name == 'del_btn') {
|
|
} else if (target.name == 'del_btn') {
|
|
LoginMgr.sendPost('user', 'batch_del_mail', (data) => {
|
|
LoginMgr.sendPost('user', 'batch_del_mail', (data) => {
|
|
- console.log(data);
|
|
|
|
|
|
+ // console.log(data);
|
|
MailData.removeMail(data.del_mails);
|
|
MailData.removeMail(data.del_mails);
|
|
Framework.event.fireEvent(GameEvent.MailUpdate);
|
|
Framework.event.fireEvent(GameEvent.MailUpdate);
|
|
|
|
+ Framework.layer.close(this);
|
|
}, { ids: [this.data.id] })
|
|
}, { ids: [this.data.id] })
|
|
|
|
|
|
} else if (target.name == 'get_btn') {
|
|
} else if (target.name == 'get_btn') {
|
|
LoginMgr.sendPost('user', 'read_mail', (data) => {
|
|
LoginMgr.sendPost('user', 'read_mail', (data) => {
|
|
- console.log(data);
|
|
|
|
|
|
+ // console.log(data);
|
|
MailData.setMailReadById(this.data.id)
|
|
MailData.setMailReadById(this.data.id)
|
|
Framework.event.fireEvent(GameEvent.MailUpdate);
|
|
Framework.event.fireEvent(GameEvent.MailUpdate);
|
|
Framework.layer.open(ViewID.MailDetail, null, this.data);
|
|
Framework.layer.open(ViewID.MailDetail, null, this.data);
|