From 438bf9eecfdd6c8c9332c185e7150a4f29c187b9 Mon Sep 17 00:00:00 2001 From: xiaoaojiao Date: Thu, 18 Sep 2025 17:27:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E6=AC=A1=E5=90=88=E6=88=90=E6=AC=A1?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HomePage.vue | 2 +- src/components/TodoList.vue | 9 ++++++--- src/globalstore.js | 5 +---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/HomePage.vue b/src/components/HomePage.vue index 02f6916..a275203 100644 --- a/src/components/HomePage.vue +++ b/src/components/HomePage.vue @@ -292,7 +292,7 @@ const initUserGameInfos = async (refresh_official, refresh_cap_scan) => { if (result.res.status === 200) { globalStore.draw_chances = result.json.draw_chances globalStore.game_chances = result.json.game_chances - globalStore.invitees = result.json.invitees + globalStore.first_share_today = result.json.first_share_today globalStore.followed_official = result.json.followed_official globalStore.cap_scan = result.json.cap_scan globalStore.game_chances_view_recipes = result.json.game_chances_view_recipes diff --git a/src/components/TodoList.vue b/src/components/TodoList.vue index 5495fe7..e89acbd 100644 --- a/src/components/TodoList.vue +++ b/src/components/TodoList.vue @@ -5,8 +5,7 @@
-
+
@@ -114,8 +113,12 @@ const openQiwei = (e) => { qiweiShow.value = true } -const openHaibao = (e) => { +const openHaibao = async(e) => { const target = e.currentTarget + // TODO 首页分享增加一次合成次数 + // if(!globalStore.first_share_today){ + // const result = await Request('face/share',{mergeId:xxx}) + // } if (target.classList.contains("has")) { return } diff --git a/src/globalstore.js b/src/globalstore.js index 1dd3e1a..c8778dd 100644 --- a/src/globalstore.js +++ b/src/globalstore.js @@ -1,6 +1,7 @@ import { reactive } from "vue" export const globalStore = reactive({ + first_share_today:false, globalAudio: null, userMutedMusic: false, // 用户是否手动静音了音乐 isFirstVisitHomePage: true, // 是否首次访问首页 @@ -14,7 +15,6 @@ export const globalStore = reactive({ generateStatus: false, generateImgTemplates: [], chartsBattle: false, - invitees: 0, followed_official: false, cap_scan: 0, game_chances_view_recipes: 0, @@ -36,7 +36,4 @@ export const globalStore = reactive({ lotteryAdd () { this.lotteryCount++ }, - updateViewRecipesCount () { - this.game_chances_view_recipes = this.game_chances_view_recipes >= this.MAX_VIEW_RECIPES_DAILY ? this.MAX_VIEW_RECIPES_DAILY : this.game_chances_view_recipes + 1 - } }) \ No newline at end of file