105 lines
2.3 KiB
HTML
105 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-cn">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title><%= title %></title>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 24px;
|
|
background: #f5f7fb;
|
|
color: #1f2937;
|
|
font-family: "Microsoft YaHei", sans-serif;
|
|
}
|
|
|
|
.card {
|
|
max-width: 560px;
|
|
margin: 40px auto;
|
|
background: #ffffff;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.header {
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.header h1 {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.summary {
|
|
margin: 16px 24px 0;
|
|
padding: 16px;
|
|
border-radius: 10px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.summary.success { background: #ecfdf3; color: #027a48; }
|
|
.summary.error { background: #fef3f2; color: #b42318; }
|
|
|
|
.content {
|
|
padding: 16px 24px 24px;
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
padding: 8px 0;
|
|
border-bottom: 1px dashed #e5e7eb;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.row:last-child { border-bottom: none; }
|
|
|
|
.label {
|
|
width: 120px;
|
|
color: #6b7280;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.value {
|
|
word-break: break-all;
|
|
color: #111827;
|
|
}
|
|
|
|
.hint {
|
|
margin-top: 12px;
|
|
font-size: 13px;
|
|
color: #9ca3af;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="card">
|
|
<div class="header">
|
|
<h1><%= title %></h1>
|
|
</div>
|
|
<div class="summary <%= resultLevel %>"><%= resultText %></div>
|
|
<div class="content">
|
|
<% if (resultLevel === 'success') { %>
|
|
<div class="row">
|
|
<div class="label">小程序AppID</div>
|
|
<div class="value"><%= appid %></div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="label">小程序名称</div>
|
|
<div class="value"><%= nickname || '-' %></div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="label">绑定仓库ID</div>
|
|
<div class="value"><%= warehouseId === null || warehouseId === undefined ? '-' : warehouseId %></div>
|
|
</div>
|
|
<div class="hint">授权信息已保存,可返回系统查看小程序列表。</div>
|
|
<% } else { %>
|
|
<div class="hint">请返回系统重新发起授权。</div>
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|