import { _decorator, Component, Node, Label } from 'cc'; import { WindowManager } from '../core/ui/window/WindowManager'; import { platform } from '../Data/platform'; const { ccclass, property } = _decorator; @ccclass('GZHWithdrawWindow') export class GZHWithdrawWindow extends Component { @property({ type: Label, tooltip: "公众号展示文本" }) showlabel: Label; public onPramas(text: string): void { this.showlabel.string = text; } public copy(): void { platform.copyText(this.showlabel.string); WindowManager.showTips("复制成功"); } }