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

@@ -126,7 +126,7 @@
<script setup>
import { ref } from "vue";
import { onLoad, onShareAppMessage, onShareTimeline } from "@dcloudio/uni-app";
import { getPageDetail } from "@/api/system.js";
import { getPageDetail, getShareReward } from "@/api/system";
import { getAvatarRecommendList } from "@/api/avatar.js";
import { getShareToken, saveViewRequest } from "@/utils/common.js";
import NavBar from "@/components/NavBar/NavBar.vue";
@@ -147,6 +147,7 @@ onLoad((options) => {
onShareAppMessage(async () => {
const token = await getShareToken("avatar_download", detailData.value?.id);
getShareReward({ scene: "avatar_download" });
return {
title: "快来看看我刚领到的新年专属头像 🎊",
path: `/pages/avatar/detail?shareToken=${token}`,