GuideToWxData.ts 659 B

1234567891011121314151617181920212223242526272829303132
  1. /** 引导到微信数据类 */
  2. const { ccclass } = cc._decorator;
  3. @ccclass
  4. export default class GuideToWxData {
  5. //开关
  6. public guideToWxSwith = false;
  7. public guideState: GuideState = GuideState.none;
  8. public money = '';
  9. public ghId = '';
  10. public init_state = false;
  11. checkPop() {
  12. if (!this.guideToWxSwith) {
  13. return;
  14. }
  15. if (this.guideState < GuideState.gotMoney) {
  16. mk.ui.openPanel('module/guideToWx/guideToWx');
  17. }
  18. }
  19. }
  20. export enum GuideState {
  21. none = 0,
  22. addService,
  23. sendApply,
  24. waitForPass,
  25. canGetMoney,
  26. gotMoney
  27. }