GZHWithdrawWindow.ts 596 B

1234567891011121314151617181920
  1. import { _decorator, Component, Node, Label } from 'cc';
  2. import { WindowManager } from '../core/ui/window/WindowManager';
  3. import { platform } from '../Data/platform';
  4. const { ccclass, property } = _decorator;
  5. @ccclass('GZHWithdrawWindow')
  6. export class GZHWithdrawWindow extends Component {
  7. @property({ type: Label, tooltip: "公众号展示文本" }) showlabel: Label;
  8. public onPramas(text: string): void {
  9. this.showlabel.string = text;
  10. }
  11. public copy(): void {
  12. platform.copyText(this.showlabel.string);
  13. WindowManager.showTips("复制成功");
  14. }
  15. }