From b6d55e76981eebb0ef5d1d512f56b41f7274e3b7 Mon Sep 17 00:00:00 2001 From: zzc <1761997216@qq.com> Date: Tue, 26 May 2026 21:02:06 +0800 Subject: [PATCH] rating detail --- components/TopicCard/TopicCard.vue | 2 +- pages/rating/detail.vue | 6 +++--- pages/rating/index.vue | 9 +++++---- pages/release/index.vue | 29 ++++++++++++++--------------- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/components/TopicCard/TopicCard.vue b/components/TopicCard/TopicCard.vue index f254986..55fb9e8 100644 --- a/components/TopicCard/TopicCard.vue +++ b/components/TopicCard/TopicCard.vue @@ -6,7 +6,7 @@ - {{ topic.participants }}人参与 + {{ topic.participantCount }}人参与 diff --git a/pages/rating/detail.vue b/pages/rating/detail.vue index 0e0ece5..5a1c43c 100644 --- a/pages/rating/detail.vue +++ b/pages/rating/detail.vue @@ -27,7 +27,7 @@ 🥇 No.1 - 🔥 {{ detailData.hotScore }} 热度 + 🔥 {{ detailData.hotScore }}w 热度 {{ detailData.ratingCount }} 人评分 @@ -83,7 +83,7 @@ 最热 最新 - + @@ -227,7 +227,7 @@ const getCommentsData = async (isSwitchTab = false) => { const formattedList = list.map(item => ({ id: item.id, name: item.user?.nickname || '匿名用户', - avatar: item.user?.avatar ? `${FILE_BASE_URL}${item.user.avatar}` : 'https://api.dicebear.com/7.x/avataaars/svg?seed=fallback', + avatar: item.user?.avatar ? item.user.avatar : 'https://api.dicebear.com/7.x/avataaars/svg?seed=fallback', time: formatDate(item.createdAt) || '刚刚', // 如果后端返回了时间字段可以替换 content: item.content, likes: item.likeCount || 0, diff --git a/pages/rating/index.vue b/pages/rating/index.vue index 0fec746..ac97232 100644 --- a/pages/rating/index.vue +++ b/pages/rating/index.vue @@ -23,7 +23,7 @@ 热度 {{ topicData.heat }} - {{ topicData.participants }}人参与 + {{ topicData.participantCount }}人参与 @@ -85,7 +85,7 @@ - + @@ -192,7 +192,8 @@ const loadDetail = async (topicId) => { title: data.title || '', heat: data.heat || '0', participants: data.participants || '0', - aiSummary: data.aiSummary || '暂无总结' + aiSummary: data.aiSummary || '暂无总结', + participantCount: data.participantCount || '0' }; } catch (e) { console.error("获取主题详情失败:", e); diff --git a/pages/release/index.vue b/pages/release/index.vue index 4e7a1de..cdf4996 100644 --- a/pages/release/index.vue +++ b/pages/release/index.vue @@ -20,21 +20,21 @@ v-model="formData.title" class="topic-input" maxlength="40" - placeholder="输入一个有争议的话题..." + placeholder="输入一个有趣的话题..." placeholder-class="topic-placeholder" auto-height /> -