Skip to content

Let's use AI to Earn!

feat: 界面调整

yikaJasonMicb749cd0f8d21
diff --git a/src/views/reply/index.tsx b/src/views/reply/index.tsx
index d928fc86..a41815de 100644
--- a/src/views/reply/index.tsx
+++ b/src/views/reply/index.tsx
@@ -1,19 +1,24 @@
/*
* @Author: nevin
* @Date: 2025-02-10 22:20:15
- * @LastEditTime: 2025-03-25 15:32:17
+ * @LastEditTime: 2025-03-25 16:01:56
* @LastEditors: nevin
* @Description: 评论页面 reply
*/
import { icpCreatorList, WorkData, icpCreateCommentList } from '@/icp/reply';
-import { Button, Col, message, Row } from 'antd';
+import { Button, Col, message, Row, Tooltip } from 'antd';
import { useCallback, useRef, useState } from 'react';
import AccountSidebar from '../account/components/AccountSidebar/AccountSidebar';
-import styles from './reply.module.scss';
import ReplyWorks, { ReplyWorksRef } from './components/replyWorks';
import AddAutoRun, { AddAutoRunRef } from './components/addAutoRun';
import CommentList, { CommentListRef } from './components/commentList';
import { SendChannelEnum } from '@@/UtilsEnum';
+import {
+ AliwangwangOutlined,
+ CommentOutlined,
+ FieldTimeOutlined,
+ MenuUnfoldOutlined,
+} from '@ant-design/icons';
export default function Page() {
const [wordList, setWordList] = useState<WorkData[]>([]);
@@ -79,7 +84,7 @@ export default function Page() {
}
return (
- <div className={styles.reply}>
+ <div>
<Row>
<Col span={4}>
<AccountSidebar
@@ -90,11 +95,11 @@ export default function Page() {
}, [])}
/>
</Col>
- <Col span={20}>
- <div className="grid grid-cols-3 gap-4">
+ <Col span={20} className="bg-gray-100">
+ <div className="grid grid-cols-5 p-4">
{wordList.map((item) => (
<div
- className="w-[200px] h-[200px] border border-gray-300 p-4 rounded-lg hover:shadow-lg transition-shadow duration-300"
+ className="bg-white w-[200px] h-[200px] border border-gray-300 p-4 rounded-lg hover:shadow-lg transition-shadow duration-300 m-4"
key={item.dataId}
>
<Row>
@@ -108,32 +113,43 @@ export default function Page() {
</div>
</Col>
<Col span={12}>
- <div className="w-[100px] h-[200px]">
- <p>{item.title || '无标题'}</p>
- <Button
- type="primary"
- onClick={() => openCommentList(item)}
- >
- 评论列表
- </Button>
- <Button
- type="primary"
- onClick={() => openReplyWorks(item)}
- >
- 评论作品
- </Button>
- <Button
- type="primary"
- onClick={() => createCommentList(item)}
- >
- 一键AI评论
- </Button>
- <Button
- type="primary"
- onClick={() => openAddAutoRun(item)}
- >
- 创建自动任务
- </Button>
+ <div className="flex flex-col h-full">
+ <p className="mb-2">{item.title || '无标题'}</p>
+ <div className="w-full mt-auto">
+ <Row justify="space-evenly">
+ <Col span={8}>
+ <Tooltip title="评论列表">
+ <MenuUnfoldOutlined
+ onClick={() => openCommentList(item)}
+ />
+ </Tooltip>
+ </Col>
+ <Col span={8}>
+ <Tooltip title="评论作品">
+ <CommentOutlined
+ onClick={() => openReplyWorks(item)}
+ />
+ </Tooltip>
+ </Col>
+ </Row>
+
+ <Row justify="space-evenly">
+ <Col span={8}>
+ <Tooltip title="一键评论">
+ <AliwangwangOutlined
+ onClick={() => createCommentList(item)}
+ />
+ </Tooltip>
+ </Col>
+ <Col span={8}>
+ <Tooltip title="自动评论">
+ <FieldTimeOutlined
+ onClick={() => openAddAutoRun(item)}
+ />
+ </Tooltip>
+ </Col>
+ </Row>
+ </div>
</div>
</Col>
</Row>