fix: share reward
This commit is contained in:
@@ -119,6 +119,7 @@ import {
|
||||
onShareTimeline,
|
||||
} from "@dcloudio/uni-app";
|
||||
import { getBavBarHeight } from "@/utils/system";
|
||||
import { getShareReward } from "@/api/system";
|
||||
import { getShareToken } from "@/utils/common";
|
||||
|
||||
const features = ref([
|
||||
@@ -230,10 +231,12 @@ const share = () => {
|
||||
uni.showShareMenu && uni.showShareMenu();
|
||||
};
|
||||
|
||||
onShareAppMessage(() => {
|
||||
onShareAppMessage(async () => {
|
||||
const shareToken = await getShareToken("spring_index");
|
||||
getShareReward({ scene: "spring_index" });
|
||||
return {
|
||||
title: "2026 丙午马年,送你一份新春祝福 🎊",
|
||||
path: "/pages/spring/index",
|
||||
path: `/pages/spring/index?shareToken=${shareToken}`,
|
||||
imageUrl:
|
||||
"https://file.lihailezzc.com/resource/8dd026d76ef7a63d123b7fd698fb989b.png",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user