GuideToWxData.ts 686 B

123456789101112131415161718192021222324252627282930313233
  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 ghIdPath = '';
  11. public init_state = false;
  12. checkPop() {
  13. if (!this.guideToWxSwith) {
  14. return;
  15. }
  16. if (this.guideState < GuideState.gotMoney) {
  17. mk.ui.openPanel('module/guideToWx/guideToWx');
  18. }
  19. }
  20. }
  21. export enum GuideState {
  22. none = 0,
  23. addService,
  24. sendApply,
  25. waitForPass,
  26. canGetMoney,
  27. gotMoney
  28. }