UserAgreeCell.ts 618 B

123456789101112131415161718192021
  1. /** @format */
  2. import {Mgr} from '../GameControl'
  3. import {UI} from '../enums/UI'
  4. import {IRule} from '../interface/UIInterface'
  5. import {LANGUAGE_TYPE} from '../enums/Enum'
  6. const {ccclass, property} = cc._decorator
  7. @ccclass
  8. export default class UserAgreeCell extends cc.Component {
  9. onClickAgreement() {
  10. let args: IRule = {title: LANGUAGE_TYPE.userAgreement, content: LANGUAGE_TYPE.agreementContent}
  11. Mgr.ui.show(UI.RuleUI, args)
  12. }
  13. onClickPrivacy() {
  14. let args: IRule = {title: LANGUAGE_TYPE.policy, content: LANGUAGE_TYPE.policyContent}
  15. Mgr.ui.show(UI.RuleUI, args)
  16. }
  17. }