Files
likedream/internal/service/email/templates/new_balance_migrate.gohtml
T
2026-03-24 22:13:02 +08:00

51 lines
1.4 KiB
Go Template
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.
{{- /*gotype: likedream-goframe/internal/service/email.BalanceMigrateTemplateData*/ -}}
{{template "layout" .}}
{{define "extra-styles"}}
<style>
.balance-card {
border: 1px solid hsl(240 5.9% 90%);
border-radius: 8px;
padding: 20px;
text-align: center;
margin: 16px 0;
background: hsl(240 4.8% 95.9%);
}
.balance-label {
font-size: 13px;
color: hsl(240 3.8% 46.1%);
margin-bottom: 4px;
}
.balance-amount {
font-size: 28px;
font-weight: 700;
color: hsl(240 10% 3.9%);
letter-spacing: -0.025em;
}
</style>
{{end}}
{{define "content"}}
<p>你好 <span class="user-badge">{{.Username}}</span>,</p>
<p>检测到你在旧系统中有积分余额,可以转移到新系统。</p>
<div class="balance-card">
<div class="balance-label">旧系统积分余额</div>
<div class="balance-amount">{{.Balance}}</div>
</div>
<div style="text-align: center; margin: 24px 0;">
<a href="{{.MigrateURL}}" class="btn-warning">转移积分</a>
</div>
<div class="link-text">{{.MigrateURL}}</div>
<div class="alert alert-warning">
<p><strong>注意事项</strong></p>
<p>• 转移后旧系统积分将清空,请确认后操作</p>
<p>• 每个账户仅可转移一次</p>
<p>• 链接有效期 24 小时</p>
</div>
{{end}}