更新NavCommon组件中的按钮图标和文本,将内容管理按钮的图标更改为SendOutlined,并将其文本更改为“发朋友圈”。同时,调整powerCenter模块中的数据结构,注释掉内容库配置部分,并优化样式代码。更新ContentManagement组件的标题为“发朋友圈”。

This commit is contained in:
超级老白兔
2025-11-20 16:50:20 +08:00
parent 84ced0c32a
commit a2b0041490
4 changed files with 36 additions and 39 deletions

View File

@@ -17,7 +17,7 @@ import {
LogoutOutlined,
ThunderboltOutlined,
SettingOutlined,
CalendarOutlined,
SendOutlined,
ClearOutlined,
} from "@ant-design/icons";
import { noticeList, readMessage, readAll } from "./api";
@@ -317,10 +317,10 @@ const NavCommon: React.FC<NavCommonProps> = ({ title = "触客宝" }) => {
></Button>
<Button
icon={<CalendarOutlined />}
icon={<SendOutlined />}
onClick={handleContentManagementClick}
>
</Button>
<span className={styles.title}>{title}</span>
</div>

View File

@@ -20,7 +20,7 @@ const ContentManagement: React.FC = () => {
return (
<div className={styles.container}>
<PowerNavigation
title="内容管理"
title="发朋友圈"
subtitle="可以讲聊天过程的信息收录到素材库中,也调用。"
showBackButton={true}
backButtonText="返回功能中心"

View File

@@ -1,4 +1,9 @@
import { TeamOutlined, CommentOutlined, BookOutlined, SendOutlined } from "@ant-design/icons";
import {
TeamOutlined,
CommentOutlined,
BookOutlined,
SendOutlined,
} from "@ant-design/icons";
// 数据类型定义
export interface FeatureCard {
@@ -56,21 +61,21 @@ export const featureCategories: FeatureCard[] = [
],
path: "/pc/powerCenter/ai-reception",
},
{
id: "content-library",
title: "AI内容库配置",
description: "管理AI内容库,配置调用权限,优化AI推送效果和内容质量",
icon: <BookOutlined style={{ fontSize: "32px", color: "#52c41a" }} />,
color: "#52c41a",
tag: "内容管理",
features: [
"多库管理与分类",
"AI调用权限配置",
"内容检索规则设置",
"手动内容上传",
],
path: "/pc/powerCenter/content-library",
},
// {
// id: "content-library",
// title: "AI内容库配置",
// description: "管理AI内容库,配置调用权限,优化AI推送效果和内容质量",
// icon: <BookOutlined style={{ fontSize: "32px", color: "#52c41a" }} />,
// color: "#52c41a",
// tag: "内容管理",
// features: [
// "多库管理与分类",
// "AI调用权限配置",
// "内容检索规则设置",
// "手动内容上传",
// ],
// path: "/pc/powerCenter/content-library",
// },
{
id: "message-push-assistant",
title: "消息推送助手",

View File

@@ -39,18 +39,6 @@ const PowerCenter: React.FC = () => {
return (
<div className={styles.powerCenter}>
{/* 页面标题区域 */}
<div className={styles.pageHeader}>
<div className={styles.titleSection}>
<div className={styles.mainTitle}>
<div className={styles.titleIcon}></div>
<h1></h1>
</div>
<p className={styles.subtitle}>
AI智能营销··
</p>
</div>
</div>
{/* KPI统计区域置顶按图展示 */}
<div className={styles.kpiSection}>
<Row gutter={16}>
@@ -157,9 +145,11 @@ const PowerCenter: React.FC = () => {
{card.features.map((feature, index) => (
<li
key={index}
style={{
"--dot-color": card.color,
} as React.CSSProperties}
style={
{
"--dot-color": card.color,
} as React.CSSProperties
}
>
{feature}
</li>
@@ -186,7 +176,7 @@ const PowerCenter: React.FC = () => {
className={styles.cardIcon}
style={{
backgroundColor: getIconBgColor(
featureCategories[3].color
featureCategories[3].color,
),
}}
>
@@ -212,9 +202,11 @@ const PowerCenter: React.FC = () => {
{featureCategories[3].features.map((feature, index) => (
<li
key={index}
style={{
"--dot-color": featureCategories[3].color,
} as React.CSSProperties}
style={
{
"--dot-color": featureCategories[3].color,
} as React.CSSProperties
}
>
{feature}
</li>