Files
GEAR-OA/gear-ui3/src/views/sale/contact/templates/marketing.js
JR a8b0206cce feat(oa): 添加知识管理和邮件功能模块
- 新增知识分类和知识文章的完整CRUD接口- 实现知识文章预览组件,支持富文本和附件展示
- 添加动态邮件配置功能,支持多种邮箱类型自动识别
- 实现邮件模板管理功能,提供多种商务邮件模板- 添加邮件发送功能,支持批量发送和附件上传
- 完善邮件工具类,支持富文本、附件和内嵌图片发送- 新增发件人邮箱账号管理功能
- 添加家具信息管理相关接口- 配置默认邮件服务参数
2025-10-22 22:36:10 +08:00

103 lines
5.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 营销邮件模板
* 适用于产品推广、活动宣传等营销场景
*/
export const marketingTemplate = {
name: "营销推广模板",
description: "专业的营销推广邮件模板,适合产品推广和活动宣传",
category: "marketing",
html: `
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<!-- 头部横幅 -->
<tr>
<td style="background: linear-gradient(45deg, #ff6b6b, #ffa726); padding: 40px 30px; text-align: center;">
<h1 style="color: white; margin: 0; font-size: 32px; font-weight: 600; font-family: Arial, sans-serif;">限时优惠</h1>
<p style="color: rgba(255,255,255,0.9); margin: 15px 0 0 0; font-size: 18px; font-family: Arial, sans-serif;">Special Offer</p>
</td>
</tr>
<!-- 主要内容 -->
<tr>
<td style="padding: 40px 30px; background-color: #ffffff;">
<!-- 优惠信息 -->
<div style="margin-bottom: 30px;">
<h2 style="color: #2c3e50; font-size: 26px; margin-bottom: 20px; text-align: center; font-family: Arial, sans-serif;">
🎉 特别优惠活动
</h2>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%); border-radius: 12px; margin-bottom: 30px;">
<tr>
<td style="padding: 25px; color: white; text-align: center;">
<h3 style="margin: 0 0 15px 0; font-size: 24px; font-family: Arial, sans-serif;">限时折扣</h3>
<p style="margin: 0; font-size: 18px; font-family: Arial, sans-serif;">全场商品 <strong>8折优惠</strong></p>
<p style="margin: 10px 0 0 0; font-size: 14px; font-family: Arial, sans-serif;">活动时间2024年1月1日 - 2024年1月31日</p>
</td>
</tr>
</table>
</div>
<!-- 产品推荐 -->
<div style="margin-bottom: 30px;">
<h3 style="color: #2c3e50; margin: 0 0 20px 0; font-size: 20px; text-align: center; font-family: Arial, sans-serif;">🔥 热门推荐</h3>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td style="width: 50%; padding-right: 10px;">
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="background: #f8f9fa; border-radius: 8px;">
<tr>
<td style="padding: 20px; text-align: center;">
<div style="width: 80px; height: 80px; background: linear-gradient(45deg, #ff6b6b, #ffa726); border-radius: 50%; margin: 0 auto 15px; display: inline-block; line-height: 80px; font-size: 32px; color: white;">🏠</div>
<h4 style="margin: 0 0 10px 0; color: #2c3e50; font-family: Arial, sans-serif;">精品家具</h4>
<p style="margin: 0 0 15px 0; color: #7f8c8d; font-size: 14px; font-family: Arial, sans-serif;">现代简约风格,品质保证</p>
<div style="background: #ff6b6b; color: white; padding: 8px 16px; border-radius: 20px; font-weight: bold; font-family: Arial, sans-serif;">
原价 ¥2999 现价 ¥2399
</div>
</td>
</tr>
</table>
</td>
<td style="width: 50%; padding-left: 10px;">
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="background: #f8f9fa; border-radius: 8px;">
<tr>
<td style="padding: 20px; text-align: center;">
<div style="width: 80px; height: 80px; background: linear-gradient(45deg, #4ecdc4, #44a08d); border-radius: 50%; margin: 0 auto 15px; display: inline-block; line-height: 80px; font-size: 32px; color: white;">🛋️</div>
<h4 style="margin: 0 0 10px 0; color: #2c3e50; font-family: Arial, sans-serif;">办公用品</h4>
<p style="margin: 0 0 15px 0; color: #7f8c8d; font-size: 14px; font-family: Arial, sans-serif;">专业办公环境解决方案</p>
<div style="background: #4ecdc4; color: white; padding: 8px 16px; border-radius: 20px; font-weight: bold; font-family: Arial, sans-serif;">
原价 ¥1999 现价 ¥1599
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!-- 行动号召 -->
<div style="text-align: center; margin-bottom: 30px;">
<table role="presentation" cellspacing="0" cellpadding="0" border="0" style="margin: 0 auto;">
<tr>
<td style="background: linear-gradient(45deg, #ff6b6b, #ffa726); border-radius: 25px; padding: 15px 30px;">
<a href="#" style="color: white; text-decoration: none; font-size: 18px; font-weight: bold; font-family: Arial, sans-serif;">
🛒 立即购买
</a>
</td>
</tr>
</table>
</div>
<!-- 邮件正文内容 -->
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="background-color: #f8f9fa; border-radius: 8px; border-left: 4px solid #ff6b6b;">
<tr>
<td style="padding: 25px;">
<h3 style="color: #2c3e50; margin: 0 0 15px 0; font-size: 18px; font-family: Arial, sans-serif;">📧 详细信息</h3>
<div style="line-height: 1.8; color: #555; font-size: 16px; font-family: Arial, sans-serif;">
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
`
};