From a2a15e45a43e97f5f7e62872d06e5e479327aea7 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Tue, 23 Dec 2025 10:54:28 +0800 Subject: [PATCH] =?UTF-8?q?refactor(InvestmentPlanningCenter):=20=E9=87=8D?= =?UTF-8?q?=E6=9E=84=E4=B8=BA=20GlassCard=20=E6=AF=9B=E7=8E=BB=E7=92=83?= =?UTF-8?q?=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 Chakra Card 组件,改用 GlassCard - 标题添加金色渐变效果 - 视图切换按钮改为金色主题 - 使用 lucide-react 的 Target 图标替换 FiTarget - 整体适配 FUI 黑金设计风格 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../components/InvestmentPlanningCenter.tsx | 139 ++++++++++++------ 1 file changed, 95 insertions(+), 44 deletions(-) diff --git a/src/views/Center/components/InvestmentPlanningCenter.tsx b/src/views/Center/components/InvestmentPlanningCenter.tsx index 92402ac1..70ed3b53 100644 --- a/src/views/Center/components/InvestmentPlanningCenter.tsx +++ b/src/views/Center/components/InvestmentPlanningCenter.tsx @@ -15,9 +15,6 @@ import React, { useState, useEffect, useCallback, useMemo, Suspense, lazy } from 'react'; import { Box, - Card, - CardHeader, - CardBody, Heading, HStack, Flex, @@ -33,14 +30,16 @@ import { Center, Button, ButtonGroup, + Text, } from '@chakra-ui/react'; import { FiCalendar, - FiTarget, FiFileText, FiList, FiPlus, } from 'react-icons/fi'; +import { Target } from 'lucide-react'; +import GlassCard from '@components/GlassCard'; import { PlanningDataProvider } from './PlanningContext'; import type { InvestmentEvent, PlanningContextValue } from '@/types'; @@ -160,37 +159,64 @@ const InvestmentPlanningCenter: React.FC = () => { [allEvents] ); + // 金色主题色 + const goldAccent = 'rgba(212, 175, 55, 0.9)'; + return ( - - - - - - 投资规划中心 - - {/* 视图切换按钮组 - H5隐藏 */} - - - - - - - + + {/* 标题区域 */} + + + + + 投资规划中心 + + + {/* 视图切换按钮组 - H5隐藏 */} + + + + + + + {/* 渐变分割线 */} + + + {/* 内容区域 */} + {viewMode === 'calendar' ? ( /* 日历视图 */ }> @@ -201,27 +227,52 @@ const InvestmentPlanningCenter: React.FC = () => { - - - + + + 我的计划 ({planCount}) - + 我的复盘 ({reviewCount})