From 37a47205b1c54044b47618aea1d5cbdc816eeada Mon Sep 17 00:00:00 2001 From: BTMuli Date: Sat, 27 Dec 2025 21:02:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20=E8=8E=B7=E5=8F=96=E5=8D=A1?= =?UTF-8?q?=E6=B1=A0=E6=8A=BD=E5=8D=A1=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #188 --- .../userGacha/gro-chart-calendar.vue | 2 +- .../userGacha/gro-chart-overview.vue | 2 +- .../userGacha/gro-chart-stackbar.vue | 2 +- src/components/userGacha/gro-history.vue | 10 ++- src/components/userGacha/ug-his-card.vue | 30 +++++++-- src/components/userGacha/ugo-uid.vue | 2 +- src/pages/User/Gacha.vue | 6 +- src/plugins/Sqlite/modules/userGacha.ts | 61 +++++++++++++------ src/utils/UIGF.ts | 4 +- 9 files changed, 86 insertions(+), 33 deletions(-) diff --git a/src/components/userGacha/gro-chart-calendar.vue b/src/components/userGacha/gro-chart-calendar.vue index 9c2128a4..b3abd825 100644 --- a/src/components/userGacha/gro-chart-calendar.vue +++ b/src/components/userGacha/gro-chart-calendar.vue @@ -79,7 +79,7 @@ const chartHeight = computed(() => { * @returns {EChartsOption} */ async function getCalendarOptions(): Promise { - const records = await TSUserGacha.getGachaRecordsGroupByDate(props.uid, props.gachaType); + const records = await TSUserGacha.record.time(props.uid, props.gachaType); // 获取最大长度 const maxLen = Math.max(...Object.values(records).map((v) => v.length)); // 获取年份 diff --git a/src/components/userGacha/gro-chart-overview.vue b/src/components/userGacha/gro-chart-overview.vue index f09aeffd..f3a2b56a 100644 --- a/src/components/userGacha/gro-chart-overview.vue +++ b/src/components/userGacha/gro-chart-overview.vue @@ -72,7 +72,7 @@ const chartEl = useTemplateRef>("chartRef"); * @returns {EChartsOption} */ async function getOverviewOptions(): Promise { - const records = await TSUserGacha.getGachaRecords(props.uid); + const records = await TSUserGacha.record.all(props.uid); const data: EChartsOption = { title: [ { text: ">> 祈愿系统大数据分析 <<", left: "center", top: "5%" }, diff --git a/src/components/userGacha/gro-chart-stackbar.vue b/src/components/userGacha/gro-chart-stackbar.vue index b245c135..bb8c94a3 100644 --- a/src/components/userGacha/gro-chart-stackbar.vue +++ b/src/components/userGacha/gro-chart-stackbar.vue @@ -72,7 +72,7 @@ const chartEl = useTemplateRef>("chartRef"); * @returns {EChartsOption} */ async function getStackBarOptions(): Promise { - const records = await TSUserGacha.getGachaRecordsGroupByDate(props.uid, props.gachaType); + const records = await TSUserGacha.record.time(props.uid, props.gachaType); const dataCount = Object.keys(records).length; const xAxis = { type: "category", diff --git a/src/components/userGacha/gro-history.vue b/src/components/userGacha/gro-history.vue index 4af2271f..7483e5cd 100644 --- a/src/components/userGacha/gro-history.vue +++ b/src/components/userGacha/gro-history.vue @@ -1,6 +1,7 @@ +