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