fix: share reward
This commit is contained in:
@@ -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 || ""}`,
|
||||
|
||||
@@ -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 || ""}`,
|
||||
|
||||
Reference in New Issue
Block a user