fix: loadmore

This commit is contained in:
zzc
2026-02-08 18:57:45 +08:00
parent 8fd18b6d8b
commit 2437ed9d2f
14 changed files with 192 additions and 17 deletions

View File

@@ -125,7 +125,7 @@
<script setup>
import { ref, onMounted } from "vue";
import { onLoad } from "@dcloudio/uni-app";
import { onLoad, onShareAppMessage, onShareTimeline } from "@dcloudio/uni-app";
import { getPageDetail } from "@/api/system.js";
import { getAvatarRecommendList } from "@/api/avatar.js";
import { saveViewRequest } from "@/utils/common.js";
@@ -145,6 +145,26 @@ onLoad((options) => {
fetchFrames();
});
onShareAppMessage(() => {
return {
title: "快来看看我刚领到的新年专属头像 🎊",
path: `/pages/avatar/detail?shareToken=${shareToken.value}`,
imageUrl:
detailData.value?.imageUrl ||
"https://file.lihailezzc.com/resource/8dd026d76ef7a63d123b7fd698fb989b.png",
};
});
onShareTimeline(() => {
return {
title: "快来看看我刚领到的新年专属头像 🎊",
query: `shareToken=${shareToken.value}`,
imageUrl:
detailData.value?.imageUrl ||
"https://file.lihailezzc.com/resource/8dd026d76ef7a63d123b7fd698fb989b.png",
};
});
const fetchDetail = async () => {
try {
// uni.showLoading({ title: "加载中..." });

View File

@@ -180,7 +180,12 @@
<script setup>
import { ref, computed } from "vue";
import { onShareAppMessage, onLoad, onReachBottom } from "@dcloudio/uni-app";
import {
onShareAppMessage,
onShareTimeline,
onLoad,
onReachBottom,
} from "@dcloudio/uni-app";
import { useUserStore } from "@/stores/user";
import { getShareReward, abilityCheck } from "@/api/system.js";
import {
@@ -693,13 +698,13 @@ onShareAppMessage(async () => {
};
});
// onShareTimeline(() => {
// return {
// title: "制作我的新春头像",
// imageUrl:
// "https://file.lihailezzc.com/resource/b48c41054c2633c478463ac1b1f1ca23.png",
// };
// });
onShareTimeline(() => {
return {
title: "快来定制你的新年专属头像 🎊",
imageUrl:
"https://file.lihailezzc.com/resource/8dd026d76ef7a63d123b7fd698fb989b.png",
};
});
</script>
<style lang="scss" scoped>