fix: rating

This commit is contained in:
zzc
2026-06-10 00:34:12 +08:00
parent d129f1d38e
commit 0383ad6be2
4 changed files with 74 additions and 7 deletions

View File

@@ -150,6 +150,10 @@ const switchCategory = (categoryId) => {
const topicList = ref([]);
const getCurrentCategoryTitle = () => {
return categories.value.find((category) => category.id === currentCategoryId.value)?.title || "推荐";
};
const goToRating = (topicId, itemId) => {
uni.$trackRecord({
eventName: 'jumpto_rating',
@@ -216,8 +220,9 @@ onReachBottom(() => {
onShareAppMessage(async () => {
const shareToken = await getShareToken("index");
getShareReward();
const categoryTitle = getCurrentCategoryTitle();
return {
title: "夯拉评分",
title: `夯拉评分 | ${categoryTitle}榜单正在热议`,
path: "/pages/index/index?shareToken=" + shareToken,
};
});
@@ -225,8 +230,9 @@ onShareAppMessage(async () => {
onShareTimeline(async () => {
const shareToken = await getShareToken("index");
getShareReward();
const categoryTitle = getCurrentCategoryTitle();
return {
title: "夯拉评分",
title: `${categoryTitle}圈都在玩夯拉评分,来看看谁最夯`,
query: `shareToken=${shareToken}`,
};
});