12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import { defineStore } from 'pinia';
- const modal = defineStore({
- id: 'modal',
- state: () => ({
- auth: '',
- isActive: '',
- share: false,
- shareInfo: {
- spuId: 0,
- },
- signUp: false,
- signUpInfo: {},
- subscribe: false,
- getWallet: false,
- getWalletInfo: {
- points: 0,
- socialStatus: 0,
- },
- menu: false,
- advHistory: [],
- payPassword: {
- show: false,
- type: '',
- title: '',
- callback: null,
- onCancel: null,
- step: 0,
- oldPassword: '',
- newPassword: ''
- },
- lastTimer: {
-
- smsLogin: 0,
-
- changeMobileOld: 0,
- changeMobileNew: 0,
- resetPassword: 0,
- changePassword: 0,
- consumptionTransfers: 0,
- zeroBuy: 0,
- },
- }),
- persist: {
- enabled: true,
- strategies: [
- {
- key: 'modal-store',
- paths: ['lastTimer', 'advHistory'],
- },
- ],
- },
- });
- export default modal;
|