32 lines
577 B
TypeScript
32 lines
577 B
TypeScript
import { UIBase } from "../UI/UIBase";
|
|
|
|
const {ccclass, property} = cc._decorator;
|
|
|
|
@ccclass
|
|
export class DeleteFriendTips extends UIBase {
|
|
|
|
@property(cc.Label) friendName : cc.Label = null;
|
|
|
|
public static prefabPath = 'prefabs/tips/pb_delete';
|
|
|
|
|
|
private curremtData : any;
|
|
|
|
init(data: any) {
|
|
this.curremtData = data;
|
|
this.friendName.string = data.name;
|
|
}
|
|
|
|
onClose(){
|
|
this.node.destroy()
|
|
}
|
|
|
|
onOK(){
|
|
cc.chatMgr.sendmsg('CMFriendDelete', {
|
|
friend_id: this.curremtData.account
|
|
});
|
|
this.node.destroy()
|
|
}
|
|
|
|
}
|