pubgv3/assets/scripts/tips/BlackListTips.ts
2022-05-30 23:57:41 +08:00

31 lines
597 B
TypeScript

import { UIBase } from "../UI/UIBase";
const {ccclass, property} = cc._decorator;
@ccclass
export class BlackListTips extends UIBase {
@property(cc.Label) friendName : cc.Label = null;
public static prefabPath = 'prefabs/tips/pb_blacklist';
private curremtData : any;
init(data: any) {
this.curremtData = data;
this.friendName.string = data.name;
}
onClose(){
this.node.destroy()
}
onOK(){
cc.chatMgr.sendmsg('CMFriendAddBlack', {
user_info: JSON.parse(this.curremtData.user_info)
});
this.node.destroy()
}
}