Skip to content

Let's use AI to Earn!

content

bulaienaofutuojiesenzhang5601bca921ad
diff --git a/src/app/[lng]/interactive/interactive.module.css b/src/app/[lng]/interactive/interactive.module.css
index 8b875608..566c5342 100644
--- a/src/app/[lng]/interactive/interactive.module.css
+++ b/src/app/[lng]/interactive/interactive.module.css
@@ -472,8 +472,8 @@
/* 互动卡片瀑布流 */
.grid {
display: grid;
- grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
- gap: 12px;
+ grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
+ gap: 16px;
}
.postCard {
@@ -511,15 +511,26 @@
.postMeta {
padding: 10px;
}
+.postFooter {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-top: 8px;
+}
.postTitle {
font-size: 14px; font-weight: 600; color: #111;
line-height: 1.4; max-height: 3.2em; overflow: hidden;
}
-.statsRow {
- display: flex; gap: 10px; color: #666; font-size: 12px; margin-top: 6px;
+.postContent{
+ margin-top: 6px;
+ font-size: 12px;
+ color: #4b5563;
+ line-height: 1.6;
+ max-height: 4.8em;
+ overflow: hidden;
}
-.actionsRow {
- display: flex; align-items: center; justify-content: space-between; margin-top: 8px;
+.statsRow {
+ display: flex; gap: 12px; color: #666; font-size: 12px;
}
/* 评论弹窗布局修正 */
@@ -527,4 +538,18 @@
width: 100%;
margin-top: 8px;
margin-left: 36px; /* 与头像宽度一致的缩进,避免错位 */
+}
+
+/* 评论按钮样式(图标按钮) */
+.commentBtn {
+ width: 44px;
+ height: 44px;
+ border-radius: 8px;
+ border: 1px solid #e5e7eb;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+}
+.commentBtn:hover {
+ border-color: #d1d5db;
}
\ No newline at end of file
diff --git a/src/app/[lng]/interactive/page.tsx b/src/app/[lng]/interactive/page.tsx
index 14201c77..8d68e38c 100644
--- a/src/app/[lng]/interactive/page.tsx
+++ b/src/app/[lng]/interactive/page.tsx
@@ -2,7 +2,7 @@
import { useEffect, useRef, useState } from "react";
import { Card, Button, message, Tag, Space, Select, Modal, Input, List, Avatar } from "antd";
-import { DollarOutlined, HistoryOutlined, WalletOutlined } from "@ant-design/icons";
+import { DollarOutlined, HistoryOutlined, WalletOutlined, CommentOutlined, LikeOutlined, EyeOutlined } from "@ant-design/icons";
import { useParams, useRouter } from "next/navigation";
import { useUserStore } from "@/store/user";
import { apiGetEngagementPosts, apiGetEngagementComments, apiReplyEngagementComment, apiGetPostComments, apiPublishPostComment, apiPublishCommentReply, apiGetCommentReplies } from "@/api/engagement";
@@ -135,14 +135,21 @@ export default function InteractivePage() {
</a>
<div className={styles.postMeta}>
<div className={styles.postTitle} title={item.title}>{item.title || '-'}</div>
- <div className={styles.statsRow}>
- <span>👍 {item.likeCount}</span>
- <span>💬 {item.commentCount}</span>
- <span>👁️ {item.viewCount}</span>
- </div>
- <div className={styles.actionsRow}>
+ {item.content && (
+ <div className={styles.postContent} title={item.content}>
+ {item.content}
+ </div>
+ )}
+ <div className={styles.postFooter}>
+ <div className={styles.statsRow}>
+ <span><LikeOutlined style={{ marginRight: 6 }} />{item.likeCount}</span>
+ <span><CommentOutlined style={{ marginRight: 6 }} />{item.commentCount}</span>
+ <span><EyeOutlined style={{ marginRight: 6 }} />{item.viewCount}</span>
+ </div>
<Space size={8}>
- <Button size="small" onClick={() => openComments(item)}>评论</Button>
+ <Button className={styles.commentBtn} type="text" onClick={() => openComments(item)}>
+ <CommentOutlined style={{ fontSize: 22 }} />
+ </Button>
</Space>
</div>
</div>