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