import React, { useState } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { FileText, Target, TrendingUp, Calendar, DollarSign, AlertTriangle, ChevronLeft, ChevronRight, RotateCcw, Download } from 'lucide-react'; import { useDemoStore } from '../store/demoStore'; interface ResultPageProps { onRestart: () => void; } const sections = [ { id: 'overview', title: '策划案概述', icon: FileText }, { id: 'introduction', title: '展会介绍与预期效果', icon: Target }, { id: 'marketing', title: '营销方案', icon: TrendingUp }, { id: 'operation', title: '现场运营方案', icon: Calendar }, { id: 'budget', title: '预算与收益分析', icon: DollarSign }, { id: 'risk', title: '风险评估与应急预案', icon: AlertTriangle }, ]; const ResultPage: React.FC = ({ onRestart }) => { const [currentSection, setCurrentSection] = useState(0); const { generatedContent } = useDemoStore(); const handlePrevious = () => { if (currentSection > 0) { setCurrentSection(currentSection - 1); } }; const handleNext = () => { if (currentSection < sections.length - 1) { setCurrentSection(currentSection + 1); } }; // Mock content for demonstration const getSectionContent = (sectionId: string) => { const mockContent = { overview: { title: '2024长三角国际新能源汽车与智能交通产业博览会', content: ` ## 策划背景 在全球碳中和目标推动下,新能源汽车产业迎来爆发式增长。长三角地区作为中国汽车产业核心集群,聚集了特斯拉、上汽、蔚来等龙头企业。 ## 策划目的 - 打造长三角地区新能源汽车与智能交通领域第一展会品牌 - 吸引300家优质展商,实现现场意向交易额超8亿元人民币 - 促进产业链上下游合作,推动技术创新和产业升级 - 推广绿色出行理念,助力碳中和目标实现 `, images: ['/api/placeholder/600/400', '/api/placeholder/600/400'] }, introduction: { title: '展会规模与预期', content: ` ## 展会主题 「智行未来,绿动长三角」 ## 预计规模 - 展览面积:50,000平方米 - 标准展位:1,200个(9平米/个) - 特装展位:20,000平方米 - 参展商家数:350家 - 参观人次:50,000人次 ## 预期效果 - 现场成交额预计超10亿元 - 带动相关产业收入约30亿元 - 媒体曝光量超1亿次 `, images: [] }, // Add more sections... }; return mockContent[sectionId] || generatedContent[sectionId] || mockContent.overview; }; const currentSectionData = getSectionContent(sections[currentSection].id); return (
{/* Header */}

会展策划方案

{/* Section Tabs */}
{sections.map((section, index) => { const Icon = section.icon; return ( ); })}
{/* Content Area */} {/* Section Header */}

{currentSectionData.title}

{/* Section Content */}
{currentSectionData.content}
{/* Images */} {currentSectionData.images && currentSectionData.images.length > 0 && (
{currentSectionData.images.map((src, index) => ( {`Section ))}
)} {/* Navigation */} {/* Page Indicators */}
{sections.map((_, index) => (
))}
); }; export default ResultPage;