From 23c2c88530a25a7ee0163fc5aff2a257ee6c42dd Mon Sep 17 00:00:00 2001 From: xiaoaojiao Date: Thu, 18 Sep 2025 22:06:35 +0800 Subject: [PATCH] share update --- src/components/TodoList.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/TodoList.vue b/src/components/TodoList.vue index 19d8aeb..0a2378c 100644 --- a/src/components/TodoList.vue +++ b/src/components/TodoList.vue @@ -29,7 +29,7 @@ import { ref, computed } from "vue" import { globalStore } from "@/globalstore"; import ModalTransition from "./ModalTransition.vue" -import { Storage, generateQR, isWeixin, isMiniPage } from "../libs/utils" +import { Storage, generateQR, isWeixin, isMiniPage, Request } from "../libs/utils" import Haibao from "@/libs/haibao" import bg from "../assets/images/haibao-bg.webp" import mask from "../assets/images/haibao-mask.webp" @@ -122,10 +122,6 @@ const openQiwei = (e) => { const openHaibao = async (e) => { const target = e.currentTarget - // TODO 首页分享增加一次合成次数 - if (!globalStore.first_share_today) { - await Request('face/share', { mergeId: mergeId }) - } if (target.classList.contains("has")) { return } @@ -147,6 +143,11 @@ const openHaibao = async (e) => { globalStore.result_url = foundItem.result_url; mergeId = foundItem.id; haibaoShow.value = true + + if (!globalStore.first_share_today) { + Request(`face/share/${mergeId}`) + } + handleHaibao() } else { return weui.alert("请先参与活动合成图片并打榜!")