feat(email): 优化邮箱验证码邮件发送和更新通知模板样式
- 邮箱验证码邮件标题直接带验证码,方便通知预览和邮件列表查看 - 优先发送HTML格式邮件,失败时降级为文本邮件发送 - 更新通知邮件模板视觉样式,提升阅读体验和品牌感知 - 优化密码重置邮件模板布局和内容结构,增加安全提示和帮助链接 - 改进注册成功邮件模板样式,增强信息分区和用户指导 - 所有邮件模板统一字体和颜色风格,提高整体视觉一致性 - 为通知、密码重置和注册成功页面添加响应式样式支持手机端显示
This commit is contained in:
@@ -208,8 +208,18 @@ public class EmailTemplateUtil {
|
||||
if (email == null || email.trim().isEmpty()) {
|
||||
return;
|
||||
}
|
||||
String title = "邮箱验证码";
|
||||
String content = "您正在绑定或修改邮箱,验证码为:" + code + ",5 分钟内有效,请勿泄露给他人。如非本人操作,请忽略此邮件。";
|
||||
sendNotificationEmail(title, content, email, tenantId, "尊敬的用户", "验证码用于确认邮箱真实性,请勿转发给他人。", null, null);
|
||||
// 标题直接带上验证码,手机通知预览/邮件列表一眼可见
|
||||
String title = "【WebSoft】邮箱验证码:" + code;
|
||||
try {
|
||||
Map<String, Object> data = new HashMap<>();
|
||||
data.put("code", code);
|
||||
data.put("sendTime", DateUtil.now());
|
||||
|
||||
emailRecordService.sendHtmlEmail(title, "captcha.html", data, new String[]{email});
|
||||
} catch (Exception e) {
|
||||
// 如果HTML邮件发送失败,降级为文本邮件(标题仍含验证码)
|
||||
String content = "【WebSoft】邮箱验证码\r\n\r\n您的验证码:" + code + "\r\n\r\n5 分钟内有效,请勿泄露给他人。如非本人操作,请忽略此邮件。";
|
||||
emailRecordService.sendEmail(title, content, email, tenantId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
219
src/main/resources/templates/captcha.html
Normal file
219
src/main/resources/templates/captcha.html
Normal file
@@ -0,0 +1,219 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>WebSoft 邮箱验证码</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
||||
line-height: 1.47059;
|
||||
color: #1d1d1f;
|
||||
background-color: #ffffff;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
.wrap { width: 100%; background: #ffffff; padding: 40px 0 30px; }
|
||||
.container {
|
||||
max-width: 680px;
|
||||
margin: 0 auto;
|
||||
padding: 0 22px;
|
||||
}
|
||||
.brand {
|
||||
text-align: center;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
.brand-logo {
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
color: #1d1d1f;
|
||||
letter-spacing: -0.022em;
|
||||
}
|
||||
.page-title {
|
||||
text-align: center;
|
||||
font-size: 40px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.025em;
|
||||
color: #1d1d1f;
|
||||
margin: 8px 0 30px;
|
||||
line-height: 1.1;
|
||||
}
|
||||
.lede {
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
line-height: 1.4;
|
||||
color: #1d1d1f;
|
||||
margin: 0 auto 26px;
|
||||
max-width: 520px;
|
||||
}
|
||||
.card {
|
||||
background-color: #f5f5f7;
|
||||
border-radius: 18px;
|
||||
padding: 28px 32px;
|
||||
margin: 0 0 22px;
|
||||
}
|
||||
.card-caption {
|
||||
font-size: 13px;
|
||||
line-height: 1.3;
|
||||
color: #6e6e73;
|
||||
font-weight: 400;
|
||||
margin-bottom: 8px;
|
||||
letter-spacing: -0.008em;
|
||||
}
|
||||
.card-title {
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.022em;
|
||||
color: #1d1d1f;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.card-sub {
|
||||
font-size: 14px;
|
||||
color: #6e6e73;
|
||||
line-height: 1.4;
|
||||
}
|
||||
/* 验证码数字卡片 */
|
||||
.code-card {
|
||||
text-align: center;
|
||||
padding: 38px 32px;
|
||||
}
|
||||
.code-caption {
|
||||
font-size: 12px;
|
||||
color: #6e6e73;
|
||||
text-transform: none;
|
||||
letter-spacing: 0.04em;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.code-value {
|
||||
display: inline-block;
|
||||
font-family: 'SF Mono', 'Menlo', 'Consolas', 'Courier New', monospace;
|
||||
font-size: 44px;
|
||||
font-weight: 600;
|
||||
color: #1d1d1f;
|
||||
letter-spacing: 14px;
|
||||
text-indent: 14px;
|
||||
line-height: 1.05;
|
||||
margin: 4px 0 14px;
|
||||
}
|
||||
.code-expire {
|
||||
font-size: 13px;
|
||||
color: #6e6e73;
|
||||
margin-top: 8px;
|
||||
}
|
||||
/* info 灰条 */
|
||||
.info-card {
|
||||
font-size: 14px;
|
||||
color: #1d1d1f;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.info-card strong { color: #1d1d1f; font-weight: 600; }
|
||||
.info-card .label {
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
color: #6e6e73;
|
||||
margin-right: 8px;
|
||||
min-width: 56px;
|
||||
}
|
||||
a { color: #06c; text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
/* 底部 */
|
||||
.footer {
|
||||
text-align: center;
|
||||
margin-top: 40px;
|
||||
padding-top: 24px;
|
||||
border-top: 1px solid #d2d2d7;
|
||||
}
|
||||
.footer-brand {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #1d1d1f;
|
||||
margin-bottom: 12px;
|
||||
letter-spacing: -0.016em;
|
||||
}
|
||||
.footer-links {
|
||||
font-size: 13px;
|
||||
color: #6e6e73;
|
||||
line-height: 1.8;
|
||||
}
|
||||
.footer-links a {
|
||||
color: #6e6e73;
|
||||
margin: 0 14px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.footer-links a:hover { color: #1d1d1f; text-decoration: underline; }
|
||||
.copyright {
|
||||
font-size: 12px;
|
||||
color: #6e6e73;
|
||||
margin-top: 16px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.copyright a { color: #6e6e73; }
|
||||
@media (max-width: 600px) {
|
||||
.page-title { font-size: 30px; }
|
||||
.code-value { font-size: 34px; letter-spacing: 10px; text-indent: 10px; }
|
||||
.card { padding: 22px 22px; border-radius: 16px; }
|
||||
.container { padding: 0 16px; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrap">
|
||||
<div class="container">
|
||||
<!-- Brand -->
|
||||
<div class="brand">
|
||||
<div class="brand-logo">WebSoft</div>
|
||||
</div>
|
||||
|
||||
<!-- Title + Lede -->
|
||||
<h1 class="page-title">邮箱验证码</h1>
|
||||
<p class="lede">您正在绑定或修改邮箱,请使用下方验证码完成验证。</p>
|
||||
|
||||
<!-- 验证码主体卡片 -->
|
||||
<div class="card code-card">
|
||||
<div class="code-caption">您的验证码</div>
|
||||
<div class="code-value">${code!}</div>
|
||||
<div class="code-expire">⏱ 5 分钟内有效,请尽快使用</div>
|
||||
</div>
|
||||
|
||||
<!-- 操作说明卡片 -->
|
||||
<div class="card info-card">
|
||||
<div class="card-title">验证码用于确认邮箱真实性</div>
|
||||
<div class="card-sub" style="margin-top:8px;">
|
||||
请将验证码输入到注册或修改邮箱页面以完成操作。验证码仅对当前请求有效,过期后请重新获取。
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 安全提示卡片 -->
|
||||
<div class="card info-card">
|
||||
<div class="card-caption">安全提示</div>
|
||||
<div style="margin-top:6px;">
|
||||
• 验证码请勿转发或告诉他人,WebSoft 工作人员不会向您索取。<br>
|
||||
• 如非本人操作,请忽略此邮件,您的账号仍然安全。<br>
|
||||
• 多次未收到验证码可在客户端重新申请。
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 时间戳 -->
|
||||
<div style="text-align:center; font-size:12px; color:#6e6e73; margin-top:18px;">
|
||||
发送时间:${sendTime!}
|
||||
</div>
|
||||
|
||||
<!-- Footer -->
|
||||
<div class="footer">
|
||||
<div class="footer-brand">WebSoft</div>
|
||||
<div class="footer-links">
|
||||
<a href="https://websoft.top">官方网站</a>
|
||||
<a href="https://websoft.top/help">帮助中心</a>
|
||||
<a href="https://websoft.top/contact">联系我们</a>
|
||||
<a href="https://websoft.top/settings">账户设置</a>
|
||||
</div>
|
||||
<div class="copyright">
|
||||
Copyright © 2026 WebSoft Inc. 保留所有权利。<br>
|
||||
<a href="https://websoft.top">websoft.top</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,257 +3,209 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>WebSoft通知</title>
|
||||
<title>WebSoft - 系统通知</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.email-container {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
||||
line-height: 1.47059;
|
||||
color: #1d1d1f;
|
||||
background-color: #ffffff;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.header {
|
||||
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
|
||||
padding: 40px 30px;
|
||||
text-align: center;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 10px;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
|
||||
.header-subtitle {
|
||||
font-size: 16px;
|
||||
opacity: 0.9;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.notification-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
background-color: #00d2ff;
|
||||
border-radius: 50%;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 40px 30px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 24px;
|
||||
color: #333;
|
||||
margin-bottom: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.message {
|
||||
font-size: 16px;
|
||||
color: #666;
|
||||
margin-bottom: 30px;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.notification-content {
|
||||
background-color: #f8f9fa;
|
||||
border-radius: 8px;
|
||||
padding: 25px;
|
||||
margin: 30px 0;
|
||||
border-left: 4px solid #4facfe;
|
||||
}
|
||||
|
||||
.notification-content h3 {
|
||||
color: #333;
|
||||
margin-bottom: 15px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.notification-body {
|
||||
color: #555;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.cta-section {
|
||||
text-align: center;
|
||||
margin: 40px 0;
|
||||
}
|
||||
|
||||
.cta-button {
|
||||
display: inline-block;
|
||||
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
padding: 15px 40px;
|
||||
border-radius: 25px;
|
||||
font-size: 16px;
|
||||
.wrap { width: 100%; background: #ffffff; padding: 40px 0 36px; }
|
||||
.container { max-width: 680px; margin: 0 auto; padding: 0 22px; }
|
||||
.brand { text-align: center; margin-bottom: 28px; }
|
||||
.brand-logo {
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
transition: transform 0.2s ease;
|
||||
box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
|
||||
color: #1d1d1f;
|
||||
letter-spacing: -0.022em;
|
||||
}
|
||||
|
||||
.cta-button:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
|
||||
}
|
||||
|
||||
.info-box {
|
||||
background-color: #e3f2fd;
|
||||
border: 1px solid #bbdefb;
|
||||
border-radius: 6px;
|
||||
padding: 15px;
|
||||
margin: 20px 0;
|
||||
color: #1565c0;
|
||||
}
|
||||
|
||||
.info-box strong {
|
||||
color: #0d47a1;
|
||||
}
|
||||
|
||||
.footer {
|
||||
background-color: #2c3e50;
|
||||
color: #ecf0f1;
|
||||
padding: 30px;
|
||||
.page-title {
|
||||
text-align: center;
|
||||
font-size: 40px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.025em;
|
||||
color: #1d1d1f;
|
||||
margin: 8px 0 18px;
|
||||
line-height: 1.1;
|
||||
}
|
||||
.lede {
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
line-height: 1.45;
|
||||
color: #1d1d1f;
|
||||
margin: 0 auto 30px;
|
||||
max-width: 560px;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
margin-bottom: 20px;
|
||||
.info-card {
|
||||
background-color: #f5f5f7;
|
||||
border-radius: 18px;
|
||||
padding: 28px 32px 24px;
|
||||
margin: 0 0 22px;
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
margin: 20px 0;
|
||||
.info-card-title {
|
||||
font-size: 13px;
|
||||
color: #6e6e73;
|
||||
margin-bottom: 14px;
|
||||
letter-spacing: -0.008em;
|
||||
}
|
||||
.info-body {
|
||||
font-size: 15px;
|
||||
line-height: 1.7;
|
||||
color: #1d1d1f;
|
||||
word-break: break-word;
|
||||
}
|
||||
.info-body a { color: #06c; text-decoration: none; }
|
||||
.info-body a:hover { text-decoration: underline; }
|
||||
|
||||
.footer-links a {
|
||||
color: #3498db;
|
||||
text-decoration: none;
|
||||
margin: 0 15px;
|
||||
.tips-card {
|
||||
background-color: #f5f5f7;
|
||||
border-radius: 18px;
|
||||
padding: 22px 32px;
|
||||
margin: 0 0 22px;
|
||||
}
|
||||
.tips-caption {
|
||||
font-size: 13px;
|
||||
color: #6e6e73;
|
||||
margin-bottom: 10px;
|
||||
letter-spacing: -0.008em;
|
||||
}
|
||||
.tips-list {
|
||||
list-style: none;
|
||||
font-size: 14px;
|
||||
color: #1d1d1f;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.tips-list li {
|
||||
padding-left: 14px;
|
||||
position: relative;
|
||||
}
|
||||
.tips-list li:before {
|
||||
content: "•";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
color: #6e6e73;
|
||||
}
|
||||
|
||||
.footer-links a:hover {
|
||||
text-decoration: underline;
|
||||
.cta {
|
||||
text-align: center;
|
||||
margin: 32px 0 6px;
|
||||
}
|
||||
|
||||
.copyright {
|
||||
font-size: 12px;
|
||||
color: #95a5a6;
|
||||
margin-top: 20px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #34495e;
|
||||
.cta a {
|
||||
font-size: 17px;
|
||||
color: #06c;
|
||||
text-decoration: none;
|
||||
letter-spacing: -0.022em;
|
||||
}
|
||||
.cta a:hover { text-decoration: underline; }
|
||||
.cta-sub {
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
color: #6e6e73;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.timestamp {
|
||||
text-align: right;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
margin-top: 20px;
|
||||
padding-top: 15px;
|
||||
border-top: 1px solid #eee;
|
||||
color: #6e6e73;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
margin-top: 44px;
|
||||
padding-top: 22px;
|
||||
border-top: 1px solid #d2d2d7;
|
||||
}
|
||||
.footer-brand {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #1d1d1f;
|
||||
margin-bottom: 10px;
|
||||
letter-spacing: -0.016em;
|
||||
}
|
||||
.footer-links {
|
||||
font-size: 13px;
|
||||
line-height: 1.8;
|
||||
}
|
||||
.footer-links a {
|
||||
color: #6e6e73;
|
||||
margin: 0 14px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.footer-links a:hover { color: #1d1d1f; text-decoration: underline; }
|
||||
.copyright {
|
||||
font-size: 12px;
|
||||
color: #6e6e73;
|
||||
margin-top: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.copyright a { color: #6e6e73; }
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.email-container {
|
||||
margin: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.header, .content, .footer {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 20px;
|
||||
}
|
||||
.page-title { font-size: 30px; }
|
||||
.lede { font-size: 16px; }
|
||||
.container { padding: 0 16px; }
|
||||
.info-card, .tips-card { padding: 22px 22px; border-radius: 16px; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="email-container">
|
||||
<!-- Header -->
|
||||
<div class="header">
|
||||
<div class="logo">WebSoft</div>
|
||||
<div class="header-subtitle">企业级数字化解决方案</div>
|
||||
<div class="notification-icon">📢</div>
|
||||
<div class="wrap">
|
||||
<div class="container">
|
||||
<div class="brand">
|
||||
<div class="brand-logo">WebSoft</div>
|
||||
</div>
|
||||
|
||||
<!-- Content -->
|
||||
<div class="content">
|
||||
<h1 class="title">${title!'系统通知'}</h1>
|
||||
<p class="message">
|
||||
${greeting!'您好!'}我们有一条重要通知需要告知您,请查看以下详细信息。
|
||||
</p>
|
||||
<h1 class="page-title">${title!'系统通知'}</h1>
|
||||
<p class="lede">${greeting!'您好!'}我们有一条重要通知需要告知您,请查看以下详细信息。</p>
|
||||
|
||||
<!-- Notification Content -->
|
||||
<div class="notification-content">
|
||||
<h3>📋 通知详情</h3>
|
||||
<div class="notification-body">
|
||||
${content!'这是一条系统通知消息。'}
|
||||
</div>
|
||||
<!-- 通知详情卡(单张大卡) -->
|
||||
<div class="info-card">
|
||||
<div class="info-card-title">通知详情</div>
|
||||
<div class="info-body">${content!'这是一条系统通知消息。'}</div>
|
||||
</div>
|
||||
|
||||
<!-- Info Box -->
|
||||
<!-- 温馨提示 -->
|
||||
<% if(has(infoMessage)) { %>
|
||||
<div class="info-box">
|
||||
<strong>ℹ️ 温馨提示:</strong> ${infoMessage!}
|
||||
<div class="tips-card">
|
||||
<div class="tips-caption">温馨提示</div>
|
||||
<ul class="tips-list">
|
||||
<li>${infoMessage!}</li>
|
||||
</ul>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<!-- CTA Button -->
|
||||
<!-- CTA -->
|
||||
<% if(has(actionUrl)) { %>
|
||||
<div class="cta-section">
|
||||
<a href="${actionUrl!}" class="cta-button">${actionText!'查看详情'}</a>
|
||||
<div class="cta">
|
||||
<a href="${actionUrl!}">${actionText!'查看详情'} →</a>
|
||||
</div>
|
||||
<div class="cta-sub">如按钮未生效,请将上面的链接复制到浏览器打开。</div>
|
||||
<% } %>
|
||||
|
||||
<!-- Timestamp -->
|
||||
<div class="timestamp">
|
||||
发送时间:${sendTime!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- 时间戳 -->
|
||||
<div class="timestamp">发送时间:${sendTime!}</div>
|
||||
|
||||
<!-- Footer -->
|
||||
<div class="footer">
|
||||
<div class="footer-content">
|
||||
<strong>WebSoft Admin</strong><br>
|
||||
专业的企业数字化转型服务商
|
||||
</div>
|
||||
|
||||
<div class="footer-brand">WebSoft</div>
|
||||
<div class="footer-links">
|
||||
<a href="https://websoft.top">官方网站</a>
|
||||
<a href="https://websoft.top/help">帮助中心</a>
|
||||
<a href="https://websoft.top/contact">联系我们</a>
|
||||
<a href="https://websoft.top/settings">账户设置</a>
|
||||
</div>
|
||||
|
||||
<div class="copyright">
|
||||
© 2025 WebSoft Inc.
|
||||
Copyright © 2026 WebSoft Inc. 保留所有权利。<br>
|
||||
<a href="https://websoft.top">websoft.top</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -3,294 +3,256 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>WebSoft密码重置</title>
|
||||
<title>WebSoft - 密码重置</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.email-container {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
||||
line-height: 1.47059;
|
||||
color: #1d1d1f;
|
||||
background-color: #ffffff;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.header {
|
||||
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
|
||||
padding: 40px 30px;
|
||||
text-align: center;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 10px;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
|
||||
.header-subtitle {
|
||||
font-size: 16px;
|
||||
opacity: 0.9;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.warning-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
background-color: #ffa502;
|
||||
border-radius: 50%;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 40px 30px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 24px;
|
||||
color: #333;
|
||||
margin-bottom: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.message {
|
||||
font-size: 16px;
|
||||
color: #666;
|
||||
margin-bottom: 30px;
|
||||
text-align: center;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.reset-info {
|
||||
background-color: #fff5f5;
|
||||
border-radius: 8px;
|
||||
padding: 25px;
|
||||
margin: 30px 0;
|
||||
border-left: 4px solid #ff6b6b;
|
||||
}
|
||||
|
||||
.reset-info h3 {
|
||||
color: #333;
|
||||
margin-bottom: 15px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.info-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid #fee;
|
||||
}
|
||||
|
||||
.info-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.info-label {
|
||||
.wrap { width: 100%; background: #ffffff; padding: 40px 0 36px; }
|
||||
.container { max-width: 680px; margin: 0 auto; padding: 0 22px; }
|
||||
.brand { text-align: center; margin-bottom: 28px; }
|
||||
.brand-logo {
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
color: #555;
|
||||
min-width: 80px;
|
||||
color: #1d1d1f;
|
||||
letter-spacing: -0.022em;
|
||||
}
|
||||
|
||||
.info-value {
|
||||
color: #333;
|
||||
font-family: 'Courier New', monospace;
|
||||
background-color: #fff;
|
||||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.cta-section {
|
||||
.page-title {
|
||||
text-align: center;
|
||||
margin: 40px 0;
|
||||
}
|
||||
|
||||
.cta-button {
|
||||
display: inline-block;
|
||||
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
padding: 15px 40px;
|
||||
border-radius: 25px;
|
||||
font-size: 16px;
|
||||
font-size: 40px;
|
||||
font-weight: 600;
|
||||
transition: transform 0.2s ease;
|
||||
box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
|
||||
letter-spacing: -0.025em;
|
||||
color: #1d1d1f;
|
||||
margin: 8px 0 18px;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.cta-button:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
|
||||
}
|
||||
|
||||
.security-tips {
|
||||
background-color: #f8f9fa;
|
||||
border-radius: 8px;
|
||||
padding: 25px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
|
||||
.security-tips h3 {
|
||||
color: #333;
|
||||
margin-bottom: 15px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.security-tips ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.security-tips li {
|
||||
padding: 8px 0;
|
||||
color: #666;
|
||||
position: relative;
|
||||
padding-left: 25px;
|
||||
}
|
||||
|
||||
.security-tips li:before {
|
||||
content: "🔒";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.footer {
|
||||
background-color: #2c3e50;
|
||||
color: #ecf0f1;
|
||||
padding: 30px;
|
||||
.lede {
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
line-height: 1.45;
|
||||
color: #1d1d1f;
|
||||
margin: 0 auto 30px;
|
||||
max-width: 560px;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
margin-bottom: 20px;
|
||||
.info-card {
|
||||
background-color: #f5f5f7;
|
||||
border-radius: 18px;
|
||||
padding: 28px 32px 24px;
|
||||
margin: 0 0 22px;
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
margin: 20px 0;
|
||||
.info-card-title {
|
||||
font-size: 13px;
|
||||
color: #6e6e73;
|
||||
margin-bottom: 14px;
|
||||
letter-spacing: -0.008em;
|
||||
}
|
||||
|
||||
.footer-links a {
|
||||
color: #3498db;
|
||||
text-decoration: none;
|
||||
margin: 0 15px;
|
||||
.info-cols {
|
||||
display: table;
|
||||
width: 100%;
|
||||
border-spacing: 0;
|
||||
}
|
||||
.info-col {
|
||||
display: table-cell;
|
||||
vertical-align: top;
|
||||
width: 50%;
|
||||
padding-right: 18px;
|
||||
}
|
||||
.info-col + .info-col {
|
||||
border-left: 1px solid #d2d2d7;
|
||||
padding-left: 22px;
|
||||
padding-right: 0;
|
||||
}
|
||||
.field-row { padding: 8px 0; }
|
||||
.field-label {
|
||||
font-size: 12px;
|
||||
color: #6e6e73;
|
||||
margin-bottom: 4px;
|
||||
letter-spacing: -0.006em;
|
||||
}
|
||||
.field-value {
|
||||
font-size: 15px;
|
||||
color: #1d1d1f;
|
||||
word-break: break-all;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.field-value.mono {
|
||||
font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.footer-links a:hover {
|
||||
text-decoration: underline;
|
||||
.tips-card {
|
||||
background-color: #f5f5f7;
|
||||
border-radius: 18px;
|
||||
padding: 22px 32px;
|
||||
margin: 0 0 22px;
|
||||
}
|
||||
.tips-caption {
|
||||
font-size: 13px;
|
||||
color: #6e6e73;
|
||||
margin-bottom: 10px;
|
||||
letter-spacing: -0.008em;
|
||||
}
|
||||
.tips-list {
|
||||
list-style: none;
|
||||
font-size: 14px;
|
||||
color: #1d1d1f;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.tips-list li {
|
||||
padding-left: 14px;
|
||||
position: relative;
|
||||
}
|
||||
.tips-list li:before {
|
||||
content: "•";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
color: #6e6e73;
|
||||
}
|
||||
|
||||
.warning-card {
|
||||
background-color: #fff5f5;
|
||||
border-radius: 18px;
|
||||
padding: 22px 32px;
|
||||
margin: 0 0 22px;
|
||||
font-size: 14px;
|
||||
color: #1d1d1f;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.warning-card strong { color: #b3271d; font-weight: 600; }
|
||||
|
||||
.cta {
|
||||
text-align: center;
|
||||
margin: 32px 0 6px;
|
||||
}
|
||||
.cta a {
|
||||
font-size: 17px;
|
||||
color: #06c;
|
||||
text-decoration: none;
|
||||
letter-spacing: -0.022em;
|
||||
}
|
||||
.cta a:hover { text-decoration: underline; }
|
||||
.cta-sub {
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
color: #6e6e73;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.help {
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
color: #6e6e73;
|
||||
margin: 26px auto 0;
|
||||
max-width: 560px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.help a { color: #06c; text-decoration: none; }
|
||||
.help a:hover { text-decoration: underline; }
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
margin-top: 44px;
|
||||
padding-top: 22px;
|
||||
border-top: 1px solid #d2d2d7;
|
||||
}
|
||||
.footer-brand {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #1d1d1f;
|
||||
margin-bottom: 10px;
|
||||
letter-spacing: -0.016em;
|
||||
}
|
||||
.footer-links {
|
||||
font-size: 13px;
|
||||
line-height: 1.8;
|
||||
}
|
||||
.footer-links a {
|
||||
color: #6e6e73;
|
||||
margin: 0 14px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.footer-links a:hover { color: #1d1d1f; text-decoration: underline; }
|
||||
.copyright {
|
||||
font-size: 12px;
|
||||
color: #95a5a6;
|
||||
margin-top: 20px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #34495e;
|
||||
}
|
||||
|
||||
.warning-notice {
|
||||
background-color: #fff3cd;
|
||||
border: 1px solid #ffeaa7;
|
||||
border-radius: 6px;
|
||||
padding: 15px;
|
||||
margin: 20px 0;
|
||||
color: #856404;
|
||||
}
|
||||
|
||||
.warning-notice strong {
|
||||
color: #533f03;
|
||||
color: #6e6e73;
|
||||
margin-top: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.copyright a { color: #6e6e73; }
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.email-container {
|
||||
margin: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.header, .content, .footer {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 20px;
|
||||
.page-title { font-size: 30px; }
|
||||
.lede { font-size: 16px; }
|
||||
.container { padding: 0 16px; }
|
||||
.info-card, .tips-card, .warning-card { padding: 22px 22px; border-radius: 16px; }
|
||||
.info-cols { display: block; }
|
||||
.info-col { display: block; width: 100%; padding: 0; }
|
||||
.info-col + .info-col {
|
||||
border-left: none;
|
||||
border-top: 1px solid #d2d2d7;
|
||||
padding: 12px 0 0;
|
||||
margin-top: 12px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="email-container">
|
||||
<!-- Header -->
|
||||
<div class="header">
|
||||
<div class="logo">WebSoft</div>
|
||||
<div class="header-subtitle">企业级数字化解决方案</div>
|
||||
<div class="warning-icon">⚠️</div>
|
||||
<div class="wrap">
|
||||
<div class="container">
|
||||
<div class="brand">
|
||||
<div class="brand-logo">WebSoft</div>
|
||||
</div>
|
||||
|
||||
<!-- Content -->
|
||||
<div class="content">
|
||||
<h1 class="title">密码重置通知</h1>
|
||||
<p class="message">
|
||||
您好!我们收到了您的密码重置请求。为了保障您的账户安全,请查看以下信息。
|
||||
<h1 class="page-title">密码重置</h1>
|
||||
<p class="lede">
|
||||
您好!我们收到了您的密码重置请求,请查看以下账户信息以便您确认是否为本人操作。
|
||||
</p>
|
||||
|
||||
<!-- Reset Information -->
|
||||
<div class="reset-info">
|
||||
<h3>🔑 重置信息</h3>
|
||||
<div class="info-item">
|
||||
<span class="info-label">账号:</span>
|
||||
<span class="info-value">${username!}</span>
|
||||
<!-- 资料大卡 -->
|
||||
<div class="info-card">
|
||||
<div class="info-card-title">WebSoft 账户信息</div>
|
||||
<div class="info-cols">
|
||||
<div class="info-col">
|
||||
<div class="field-row">
|
||||
<div class="field-label">登录账号</div>
|
||||
<div class="field-value">${username!}</div>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="info-label">手机号:</span>
|
||||
<span class="info-value">${phone!}</span>
|
||||
<div class="field-row">
|
||||
<div class="field-label">手机号</div>
|
||||
<div class="field-value">${phone!}</div>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="info-label">重置时间:</span>
|
||||
<span class="info-value">${resetTime!}</span>
|
||||
</div>
|
||||
<div class="info-col">
|
||||
<div class="field-row">
|
||||
<div class="field-label">重置时间</div>
|
||||
<div class="field-value">${resetTime!}</div>
|
||||
</div>
|
||||
<% if(has(newPassword)) { %>
|
||||
<div class="info-item">
|
||||
<span class="info-label">新密码:</span>
|
||||
<span class="info-value">${newPassword!}</span>
|
||||
<div class="field-row">
|
||||
<div class="field-label">新密码</div>
|
||||
<div class="field-value mono">${newPassword!}</div>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
<!-- Warning Notice -->
|
||||
<div class="warning-notice">
|
||||
<strong>⚠️ 重要提醒:</strong> 如果这不是您本人的操作,请立即联系客服并修改密码!
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- CTA Button -->
|
||||
<div class="cta-section">
|
||||
<a href="https://websoft.top/login" class="cta-button">立即登录</a>
|
||||
<!-- 警告卡片 -->
|
||||
<div class="warning-card">
|
||||
<strong>重要提醒:</strong>如果这不是您本人的操作,请立即<a href="${contactUrl!'https://websoft.top/contact'}" style="color:#b3271d;text-decoration:underline;">联系客服</a>并修改密码,您的账户可能已被窃取。
|
||||
</div>
|
||||
|
||||
<!-- Security Tips -->
|
||||
<div class="security-tips">
|
||||
<h3>🛡️ 安全建议</h3>
|
||||
<ul>
|
||||
<!-- 安全建议 -->
|
||||
<div class="tips-card">
|
||||
<div class="tips-caption">安全建议</div>
|
||||
<ul class="tips-list">
|
||||
<li>建议您立即登录并修改为更安全的密码</li>
|
||||
<li>密码应包含大小写字母、数字和特殊字符</li>
|
||||
<li>不要在多个网站使用相同的密码</li>
|
||||
@@ -298,25 +260,30 @@
|
||||
<li>如发现异常登录,请及时联系客服</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Footer -->
|
||||
<div class="cta">
|
||||
<a href="${loginUrl!'https://websoft.top/login'}">立即登录 →</a>
|
||||
</div>
|
||||
<div class="cta-sub">如按钮未生效,请将上面的登录地址复制到浏览器打开。</div>
|
||||
|
||||
<p class="help">
|
||||
如有疑问,请联系客服或访问 <a href="${helpUrl!'https://websoft.top/help'}">帮助中心</a>。
|
||||
</p>
|
||||
|
||||
<div class="footer">
|
||||
<div class="footer-content">
|
||||
<strong>WebSoft Admin</strong><br>
|
||||
专业的企业数字化转型服务商
|
||||
</div>
|
||||
|
||||
<div class="footer-brand">WebSoft</div>
|
||||
<div class="footer-links">
|
||||
<a href="https://websoft.top">官方网站</a>
|
||||
<a href="https://websoft.top/help">帮助中心</a>
|
||||
<a href="https://websoft.top/contact">联系我们</a>
|
||||
<a href="https://websoft.top/settings">账户设置</a>
|
||||
</div>
|
||||
|
||||
<div class="copyright">
|
||||
© 2025 WebSoft Inc.
|
||||
Copyright © 2026 WebSoft Inc. 保留所有权利。<br>
|
||||
<a href="https://websoft.top">websoft.top</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -3,348 +3,291 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>WebSoft账号注册成功</title>
|
||||
<title>WebSoft - 企业官网开通成功</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.email-container {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
||||
line-height: 1.47059;
|
||||
color: #1d1d1f;
|
||||
background-color: #ffffff;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
.wrap { width: 100%; background: #ffffff; padding: 40px 0 36px; }
|
||||
.container { max-width: 680px; margin: 0 auto; padding: 0 22px; }
|
||||
|
||||
.brand { text-align: center; margin-bottom: 28px; }
|
||||
.brand-logo {
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
color: #1d1d1f;
|
||||
letter-spacing: -0.022em;
|
||||
}
|
||||
|
||||
.header {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
padding: 40px 30px;
|
||||
.page-title {
|
||||
text-align: center;
|
||||
color: white;
|
||||
font-size: 40px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.025em;
|
||||
color: #1d1d1f;
|
||||
margin: 8px 0 18px;
|
||||
line-height: 1.1;
|
||||
}
|
||||
.lede {
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
line-height: 1.45;
|
||||
color: #1d1d1f;
|
||||
margin: 0 auto 30px;
|
||||
max-width: 560px;
|
||||
}
|
||||
.lede strong { font-weight: 600; }
|
||||
|
||||
/* 一张大资料卡,左"APPLE 账户"右"站点信息" */
|
||||
.info-card {
|
||||
background-color: #f5f5f7;
|
||||
border-radius: 18px;
|
||||
padding: 28px 32px 24px;
|
||||
margin: 0 0 22px;
|
||||
}
|
||||
.info-card-title {
|
||||
font-size: 13px;
|
||||
color: #6e6e73;
|
||||
margin-bottom: 14px;
|
||||
letter-spacing: -0.008em;
|
||||
}
|
||||
.info-cols {
|
||||
display: table;
|
||||
width: 100%;
|
||||
border-spacing: 0;
|
||||
}
|
||||
.info-col {
|
||||
display: table-cell;
|
||||
vertical-align: top;
|
||||
width: 50%;
|
||||
padding-right: 18px;
|
||||
}
|
||||
.info-col + .info-col {
|
||||
border-left: 1px solid #d2d2d7;
|
||||
padding-left: 22px;
|
||||
padding-right: 0;
|
||||
}
|
||||
.field-row {
|
||||
padding: 8px 0;
|
||||
}
|
||||
.field-label {
|
||||
font-size: 12px;
|
||||
color: #6e6e73;
|
||||
margin-bottom: 4px;
|
||||
letter-spacing: -0.006em;
|
||||
}
|
||||
.field-value {
|
||||
font-size: 15px;
|
||||
color: #1d1d1f;
|
||||
word-break: break-all;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.field-value a {
|
||||
color: #06c;
|
||||
text-decoration: none;
|
||||
}
|
||||
.field-value a:hover { text-decoration: underline; }
|
||||
.field-value.mono {
|
||||
font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
/* 安全提示卡片 */
|
||||
.tips-card {
|
||||
background-color: #f5f5f7;
|
||||
border-radius: 18px;
|
||||
padding: 22px 32px;
|
||||
margin: 0 0 22px;
|
||||
}
|
||||
.tips-caption {
|
||||
font-size: 13px;
|
||||
color: #6e6e73;
|
||||
margin-bottom: 10px;
|
||||
letter-spacing: 2px;
|
||||
letter-spacing: -0.008em;
|
||||
}
|
||||
.tips-list {
|
||||
list-style: none;
|
||||
font-size: 14px;
|
||||
color: #1d1d1f;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.tips-list li {
|
||||
padding-left: 14px;
|
||||
position: relative;
|
||||
}
|
||||
.tips-list li:before {
|
||||
content: "•";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
color: #6e6e73;
|
||||
}
|
||||
|
||||
.header-subtitle {
|
||||
font-size: 16px;
|
||||
opacity: 0.9;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.success-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
background-color: #4CAF50;
|
||||
border-radius: 50%;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 40px 30px;
|
||||
}
|
||||
|
||||
.welcome-title {
|
||||
font-size: 24px;
|
||||
color: #333;
|
||||
margin-bottom: 20px;
|
||||
/* CTA 文字链接(仿 Apple 的"管理账户"链接样式) */
|
||||
.cta {
|
||||
text-align: center;
|
||||
margin: 32px 0 6px;
|
||||
}
|
||||
.cta a {
|
||||
font-size: 17px;
|
||||
color: #06c;
|
||||
text-decoration: none;
|
||||
letter-spacing: -0.022em;
|
||||
}
|
||||
.cta a:hover { text-decoration: underline; }
|
||||
.cta-sub {
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
color: #6e6e73;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.welcome-message {
|
||||
font-size: 16px;
|
||||
color: #666;
|
||||
margin-bottom: 30px;
|
||||
/* 帮助条 */
|
||||
.help {
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
color: #6e6e73;
|
||||
margin: 26px auto 0;
|
||||
max-width: 560px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.help a { color: #06c; text-decoration: none; }
|
||||
.help a:hover { text-decoration: underline; }
|
||||
|
||||
/* 底部 */
|
||||
.footer {
|
||||
text-align: center;
|
||||
margin-top: 44px;
|
||||
padding-top: 22px;
|
||||
border-top: 1px solid #d2d2d7;
|
||||
}
|
||||
.footer-brand {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #1d1d1f;
|
||||
margin-bottom: 10px;
|
||||
letter-spacing: -0.016em;
|
||||
}
|
||||
.footer-links {
|
||||
font-size: 13px;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.account-info {
|
||||
background-color: #f8f9fa;
|
||||
border-radius: 8px;
|
||||
padding: 25px;
|
||||
margin: 30px 0;
|
||||
border-left: 4px solid #667eea;
|
||||
}
|
||||
|
||||
.account-info h3 {
|
||||
color: #333;
|
||||
margin-bottom: 15px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.info-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid #e9ecef;
|
||||
}
|
||||
|
||||
.info-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.info-label {
|
||||
font-weight: 600;
|
||||
color: #555;
|
||||
min-width: 80px;
|
||||
}
|
||||
|
||||
.info-value {
|
||||
color: #333;
|
||||
font-family: 'Courier New', monospace;
|
||||
background-color: #fff;
|
||||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.cta-section {
|
||||
text-align: center;
|
||||
margin: 40px 0;
|
||||
}
|
||||
|
||||
.cta-button {
|
||||
display: inline-block;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
padding: 15px 40px;
|
||||
border-radius: 25px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
transition: transform 0.2s ease;
|
||||
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
|
||||
}
|
||||
|
||||
.cta-button:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
|
||||
}
|
||||
|
||||
.features {
|
||||
margin: 40px 0;
|
||||
}
|
||||
|
||||
.features h3 {
|
||||
text-align: center;
|
||||
margin-bottom: 25px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.feature-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.feature-item {
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
background-color: #f8f9fa;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.feature-icon {
|
||||
font-size: 24px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.feature-title {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.feature-desc {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.footer {
|
||||
background-color: #2c3e50;
|
||||
color: #ecf0f1;
|
||||
padding: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
.footer-links a {
|
||||
color: #3498db;
|
||||
color: #6e6e73;
|
||||
margin: 0 14px;
|
||||
text-decoration: none;
|
||||
margin: 0 15px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.footer-links a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.footer-links a:hover { color: #1d1d1f; text-decoration: underline; }
|
||||
.copyright {
|
||||
font-size: 12px;
|
||||
color: #95a5a6;
|
||||
margin-top: 20px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #34495e;
|
||||
}
|
||||
|
||||
.security-notice {
|
||||
background-color: #fff3cd;
|
||||
border: 1px solid #ffeaa7;
|
||||
border-radius: 6px;
|
||||
padding: 15px;
|
||||
margin: 20px 0;
|
||||
color: #856404;
|
||||
}
|
||||
|
||||
.security-notice strong {
|
||||
color: #533f03;
|
||||
color: #6e6e73;
|
||||
margin-top: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.copyright a { color: #6e6e73; }
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.email-container {
|
||||
margin: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.header, .content, .footer {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.welcome-title {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.feature-grid {
|
||||
grid-template-columns: 1fr;
|
||||
.page-title { font-size: 30px; }
|
||||
.lede { font-size: 16px; }
|
||||
.container { padding: 0 16px; }
|
||||
.info-card, .tips-card { padding: 22px 22px; border-radius: 16px; }
|
||||
.info-cols { display: block; }
|
||||
.info-col { display: block; width: 100%; padding: 0; }
|
||||
.info-col + .info-col {
|
||||
border-left: none;
|
||||
border-top: 1px solid #d2d2d7;
|
||||
padding: 12px 0 0;
|
||||
margin-top: 12px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="email-container">
|
||||
<!-- Header -->
|
||||
<div class="header">
|
||||
<div class="logo">WebSoft</div>
|
||||
<div class="header-subtitle">企业级数字化解决方案</div>
|
||||
<div class="success-icon">✓</div>
|
||||
<div class="wrap">
|
||||
<div class="container">
|
||||
<!-- Brand -->
|
||||
<div class="brand">
|
||||
<div class="brand-logo">WebSoft</div>
|
||||
</div>
|
||||
|
||||
<!-- Content -->
|
||||
<div class="content">
|
||||
<h1 class="welcome-title">恭喜!账号注册成功</h1>
|
||||
<p class="welcome-message">
|
||||
欢迎加入WebSoft大家庭!您的账号已成功创建,现在可以开始体验我们的企业级服务了。
|
||||
<!-- Title + Lede -->
|
||||
<h1 class="page-title">开通成功</h1>
|
||||
<p class="lede">
|
||||
您好!您的企业官网「<strong>${siteName!}</strong>」已开通成功。
|
||||
</p>
|
||||
|
||||
<!-- Account Information -->
|
||||
<div class="account-info">
|
||||
<h3>📋 您的账号信息</h3>
|
||||
<div class="info-item">
|
||||
<span class="info-label">用户名:</span>
|
||||
<span class="info-value">${username!}</span>
|
||||
<!-- 资料大卡:左站点 / 右账号 -->
|
||||
<div class="info-card">
|
||||
<div class="info-card-title">WebSoft 账户信息</div>
|
||||
<div class="info-cols">
|
||||
<div class="info-col">
|
||||
<div class="field-row">
|
||||
<div class="field-label">官网地址</div>
|
||||
<div class="field-value">
|
||||
<a href="${siteUrl!}">${siteUrl!}</a>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="info-label">手机号:</span>
|
||||
<span class="info-value">${phone!}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="info-label">登录密码:</span>
|
||||
<span class="info-value">${password!}</span>
|
||||
<div class="field-row">
|
||||
<div class="field-label">后台地址</div>
|
||||
<div class="field-value">
|
||||
<a href="${adminUrl!}">${adminUrl!}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info-col">
|
||||
<div class="field-row">
|
||||
<div class="field-label">登录账号</div>
|
||||
<div class="field-value">${account!}</div>
|
||||
</div>
|
||||
<div class="field-row">
|
||||
<div class="field-label">登录密码</div>
|
||||
<div class="field-value mono">${password!}</div>
|
||||
</div>
|
||||
</div>
|
||||
<% if(has(email)) { %>
|
||||
<div class="info-item">
|
||||
<span class="info-label">邮箱:</span>
|
||||
<span class="info-value">${email!}</span>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
<!-- Security Notice -->
|
||||
<div class="security-notice">
|
||||
<strong>🔒 安全提醒:</strong> 请妥善保管您的登录信息,建议首次登录后立即修改密码。
|
||||
<!-- 安全提示 -->
|
||||
<div class="tips-card">
|
||||
<div class="tips-caption">安全提示</div>
|
||||
<ul class="tips-list">
|
||||
<li>请妥善保管登录密码,不要通过邮件、聊天工具发送给他人。</li>
|
||||
<li>建议首次登录后立即进入「个人中心 > 修改密码」重置密码。</li>
|
||||
<li>如发现可疑登录或账号被盗,请立即联系客服并修改密码。</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- CTA Button -->
|
||||
<div class="cta-section">
|
||||
<a href="https://websoft.top/login" class="cta-button">立即登录</a>
|
||||
<!-- CTA -->
|
||||
<div class="cta">
|
||||
<a href="${adminUrl!}">点击登录后台 →</a>
|
||||
</div>
|
||||
<div class="cta-sub">如按钮未生效,请将上面的后台地址复制到浏览器打开。</div>
|
||||
|
||||
<!-- Features -->
|
||||
<div class="features">
|
||||
<h3>🚀 开始探索WebSoft的强大功能</h3>
|
||||
<div class="feature-grid">
|
||||
<div class="feature-item">
|
||||
<div class="feature-icon">📊</div>
|
||||
<div class="feature-title">数据分析</div>
|
||||
<div class="feature-desc">智能数据洞察</div>
|
||||
</div>
|
||||
<div class="feature-item">
|
||||
<div class="feature-icon">🔧</div>
|
||||
<div class="feature-title">系统管理</div>
|
||||
<div class="feature-desc">高效运营管理</div>
|
||||
</div>
|
||||
<div class="feature-item">
|
||||
<div class="feature-icon">👥</div>
|
||||
<div class="feature-title">团队协作</div>
|
||||
<div class="feature-desc">无缝团队合作</div>
|
||||
</div>
|
||||
<div class="feature-item">
|
||||
<div class="feature-icon">🛡️</div>
|
||||
<div class="feature-title">安全保障</div>
|
||||
<div class="feature-desc">企业级安全</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 帮助 -->
|
||||
<p class="help">
|
||||
如有疑问,请联系客服或访问 <a href="${helpUrl!'https://websoft.top/help'}">帮助中心</a>。
|
||||
</p>
|
||||
|
||||
<!-- Footer -->
|
||||
<div class="footer">
|
||||
<div class="footer-content">
|
||||
<strong>WebSoft Admin</strong><br>
|
||||
专业的企业数字化转型服务商
|
||||
</div>
|
||||
|
||||
<div class="footer-brand">WebSoft</div>
|
||||
<div class="footer-links">
|
||||
<a href="https://websoft.top">官方网站</a>
|
||||
<a href="https://websoft.top/help">帮助中心</a>
|
||||
<a href="https://websoft.top/contact">联系我们</a>
|
||||
<a href="https://websoft.top/settings">账户设置</a>
|
||||
</div>
|
||||
|
||||
<div class="copyright">
|
||||
© 2025 WebSoft Inc.
|
||||
Copyright © 2026 WebSoft Inc. 保留所有权利。<br>
|
||||
<a href="https://websoft.top">websoft.top</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user