fix: share reward

This commit is contained in:
zzc
2026-02-28 23:22:35 +08:00
parent b302103c15
commit dd4129bb58
9 changed files with 35 additions and 9 deletions

View File

@@ -132,7 +132,7 @@ import {
onShareAppMessage,
onShareTimeline,
} from "@dcloudio/uni-app";
import { getPageDetail } from "@/api/system.js";
import { getPageDetail, getShareReward } from "@/api/system";
import { getShareToken, saveViewRequest } from "@/utils/common.js";
import NavBar from "@/components/NavBar/NavBar.vue";
@@ -194,6 +194,7 @@ onUnload(() => {
onShareAppMessage(async () => {
const token = await getShareToken("card_generate", cardDetail.value?.id);
getShareReward({ scene: "card_generate" });
return {
title: "送你一张精美的新春祝福卡片 🎊",
path: `/pages/detail/index?shareToken=${token || ""}`,