123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const modal = common_vendor.defineStore({
- id: "modal",
- state: () => ({
- auth: "",
- // 授权弹框 accountLogin|smsLogin|resetPassword|changeMobile|changePassword|changeUsername
- isActive: "",
- share: false,
- // 分享弹框
- shareInfo: {
- spuId: 0
- },
- // 分享弹框信息
- signUp: false,
- // 签到弹框
- signUpInfo: {},
- // 签到弹框信息
- getWallet: false,
- // 获得积分/身价弹窗
- getWalletInfo: {
- points: 0,
- socialStatus: 0
- },
- // 获得积分/身价弹窗信息
- menu: false,
- // 快捷菜单弹框
- advHistory: [],
- // 广告弹框记录
- lastTimer: {
- // 短信验证码计时器,为了防止刷新请求做了持久化
- smsLogin: 0,
- // changeMobile: 0,
- changeMobileOld: 0,
- changeMobileNew: 0,
- resetPassword: 0,
- changePassword: 0
- }
- }),
- persist: {
- enabled: true,
- strategies: [
- {
- key: "modal-store",
- paths: ["lastTimer", "advHistory"]
- }
- ]
- }
- });
- const __vite_glob_0_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
- __proto__: null,
- default: modal
- }, Symbol.toStringTag, { value: "Module" }));
- exports.__vite_glob_0_2 = __vite_glob_0_2;
|