// 模板数据 export const templates = [ { id: 'social-promo-1', name: '社交促销模板1', category: 'promotion', thumbnail: 'https://images.unsplash.com/photo-1607082349566-187342175e2f?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'mainImage', type: 'image', label: '主图', default: 'https://images.unsplash.com/photo-1607082349566-187342175e2f?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#ff5e62' }, { name: 'textColor', type: 'color', label: '文字颜色', default: '#ffffff' }, { name: 'title', type: 'text', label: '标题', default: '限时优惠' }, { name: 'subtitle', type: 'text', label: '副标题', default: '全场商品5折起' }, { name: 'date', type: 'text', label: '日期', default: '2023年12月1日-12月31日' }, { name: 'footerText', type: 'text', label: '底部提示文字', default: '扫码或长按识别二维码' }, { name: 'footerSubText', type: 'text', label: '底部副提示文字', default: '了解更多详情' } ], template: (data) => `
主图

${data.title}

${data.subtitle}

${data.date}

${data.footerText}
${data.footerSubText}

` }, { id: 'event-invitation-1', name: '活动邀请模板1', category: 'event', thumbnail: 'https://images.unsplash.com/photo-1492684223066-81342ee5ff30?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'mainImage', type: 'image', label: '主图', default: 'https://images.unsplash.com/photo-1492684223066-81342ee5ff30?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#1a2a6c' }, { name: 'accentColor', type: 'color', label: '强调色', default: '#fdbb2d' }, { name: 'eventName', type: 'text', label: '活动名称', default: '新品发布会' }, { name: 'eventDate', type: 'text', label: '活动日期', default: '2023年12月15日 14:00' }, { name: 'eventLocation', type: 'text', label: '活动地点', default: '上海市浦东新区XX大厦' }, { name: 'buttonText', type: 'text', label: '按钮文字', default: '诚挚邀请' }, { name: 'footerText', type: 'text', label: '底部文字', default: '扫描二维码报名参加' } ], template: (data) => `
活动图片

${data.eventName}

${data.eventDate}

${data.eventLocation}

${data.buttonText}

${data.footerText}

` }, { id: 'product-launch-1', name: '产品发布模板1', category: 'product', thumbnail: 'https://images.unsplash.com/photo-1505740420928-5e560c06d30e?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'productImage', type: 'image', label: '产品图片', default: 'https://images.unsplash.com/photo-1505740420928-5e560c06d30e?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#f6f6f6' }, { name: 'accentColor', type: 'color', label: '强调色', default: '#ff6b6b' }, { name: 'productName', type: 'text', label: '产品名称', default: '智能手表 Pro' }, { name: 'tagline', type: 'text', label: '产品标语', default: '科技引领未来' }, { name: 'price', type: 'text', label: '产品价格', default: '¥1999' } ], template: (data) => `

${data.productName}

${data.tagline}

产品图片

限时特惠价

${data.price}

立即购买

长按识别二维码了解更多

` }, { id: 'quote-1', name: '名言分享模板1', category: 'social', thumbnail: 'https://images.unsplash.com/photo-1507608616759-54f48f0af0ee?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'bgImage', type: 'image', label: '背景图片', default: 'https://images.unsplash.com/photo-1507608616759-54f48f0af0ee?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'overlayColor', type: 'color', label: '遮罩颜色', default: 'rgba(0, 0, 0, 0.4)' }, { name: 'textColor', type: 'color', label: '文字颜色', default: '#ffffff' }, { name: 'quote', type: 'textarea', label: '名言内容', default: '生活不是等待风暴过去,而是学会在雨中翩翩起舞。' }, { name: 'author', type: 'text', label: '作者', default: '佚名' }, ], template: (data) => `
背景图片
"

${data.quote}

"

— ${data.author}

分享你的感悟

` }, { id: 'food-recipe-1', name: '美食菜谱模板1', category: 'food', thumbnail: 'https://images.unsplash.com/photo-1476224203421-9ac39bcb3327?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'foodImage', type: 'image', label: '菜品图片', default: 'https://images.unsplash.com/photo-1476224203421-9ac39bcb3327?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#ffffff' }, { name: 'accentColor', type: 'color', label: '强调色', default: '#ff9a3c' }, { name: 'dishName', type: 'text', label: '菜品名称', default: '香煎三文鱼' }, { name: 'description', type: 'textarea', label: '简短描述', default: '鲜嫩多汁,营养丰富的美味佳肴' }, { name: 'cookTime', type: 'text', label: '烹饪时间', default: '25分钟' }, ], template: (data) => `
菜品图片

${data.dishName}

${data.description}

${data.cookTime}
2人份
查看完整食谱
` }, { id: 'travel-1', name: '旅行分享模板1', category: 'travel', thumbnail: 'https://images.unsplash.com/photo-1519451241324-20b4ea2c4220?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'travelImage', type: 'image', label: '旅行图片', default: 'https://images.unsplash.com/photo-1519451241324-20b4ea2c4220?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'overlayColor', type: 'color', label: '遮罩颜色', default: 'rgba(0, 0, 0, 0.3)' }, { name: 'accentColor', type: 'color', label: '强调色', default: '#4ecdc4' }, { name: 'location', type: 'text', label: '地点名称', default: '巴厘岛' }, { name: 'tagline', type: 'text', label: '标语', default: '遇见天堂般的美景' }, { name: 'date', type: 'text', label: '日期', default: '2023年夏' }, ], template: (data) => `
旅行图片

${data.date}

${data.location}

${data.tagline}

查看我的旅行攻略

` } ]; // 添加更多模板... // 小红书风格模板 export const xiaohongshuTemplates = [ { id: 'xiaohongshu-1', name: '小红书风格1', category: 'xiaohongshu', thumbnail: 'https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'mainImage', type: 'image', label: '主图', default: 'https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#ffffff' }, { name: 'accentColor', type: 'color', label: '强调色', default: '#ff4757' }, { name: 'title', type: 'text', label: '标题', default: '这家店也太好吃了吧!绝对五星推荐!' }, { name: 'content', type: 'textarea', label: '内容', default: '无意中发现的宝藏小店,环境超级好,菜品颜值和口味都很赞,价格也很实惠,强烈推荐大家来打卡!' }, { name: 'tags', type: 'text', label: '标签', default: '#美食探店 #宝藏餐厅 #推荐' }, ], template: (data) => `
主图

${data.title}

${data.content}

${data.tags}

用户头像
小红薯123
258
36
` }, { id: 'xiaohongshu-2', name: '小红书风格2', category: 'xiaohongshu', thumbnail: 'https://images.unsplash.com/photo-1469594292607-7bd90f8d3ba4?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'mainImage', type: 'image', label: '主图', default: 'https://images.unsplash.com/photo-1469594292607-7bd90f8d3ba4?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#f9f9f9' }, { name: 'accentColor', type: 'color', label: '强调色', default: '#ff4757' }, { name: 'title', type: 'text', label: '标题', default: '超治愈的周末旅行,放空自己的绝佳去处' }, { name: 'content', type: 'textarea', label: '内容', default: '周末和闺蜜一起去了这个小众景点,环境超级好,人也不多,拍照很出片,完全治愈了工作的疲惫~' }, { name: 'tags', type: 'text', label: '标签', default: '#周末出行 #小众景点 #旅行 #治愈系' }, ], template: (data) => `
主图

${data.title}

${data.content}

${data.tags}

用户头像
旅行达人
462 89
` } ]; // 朋友圈风格模板 export const wechatMomentsTemplates = [ { id: 'wechat-moments-1', name: '朋友圈风格1', category: 'wechat', thumbnail: 'https://images.unsplash.com/photo-1504674900247-0877df9cc836?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'mainImage', type: 'image', label: '主图', default: 'https://images.unsplash.com/photo-1504674900247-0877df9cc836?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#f7f7f7' }, { name: 'textColor', type: 'color', label: '文字颜色', default: '#333333' }, { name: 'content', type: 'textarea', label: '内容', default: '今天的晚餐,色香味俱全,自己做的就是香!#美食 #晚餐' }, { name: 'location', type: 'text', label: '位置', default: '家里的小厨房' }, ], template: (data) => `
用户头像

美食达人

2小时前

${data.content}

分享图片
${data.location}
评论

长按图片保存,发朋友圈

` }, { id: 'wechat-moments-2', name: '朋友圈风格2', category: 'wechat', thumbnail: 'https://images.unsplash.com/photo-1529156069898-49953e39b3ac?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'mainImage', type: 'image', label: '主图', default: 'https://images.unsplash.com/photo-1529156069898-49953e39b3ac?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#f7f7f7' }, { name: 'accentColor', type: 'color', label: '强调色', default: '#576b95' }, { name: 'content', type: 'textarea', label: '内容', default: '和好友共度美好时光,感恩遇见 🙏' }, { name: 'time', type: 'text', label: '时间', default: '昨天 20:30' }, ], template: (data) => `
用户头像

生活记录者

${data.time}

${data.content}

分享图片
25
8
张三: 真羡慕你们!下次带上我~
李四: 看起来很开心,地点在哪里?

长按图片保存,发朋友圈

` } ]; // 工作群分享模板 export const workGroupTemplates = [ { id: 'work-group-1', name: '工作群分享1', category: 'work', thumbnail: 'https://images.unsplash.com/photo-1542744173-8e7e53415bb0?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'chartImage', type: 'image', label: '图表图片', default: 'https://images.unsplash.com/photo-1542744173-8e7e53415bb0?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#ffffff' }, { name: 'accentColor', type: 'color', label: '强调色', default: '#2c3e50' }, { name: 'title', type: 'text', label: '标题', default: '本周业绩回顾与下周计划' }, { name: 'content', type: 'textarea', label: '内容', default: '团队本周超额完成销售目标,达成率120%。下周将重点关注新产品推广和客户回访工作。' }, { name: 'date', type: 'text', label: '日期', default: '2023年12月15日' }, { name: 'targetValue', type: 'text', label: '目标达成率', default: '120%' }, { name: 'growthValue', type: 'text', label: '同比增长率', default: '+15%' }, { name: 'satisfactionValue', type: 'text', label: '客户满意度', default: '89%' }, { name: 'authorTitle', type: 'text', label: '作者职位', default: '销售总监' }, { name: 'authorRole', type: 'text', label: '作者角色', default: '团队负责人' }, { name: 'buttonText', type: 'text', label: '按钮文字', default: '查看详情' } ], template: (data) => `

${data.title}

${data.date}

${data.content}

图表
${data.targetValue}

目标达成

${data.growthValue}

同比增长

${data.satisfactionValue}

客户满意度

用户头像

${data.authorTitle}

${data.authorRole}

${data.buttonText}
` }, { id: 'work-group-2', name: '工作群分享2', category: 'work', thumbnail: 'https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'projectImage', type: 'image', label: '项目图片', default: 'https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#f8f9fa' }, { name: 'accentColor', type: 'color', label: '强调色', default: '#3498db' }, { name: 'title', type: 'text', label: '标题', default: '项目进度报告' }, { name: 'projectName', type: 'text', label: '项目名称', default: '新零售系统升级' }, { name: 'progress', type: 'text', label: '进度百分比', default: '75' }, { name: 'startDate', type: 'text', label: '开始日期', default: '2023年10月15日' }, { name: 'deadline', type: 'text', label: '截止日期', default: '2023年12月31日' }, { name: 'teamMemberCount', type: 'text', label: '额外团队成员数', default: '+3' }, { name: 'reportLinkText', type: 'text', label: '报告链接文字', default: '查看详细报告' }, { name: 'shareLinkText', type: 'text', label: '分享链接文字', default: '分享' }, { name: 'teamMembersLabel', type: 'text', label: '团队成员标签', default: '团队成员' }, { name: 'progressLabel', type: 'text', label: '进度标签', default: '项目进度' }, { name: 'startDateLabel', type: 'text', label: '开始日期标签', default: '开始日期' }, { name: 'deadlineLabel', type: 'text', label: '截止日期标签', default: '截止日期' } ], template: (data) => `
项目图片

${data.title}

${data.projectName}

${data.progressLabel}

${data.progress}%

${data.startDateLabel}

${data.startDate}

${data.deadlineLabel}

${data.deadline}

${data.teamMembersLabel}

成员1
成员2
成员3
${data.teamMemberCount}
${data.reportLinkText}
${data.shareLinkText}
` } ]; // 技术团队模板 export const techTemplates = [ { id: 'tech-report-1', name: '技术周报模板', category: 'tech', thumbnail: 'https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'bgImage', type: 'image', label: '背景图片', default: 'https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#1e272e' }, { name: 'accentColor', type: 'color', label: '强调色', default: '#0984e3' }, { name: 'title', type: 'text', label: '标题', default: '技术团队周报' }, { name: 'week', type: 'text', label: '周期', default: '2023年第48周' }, { name: 'achievements', type: 'textarea', label: '主要成果', default: '1. 完成用户中心重构\n2. 修复了5个关键性Bug\n3. 性能优化提升30%' }, { name: 'nextWeek', type: 'textarea', label: '下周计划', default: '1. 开始新功能开发\n2. 进行代码审查\n3. 优化CI/CD流程' }, { name: 'bugFixCount', type: 'text', label: 'Bug修复数量', default: '5' }, { name: 'newFeatureCount', type: 'text', label: '新功能数量', default: '2' }, { name: 'performanceImprovement', type: 'text', label: '性能提升', default: '30%' }, { name: 'bugFixLabel', type: 'text', label: 'Bug修复标签', default: 'Bug修复' }, { name: 'newFeatureLabel', type: 'text', label: '新功能标签', default: '新功能' }, { name: 'performanceLabel', type: 'text', label: '性能标签', default: '性能提升' }, { name: 'achievementsTitle', type: 'text', label: '成果标题', default: '本周成果' }, { name: 'nextWeekTitle', type: 'text', label: '计划标题', default: '下周计划' }, { name: 'footerText', type: 'text', label: '页脚文本', default: '技术团队 © 2023' } ], template: (data) => `
背景图片

${data.title}

${data.week}

${data.achievementsTitle}

${data.achievements}

${data.nextWeekTitle}

${data.nextWeek}

${data.bugFixCount}

${data.bugFixLabel}

${data.newFeatureCount}

${data.newFeatureLabel}

${data.performanceImprovement}

${data.performanceLabel}

${data.footerText}

` }, { id: 'code-share-1', name: '代码分享模板', category: 'tech', thumbnail: 'https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'codeImage', type: 'image', label: '代码截图', default: 'https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#282c34' }, { name: 'accentColor', type: 'color', label: '强调色', default: '#61dafb' }, { name: 'title', type: 'text', label: '标题', default: '优雅的代码解决方案' }, { name: 'language', type: 'text', label: '编程语言', default: 'JavaScript' }, { name: 'description', type: 'textarea', label: '描述', default: '这个优化方案将原本O(n²)的算法复杂度降低到了O(n),大幅提升了性能。' }, ], template: (data) => `

${data.language} - Code Snippet

${data.title}

代码截图

${data.description}

用户头像

高级开发工程师

技术架构组

查看完整代码
` } ]; // 产品团队模板 export const productTemplates = [ { id: 'product-roadmap-1', name: '产品路线图', category: 'product', thumbnail: 'https://images.unsplash.com/photo-1572177812156-58036aae439c?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'productImage', type: 'image', label: '产品图片', default: 'https://images.unsplash.com/photo-1572177812156-58036aae439c?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#ffffff' }, { name: 'accentColor', type: 'color', label: '强调色', default: '#6c5ce7' }, { name: 'title', type: 'text', label: '标题', default: '2024年产品路线图' }, { name: 'q1Goals', type: 'textarea', label: 'Q1目标', default: '用户体验优化\n核心功能重构\n新用户引导流程' }, { name: 'q2Goals', type: 'textarea', label: 'Q2目标', default: '数据分析平台\n企业版功能\nAPI升级' }, ], template: (data) => `
产品图片

${data.title}

Q1

1-3月

${data.q1Goals}

Q2

4-6月

${data.q2Goals}

关键指标

+30%

用户增长

-25%

流失率

+45%

转化率

由产品团队制作

` }, { id: 'user-research-1', name: '用户研究报告', category: 'product', thumbnail: 'https://images.unsplash.com/photo-1551836022-d5d88e9218df?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'researchImage', type: 'image', label: '研究图片', default: 'https://images.unsplash.com/photo-1551836022-d5d88e9218df?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#f5f7fa' }, { name: 'accentColor', type: 'color', label: '强调色', default: '#00b894' }, { name: 'title', type: 'text', label: '标题', default: '用户研究报告' }, { name: 'subtitle', type: 'text', label: '副标题', default: '核心用户行为分析' }, { name: 'findings', type: 'textarea', label: '主要发现', default: '1. 80%的用户在首次使用时遇到了导航困难\n2. 核心功能的使用频率低于预期\n3. 用户对新功能的接受度高' }, { name: 'recommendations', type: 'textarea', label: '改进建议', default: '1. 优化首页导航结构\n2. 增强核心功能的引导\n3. 加快新功能的迭代速度' }, ], template: (data) => `

${data.title}

${data.subtitle}

研究图片

参与用户

120

满意度

78%

完成率

65%

主要发现

${data.findings}

改进建议

${data.recommendations}

用户头像

用户体验设计师

产品团队

2023年12月

` } ]; // 运营团队模板 export const operationTemplates = [ { id: 'data-report-1', name: '数据分析报告', category: 'operation', thumbnail: 'https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'chartImage', type: 'image', label: '图表图片', default: 'https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#ffffff' }, { name: 'accentColor', type: 'color', label: '强调色', default: '#fd79a8' }, { name: 'title', type: 'text', label: '标题', default: '11月营销活动分析报告' }, { name: 'highlights', type: 'textarea', label: '亮点', default: '1. 新用户增长率达到35%,超过目标25%\n2. 活动转化率提升40%\n3. 社交媒体互动量增长60%' }, { name: 'nextSteps', type: 'textarea', label: '下一步计划', default: '1. 扩大社交媒体投放\n2. 优化转化漏斗\n3. 增加会员专属活动' }, ], template: (data) => `

${data.title}

运营数据分析 · 2023年11月

数据图表

35%

新用户增长

40%

转化率提升

60%

互动量增长

活动亮点

${data.highlights}

下一步计划

${data.nextSteps}

用户头像

增长运营专家

运营团队

` }, { id: 'campaign-1', name: '营销活动海报', category: 'operation', thumbnail: 'https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&auto=format&fit=crop&w=240&h=240&q=80', fields: [ { name: 'campaignImage', type: 'image', label: '活动图片', default: 'https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80' }, { name: 'bgColor', type: 'color', label: '背景颜色', default: '#ffeaa7' }, { name: 'accentColor', type: 'color', label: '强调色', default: '#d63031' }, { name: 'title', type: 'text', label: '活动标题', default: '年末狂欢购物节' }, { name: 'subtitle', type: 'text', label: '副标题', default: '全场低至5折,多重好礼等你拿' }, { name: 'period', type: 'text', label: '活动时间', default: '12月18日-12月31日' }, { name: 'highlights', type: 'textarea', label: '活动亮点', default: '1. 爆品限时秒杀\n2. 满300减100\n3. 新用户专享券\n4. 会员额外95折' }, ], template: (data) => `
活动图片
限时活动

${data.title}

${data.subtitle}

活动详情

${data.period}

${data.highlights}

立即参与
` } ]; // 合并所有模板 templates.push(...xiaohongshuTemplates, ...wechatMomentsTemplates, ...workGroupTemplates, ...techTemplates, ...productTemplates, ...operationTemplates);