agreementTip.ts 650 B

123456789101112131415161718192021222324252627282930313233
  1. const { ccclass, property } = cc._decorator;
  2. /**
  3. * 用户隐私协议政策
  4. * @author 薛鸿潇
  5. */
  6. @ccclass
  7. export default class agreementTip extends cc.Component {
  8. // @property({ displayName: '同意按钮', type: cc.Button })
  9. // private btnAgree: cc.Button = null;
  10. // onLoad () {}
  11. start() {
  12. }
  13. /**
  14. * 点击协议按钮
  15. * @param data 协议类型
  16. */
  17. async clickRule(data) {
  18. gData.setting.rule_type = parseInt(data);
  19. }
  20. /**
  21. * 关闭面板
  22. */
  23. private clickClose() {
  24. mk.ui.closePanel(this.node.name);
  25. }
  26. // update (dt) {}
  27. }