feat(新状态管理工具): 春节活动专用
This commit is contained in:
parent
cd7370a7ca
commit
0228bf17ee
42
src/stores/springFestival.js
Normal file
42
src/stores/springFestival.js
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
import { defineStore } from 'pinia'
|
||||||
|
|
||||||
|
export const useSpringFestival = defineStore('springFestival', {
|
||||||
|
state: () => ({
|
||||||
|
// 抽奖模块
|
||||||
|
lotteryRewards: {}, // 抽奖奖池
|
||||||
|
tickets: 0, // 抽奖券数量
|
||||||
|
userInfo: {}, // 用户信息
|
||||||
|
userIdentity: {}, // 用户身份
|
||||||
|
currentEarnings: 0, // 当前收益
|
||||||
|
selectedPayee: {}, // 选中的收款人
|
||||||
|
taskList: [], // 任务列表
|
||||||
|
|
||||||
|
// 抽奖排名模块
|
||||||
|
lotteryRanking: [], // 抽奖排名
|
||||||
|
addLotteryRanking: [], // 补充的抽奖排名
|
||||||
|
myLotteryRanking: {}, // 我的抽奖排名
|
||||||
|
|
||||||
|
// 排行榜奖励模块
|
||||||
|
rankingRewards: {}, // 排名奖池
|
||||||
|
|
||||||
|
// 充值排名模块
|
||||||
|
rechargeRanking: [], // 充值排名
|
||||||
|
addRechargeRanking: [], // 补充的充值排名
|
||||||
|
myRechargeRanking: {}, // 我的充值排名
|
||||||
|
|
||||||
|
// 充值奖池模块
|
||||||
|
RechargeRewards: {}, // 充值奖池
|
||||||
|
|
||||||
|
resultShow: false,
|
||||||
|
result: [], // 抽奖结果
|
||||||
|
|
||||||
|
drawRecordShow: false,
|
||||||
|
myRecords: [], // 我的抽奖记录
|
||||||
|
|
||||||
|
receiveRecordShow: false,
|
||||||
|
receiveRecord: [], // 领取抽奖券记录
|
||||||
|
|
||||||
|
helpShow: false, // 帮助展示
|
||||||
|
}),
|
||||||
|
actions: {},
|
||||||
|
})
|
||||||
Loading…
x
Reference in New Issue
Block a user