modal.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const modal = common_vendor.defineStore({
  4. id: "modal",
  5. state: () => ({
  6. auth: "",
  7. // 授权弹框 accountLogin|smsLogin|resetPassword|changeMobile|changePassword|changeUsername
  8. isActive: "",
  9. share: false,
  10. // 分享弹框
  11. shareInfo: {
  12. spuId: 0
  13. },
  14. // 分享弹框信息
  15. signUp: false,
  16. // 签到弹框
  17. signUpInfo: {},
  18. // 签到弹框信息
  19. getWallet: false,
  20. // 获得积分/身价弹窗
  21. getWalletInfo: {
  22. points: 0,
  23. socialStatus: 0
  24. },
  25. // 获得积分/身价弹窗信息
  26. menu: false,
  27. // 快捷菜单弹框
  28. advHistory: [],
  29. // 广告弹框记录
  30. lastTimer: {
  31. // 短信验证码计时器,为了防止刷新请求做了持久化
  32. smsLogin: 0,
  33. changeMobile: 0,
  34. resetPassword: 0,
  35. changePassword: 0
  36. }
  37. }),
  38. persist: {
  39. enabled: true,
  40. strategies: [
  41. {
  42. key: "modal-store",
  43. paths: ["lastTimer", "advHistory"]
  44. }
  45. ]
  46. }
  47. });
  48. const __vite_glob_0_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  49. __proto__: null,
  50. default: modal
  51. }, Symbol.toStringTag, { value: "Module" }));
  52. exports.__vite_glob_0_2 = __vite_glob_0_2;