From 2c38e6a0d7ba6800fe1f802d0946484f323d13ce Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Fri, 16 Jan 2026 20:23:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=96=B0pinia=E7=8A=B6=E6=80=81=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E5=B7=A5=E5=85=B7):=20=E6=83=85=E4=BE=A3=E6=8E=92?= =?UTF-8?q?=E8=A1=8C=E6=A6=9C=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/couple.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/stores/couple.js diff --git a/src/stores/couple.js b/src/stores/couple.js new file mode 100644 index 0000000..2d660b2 --- /dev/null +++ b/src/stores/couple.js @@ -0,0 +1,40 @@ +import { defineStore } from 'pinia' + +export const useCoupleStore = defineStore('couple', { + state: () => ({ + TipsShow: false, // 金币不足提示 + needCheckInTipsShow: false, // 需要补签提示 + signInSuccessShow: false, // 签到成功提示 + + crystal: 0, //水晶数量 + debris: 0, //碎片数量 + + rewardShow: false, //奖励弹窗 + reward: {}, //奖励 + + resultShow: false, + result: [], //抽奖结果 + + drawRecordShow: false, + myRecords: [], //我的抽奖记录 + + receiveRecordShow: false, + receiveRecord: [], //领取水晶&碎片记录 + + signInInfo: {}, // 签到奖池 + + exchangeConfirmShow: false, // 兑换确认弹窗 + exchangeItem: null, // 当前兑换的物品 + }), + actions: { + setResult(data) { + this.result = data + }, + setMyRecords(data) { + this.myRecords = data + }, + setRecord(data) { + this.record = data + }, + }, +})