agreementTip.ts 771 B

123456789101112131415161718192021222324252627282930313233343536
  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. console.log("")
  19. gData.setting.rule_type = parseInt(data);
  20. }
  21. /**
  22. * 关闭面板
  23. */
  24. private clickClose() {
  25. mk.storage.setStorage("agreementTip", 1);
  26. gData.loginData.passPrivacy = true;
  27. mk.ui.closePanel(this.node.name);
  28. }
  29. // update (dt) {}
  30. }