optimize: fortune page share reward

This commit is contained in:
zzc
2026-01-27 21:21:46 +08:00
parent 115562de53
commit eb72b5556b
3 changed files with 111 additions and 98 deletions

View File

@@ -93,6 +93,7 @@
import { ref } from "vue";
import { onLoad } from "@dcloudio/uni-app";
import { getPageDetail } from "@/api/system.js";
import { saveViewRequest } from "@/utils/common.js";
const inviterName = ref("");
const inviterAvatar = ref("");
@@ -122,6 +123,7 @@ const loadPageDetail = async (shareToken) => {
fortuneData.value = data;
inviterName.value = data?.from?.nickname || "";
inviterAvatar.value = data?.from?.avatar || "";
saveViewRequest(shareToken, "fortune_draw", data.fortuneId);
};
const goHome = () => {