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

@@ -105,7 +105,7 @@
import { ref, computed } from "vue";
import { onLoad, onShareAppMessage, onShareTimeline } from "@dcloudio/uni-app";
import { getBavBarHeight } from "@/utils/system";
import { getPageDetail } from "@/api/system";
import { getPageDetail, getShareReward } from "@/api/system";
import { getWallpaperSameList } from "@/api/wallpaper";
import {
getShareToken,
@@ -155,6 +155,7 @@ onLoad(async (options) => {
onShareAppMessage(async () => {
const token = await getShareToken("wallpaper_download", detailData.value?.id);
getShareReward({ scene: "wallpaper_download" });
return {
title: "快来看看我刚领到的新年精美壁纸 🖼",
path: `/pages/wallpaper/detail?shareToken=${token || ""}`,

View File

@@ -127,7 +127,7 @@
import { ref } from "vue";
import { onLoad, onShareAppMessage, onShareTimeline } from "@dcloudio/uni-app";
import { getBavBarHeight } from "@/utils/system";
import { getPageDetail } from "@/api/system";
import { getPageDetail, getShareReward } from "@/api/system";
import { getWallpaperRecommendList } from "@/api/wallpaper";
import { getShareToken, saveViewRequest } from "@/utils/common.js";
@@ -150,6 +150,7 @@ onLoad(async (options) => {
onShareAppMessage(async () => {
const token = await getShareToken("wallpaper_download", detailData.value?.id);
getShareReward({ scene: "wallpaper_download" });
return {
title: "快来看看我刚领到的新年精美壁纸 🖼",
path: `/pages/wallpaper/detail?shareToken=${token || ""}`,