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

@@ -103,6 +103,7 @@ import {
import { getMyCard } from "@/api/mine.js";
import NavBar from "@/components/NavBar/NavBar.vue";
import { getShareToken, trackRecord } from "@/utils/common.js";
import { getShareReward } from "@/api/system";
const list = ref([]);
const page = ref(1);
@@ -134,6 +135,7 @@ onShareAppMessage(async (options) => {
"card_generate",
options?.target?.dataset?.item?.id,
);
getShareReward({ scene: "card_generate" });
return {
title: "我刚做了一张祝福卡片,送给你",
path: "/pages/detail/index?shareToken=" + shareToken,
@@ -142,6 +144,7 @@ onShareAppMessage(async (options) => {
};
} else {
const shareToken = await getShareToken("greeting_page", "");
getShareReward({ scene: "greeting_page" });
return {
title: "新年好运已送达 🎊|祝福卡·头像·壁纸",
path: `/pages/index/index?shareToken=${shareToken}`,