440 lines
13 KiB
HTML
440 lines
13 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
<title>{$meta_title}</title>
|
|
<meta content="{$meta_keywords}" name="keywords" />
|
|
<meta content="{$meta_description}" name="description" />
|
|
{if $url}
|
|
<meta http-equiv="refresh" content="{$time}; url={$url}">
|
|
{/if}
|
|
<style>
|
|
*, *::before, *::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
|
|
"Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
color: #1e293b;
|
|
background: #f0f4f8;
|
|
-webkit-font-smoothing: antialiased;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.page {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 2rem 1.5rem;
|
|
position: relative;
|
|
}
|
|
|
|
.bg-shape {
|
|
position: fixed;
|
|
border-radius: 50%;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
.bg-shape-1 {
|
|
width: 480px;
|
|
height: 480px;
|
|
top: -120px;
|
|
right: -100px;
|
|
animation: float 8s ease-in-out infinite;
|
|
}
|
|
|
|
.bg-shape-2 {
|
|
width: 360px;
|
|
height: 360px;
|
|
bottom: -80px;
|
|
left: -80px;
|
|
animation: float 10s ease-in-out infinite reverse;
|
|
}
|
|
|
|
.bg-shape-3 {
|
|
width: 200px;
|
|
height: 200px;
|
|
top: 40%;
|
|
left: 10%;
|
|
animation: float 12s ease-in-out infinite 2s;
|
|
}
|
|
|
|
body[data-type="success"] .bg-shape-1 { background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 70%); }
|
|
body[data-type="success"] .bg-shape-2 { background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%); }
|
|
body[data-type="success"] .bg-shape-3 { background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%); }
|
|
|
|
body[data-type="error"] .bg-shape-1 { background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%); }
|
|
body[data-type="error"] .bg-shape-2 { background: radial-gradient(circle, rgba(248, 113, 113, 0.08) 0%, transparent 70%); }
|
|
body[data-type="error"] .bg-shape-3 { background: radial-gradient(circle, rgba(251, 146, 60, 0.08) 0%, transparent 70%); }
|
|
|
|
body[data-type="info"] .bg-shape-1 { background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%); }
|
|
body[data-type="info"] .bg-shape-2 { background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%); }
|
|
body[data-type="info"] .bg-shape-3 { background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%); }
|
|
|
|
@keyframes float {
|
|
0%, 100% { transform: translateY(0) scale(1); }
|
|
50% { transform: translateY(-20px) scale(1.05); }
|
|
}
|
|
|
|
.card {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 100%;
|
|
max-width: 520px;
|
|
background: #fff;
|
|
border-radius: 20px;
|
|
box-shadow:
|
|
0 1px 3px rgba(0, 0, 0, 0.04),
|
|
0 8px 32px rgba(0, 0, 0, 0.08);
|
|
padding: 2.75rem 2.5rem 2.25rem;
|
|
text-align: center;
|
|
animation: fadeUp 0.6s ease both;
|
|
}
|
|
|
|
@keyframes fadeUp {
|
|
from { opacity: 0; transform: translateY(24px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.icon {
|
|
width: 72px;
|
|
height: 72px;
|
|
margin: 0 auto 1.5rem;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
animation: popIn 0.5s ease 0.15s both;
|
|
}
|
|
|
|
@keyframes popIn {
|
|
from { opacity: 0; transform: scale(0.6); }
|
|
to { opacity: 1; transform: scale(1); }
|
|
}
|
|
|
|
body[data-type="success"] .icon {
|
|
background: linear-gradient(135deg, #dcfce7, #bbf7d0);
|
|
}
|
|
|
|
body[data-type="success"] .icon svg {
|
|
color: #16a34a;
|
|
}
|
|
|
|
body[data-type="error"] .icon {
|
|
background: linear-gradient(135deg, #fee2e2, #fecaca);
|
|
}
|
|
|
|
body[data-type="error"] .icon svg {
|
|
color: #dc2626;
|
|
}
|
|
|
|
body[data-type="info"] .icon {
|
|
background: linear-gradient(135deg, #eff6ff, #dbeafe);
|
|
}
|
|
|
|
body[data-type="info"] .icon svg {
|
|
color: #2563eb;
|
|
}
|
|
|
|
.icon svg {
|
|
width: 36px;
|
|
height: 36px;
|
|
}
|
|
|
|
.title {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: #0f172a;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.msg {
|
|
font-size: 0.9375rem;
|
|
color: #475569;
|
|
margin-bottom: 1.75rem;
|
|
padding: 0.875rem 1.125rem;
|
|
background: #f8fafc;
|
|
border-radius: 10px;
|
|
border: 1px solid #e2e8f0;
|
|
word-break: break-word;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.countdown {
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1.5rem;
|
|
font-size: 0.875rem;
|
|
color: #64748b;
|
|
}
|
|
|
|
.countdown.is-active {
|
|
display: flex;
|
|
}
|
|
|
|
.countdown-num {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 1.75rem;
|
|
height: 1.75rem;
|
|
padding: 0 0.375rem;
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
color: #fff;
|
|
background: linear-gradient(135deg, #3b82f6, #6366f1);
|
|
}
|
|
|
|
body[data-type="success"] .countdown-num {
|
|
background: linear-gradient(135deg, #22c55e, #16a34a);
|
|
}
|
|
|
|
body[data-type="error"] .countdown-num {
|
|
background: linear-gradient(135deg, #ef4444, #dc2626);
|
|
}
|
|
|
|
.progress {
|
|
width: 100%;
|
|
height: 4px;
|
|
background: #e2e8f0;
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
margin-bottom: 1.75rem;
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 100%;
|
|
border-radius: 2px;
|
|
transition: width 1s linear;
|
|
}
|
|
|
|
body[data-type="success"] .progress-bar { background: linear-gradient(90deg, #22c55e, #4ade80); }
|
|
body[data-type="error"] .progress-bar { background: linear-gradient(90deg, #ef4444, #f87171); }
|
|
body[data-type="info"] .progress-bar { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
|
|
|
|
.actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
padding: 0.625rem 1.375rem;
|
|
border-radius: 10px;
|
|
font-size: 0.9375rem;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
border: none;
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
|
|
}
|
|
|
|
.btn:active {
|
|
transform: scale(0.97);
|
|
}
|
|
|
|
.btn-primary {
|
|
color: #fff;
|
|
box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
body[data-type="success"] .btn-primary {
|
|
background: linear-gradient(135deg, #22c55e, #16a34a);
|
|
box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
|
|
}
|
|
|
|
body[data-type="error"] .btn-primary {
|
|
background: linear-gradient(135deg, #ef4444, #dc2626);
|
|
box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
body[data-type="info"] .btn-primary {
|
|
background: linear-gradient(135deg, #3b82f6, #6366f1);
|
|
box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #f1f5f9;
|
|
color: #475569;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #e2e8f0;
|
|
}
|
|
|
|
.btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.footer {
|
|
position: relative;
|
|
z-index: 1;
|
|
margin-top: 2rem;
|
|
font-size: 0.8125rem;
|
|
color: #94a3b8;
|
|
animation: fadeUp 0.6s ease 0.2s both;
|
|
}
|
|
|
|
.footer a {
|
|
color: #3b82f6;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.footer a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.card {
|
|
padding: 2.25rem 1.5rem 2rem;
|
|
border-radius: 16px;
|
|
}
|
|
|
|
.actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.btn {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
{if $mark==1}
|
|
<body data-type="success">
|
|
{else if $mark==2}
|
|
<body data-type="info">
|
|
{else}
|
|
<body data-type="error">
|
|
{/if}
|
|
|
|
<div class="bg-shape bg-shape-1"></div>
|
|
<div class="bg-shape bg-shape-2"></div>
|
|
<div class="bg-shape bg-shape-3"></div>
|
|
|
|
<div class="page">
|
|
<div class="card">
|
|
<div class="icon">
|
|
{if $mark==1}
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
|
stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/>
|
|
<polyline points="22 4 12 14.01 9 11.01"/>
|
|
</svg>
|
|
{else if $mark==2}
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
|
stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="12" r="10"/>
|
|
<line x1="12" y1="16" x2="12" y2="12"/>
|
|
<line x1="12" y1="8" x2="12.01" y2="8"/>
|
|
</svg>
|
|
{else}
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
|
stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="12" r="10"/>
|
|
<line x1="15" y1="9" x2="9" y2="15"/>
|
|
<line x1="9" y1="9" x2="15" y2="15"/>
|
|
</svg>
|
|
{/if}
|
|
</div>
|
|
|
|
<h1 class="title">
|
|
{if $mark==1}操作成功{else if $mark==2}温馨提示{else}操作失败{/if}
|
|
</h1>
|
|
|
|
<p class="msg">{$msg}</p>
|
|
|
|
{if $url}
|
|
<div class="countdown is-active" id="countdown">
|
|
<span class="countdown-num" id="countdown-num">{$time}</span>
|
|
<span>秒后自动跳转</span>
|
|
</div>
|
|
<div class="progress">
|
|
<div class="progress-bar" id="progress-bar" style="width: 100%"></div>
|
|
</div>
|
|
{/if}
|
|
|
|
<div class="actions">
|
|
{if $url}
|
|
<a href="{$url}" class="btn btn-primary">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
|
stroke-linecap="round" stroke-linejoin="round">
|
|
<line x1="5" y1="12" x2="19" y2="12"/>
|
|
<polyline points="12 5 19 12 12 19"/>
|
|
</svg>
|
|
立即跳转
|
|
</a>
|
|
{else}
|
|
<a href="{$backurl}" class="btn btn-primary">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
|
stroke-linecap="round" stroke-linejoin="round">
|
|
<line x1="19" y1="12" x2="5" y2="12"/>
|
|
<polyline points="12 19 5 12 12 5"/>
|
|
</svg>
|
|
返回上一页
|
|
</a>
|
|
{/if}
|
|
<a href="{SITE_URL}" class="btn btn-secondary">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
|
stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
|
|
<polyline points="9 22 9 12 15 12 15 22"/>
|
|
</svg>
|
|
返回首页
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<p class="footer">
|
|
<a href="{SITE_URL}">{SITE_NAME}</a>
|
|
</p>
|
|
</div>
|
|
|
|
{if $url}
|
|
<script>
|
|
(function () {
|
|
var total = parseInt('{$time}', 10) || 3;
|
|
var left = total;
|
|
var numEl = document.getElementById('countdown-num');
|
|
var barEl = document.getElementById('progress-bar');
|
|
|
|
function tick() {
|
|
left--;
|
|
if (numEl) numEl.textContent = left > 0 ? left : 0;
|
|
if (barEl) barEl.style.width = (left / total * 100) + '%';
|
|
if (left > 0) setTimeout(tick, 1000);
|
|
}
|
|
|
|
setTimeout(tick, 1000);
|
|
})();
|
|
</script>
|
|
{/if}
|
|
|
|
</body>
|
|
</html>
|