From 115562de531ed08ce73f9cfb8634f7319f5460dd Mon Sep 17 00:00:00 2001 From: zzc <1761997216@qq.com> Date: Tue, 27 Jan 2026 19:35:47 +0800 Subject: [PATCH] optimize: make page share reward --- pages/detail/index.vue | 2 ++ pages/make/index.vue | 8 ++++++-- utils/common.js | 12 +++++++++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/pages/detail/index.vue b/pages/detail/index.vue index 74f14b6..4993ee1 100644 --- a/pages/detail/index.vue +++ b/pages/detail/index.vue @@ -113,6 +113,7 @@ import { ref, onMounted } from "vue"; import { getBavBarHeight } from "@/utils/system"; import { onLoad } from "@dcloudio/uni-app"; import { getPageDetail } from "@/api/system.js"; +import { saveViewRequest } from "@/utils/common.js"; const navBarHeight = ref(44); const statusBarHeight = ref(20); @@ -125,6 +126,7 @@ onLoad(async (options) => { const card = await getPageDetail(options.shareToken); cardId.value = card.id; cardDetail.value = card; + saveViewRequest(options.shareToken, "card_generate", card.id); } }); diff --git a/pages/make/index.vue b/pages/make/index.vue index ef7a3f4..17068ef 100644 --- a/pages/make/index.vue +++ b/pages/make/index.vue @@ -56,7 +56,7 @@ 保存 -