This commit is contained in:
biss committed 2026-05-05 07:13:54 +08:00
1 parent 759e1fad0d
commit 82210681c0
20 files changed
+4145

No files matched your search

+91
View File
@@ -0,0 +1,91 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>证书核验详情</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Orbitron:wght@500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="../css/tech-query.css">
<link rel="stylesheet" href="../css/notice-banner.css">
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
</head>
<body>
<main class="detail-shell">
<div class="top-actions">
<a href="javascript:history.back()" class="tech-link-button secondary">返回查询</a>
<div class="top-actions-group">
<button type="button" class="tech-button secondary" onclick="loadCertificateImage()">加载证书图片</button>
<button type="button" class="tech-button" onclick="printCertificate()">打印证书与明细</button>
</div>
</div>
<section class="detail-grid">
<section class="preview-panel">
<div class="section-kicker">Certificate Preview</div>
<h1 class="section-heading">证书原件预览</h1>
<p class="section-copy">点击下方预览区域或使用顶部按钮,即可加载对应证书原件图片。</p>
<div id="cert-viewport" class="certificate-stage" onclick="loadCertificateImage()">
<img id="cert-img" alt="证书原件">
<div class="certificate-hint" id="click-hint">
<span class="hint-orb">证</span>
<strong>点击加载证书图片</strong>
<span>原件图片将从当前证书编号对应的 `img/*.svg` 文件中读取。</span>
</div>
</div>
</section>
<aside class="summary-panel">
<div class="section-kicker">Verify Status</div>
<h2 class="section-heading">核验摘要</h2>
<p class="section-copy">证书基础信息与系统核验状态会在这里同步展示。</p>
<div class="summary-stack">
<div class="summary-tile">
<span class="summary-label">证书编号</span>
<div class="summary-value emphasis" id="summary-cert-number">-</div>
</div>
<div class="summary-tile">
<span class="summary-label">持有人</span>
<div class="summary-value" id="summary-holder-name">-</div>
</div>
<div class="summary-tile">
<span class="summary-label">核验状态</span>
<div id="display-status"><span class="status-pill pending">待核验</span></div>
</div>
<div class="summary-tile">
<span class="summary-label">最近核验时间</span>
<div class="summary-value" id="summary-verify-time">-</div>
</div>
</div>
</aside>
</section>
<section class="detail-panel is-hidden mt-18" id="info-card">
<div class="section-kicker">Certificate Detail</div>
<h2 class="section-heading">证书明细信息</h2>
<p class="section-copy">以下信息由证书数据库实时读取,用于核验与归档展示。</p>
<div class="info-table-shell">
<table class="info-table">
<tr><th>证书编号</th><td id="d-cert-number">-</td></tr>
<tr><th>持有人姓名</th><td id="d-holder-name">-</td></tr>
<tr><th>荣誉名称</th><td id="d-honor-title">-</td></tr>
<tr><th>颁发日期</th><td id="d-issue-date">-</td></tr>
<tr><th>颁发机构</th><td id="d-issuer">-</td></tr>
<tr><th>详细描述</th><td id="d-desc">-</td></tr>
<tr><th>系统备注</th><td id="d-remarks">-</td></tr>
<tr><th>核验时间</th><td id="d-verify-time">-</td></tr>
</table>
</div>
</section>
</main>
<footer class="page-footer">
<p>© 2026 BI Intelligent Query Interface</p>
</footer>
<script src="../js/certs-certificate.js"></script>
<script src="https://cdn.jsdmirror.cn/gh/bishshi/wechat-detect@main/wechat-detect.js"></script>
<script src="../js/notice-banner.js"></script>
</body>
</html>
+96
View File
@@ -0,0 +1,96 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>证书查询系统</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Orbitron:wght@500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="../css/tech-query.css">
<link rel="stylesheet" href="../css/notice-banner.css">
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<script src="https://unpkg.com/html5-qrcode"></script>
</head>
<body>
<main class="page-shell">
<section class="page-header">
<div class="hero-card">
<span class="eyebrow">Certificate Search</span>
<h1>荣誉证书智能核验平台</h1>
<p>支持按证书编号、持有人姓名与奖项名进行检索,也可以直接扫码快速定位证书记录。</p>
<div class="hero-meta">
<span class="meta-chip">数据范围:2024 年 10 月至今</span>
<span class="meta-chip">查询方式:文本检索 / 条形码扫描</span>
</div>
</div>
<aside class="stat-card">
<div>
<div class="stat-label">Module</div>
<div class="stat-value">CERT</div>
</div>
<p></p>
</aside>
</section>
<section class="panel-card">
<div class="panel-title-row">
<div>
<h2 class="panel-title">检索条件</h2>
<div class="panel-subtitle">输入编号、姓名或奖项名后即可开始查询</div>
</div>
</div>
<div class="search-grid">
<div class="form-group">
<label class="form-label" for="searchTerm">编号 / 姓名 / 奖项名</label>
<div class="input-with-action">
<input type="text" id="searchTerm" class="tech-input" placeholder="输入编号、姓名或奖项名,或点击右侧扫条形码">
<button type="button" class="icon-action" id="startScanBtn" title="扫条形码查询" aria-label="扫条形码查询">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7V5a2 2 0 0 1 2-2h2"></path><path d="M17 3h2a2 2 0 0 1 2 2v2"></path><path d="M21 17v2a2 2 0 0 1-2 2h-2"></path><path d="M7 21H5a2 2 0 0 1-2-2v-2"></path><rect x="7" y="7" width="10" height="10"></rect></svg>
</button>
</div>
</div>
<div class="form-group">
<label class="form-label" for="dateStart">开始日期</label>
<input type="date" id="dateStart" class="tech-input">
</div>
<div class="form-group">
<label class="form-label" for="dateEnd">结束日期</label>
<input type="date" id="dateEnd" class="tech-input">
</div>
<button id="searchBtn" class="tech-button">执行查询</button>
</div>
</section>
<section class="panel-card results-card">
<div class="panel-title-row">
<div>
<h2 class="panel-title">查询结果</h2>
<div class="panel-subtitle">点击“查看详情”进入证书详情页</div>
</div>
</div>
<div id="resultsArea" class="results-shell">
<div class="empty-state">请输入查询条件,或使用扫码功能快速检索证书。</div>
</div>
</section>
</main>
<div id="scanner-overlay" class="scanner-overlay">
<div class="scanner-frame">
<div id="reader"></div>
<div class="scanner-line"></div>
</div>
<div class="scanner-text">请将条形码置于识别框内</div>
<button class="tech-button secondary" id="stopScanBtn" type="button">退出扫描</button>
</div>
<footer class="page-footer">
<p>© 2026 BI Intelligent Query Interface</p>
</footer>
<script src="../js/certs-index.js"></script>
<script src="https://cdn.jsdmirror.cn/gh/bishshi/wechat-detect@main/wechat-detect.js"></script>
<script src="../js/notice-banner.js"></script>
</body>
</html>
+136
View File
@@ -0,0 +1,136 @@
.notice-banner {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 9999;
display: none;
justify-content: center;
padding: 10px 14px;
color: #102033;
font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
background: linear-gradient(90deg, #fff7d6, #dff7ff);
border-bottom: 1px solid rgba(16, 32, 51, 0.14);
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.notice-banner.is-visible {
display: flex;
}
.notice-banner__inner {
width: min(100%, 1120px);
display: grid;
grid-template-columns: auto 1fr auto auto;
align-items: center;
gap: 10px;
}
.notice-banner__badge {
min-width: 40px;
padding: 4px 9px;
border-radius: 999px;
color: #ffffff;
background: #2563eb;
font-size: 12px;
font-weight: 700;
text-align: center;
line-height: 1.2;
}
.notice-banner[data-level="warning"] .notice-banner__badge {
background: #b45309;
}
.notice-banner[data-level="error"] .notice-banner__badge {
background: #be123c;
}
.notice-banner[data-level="success"] .notice-banner__badge {
background: #047857;
}
.notice-banner__content {
min-width: 0;
font-size: 14px;
line-height: 1.45;
}
.notice-banner__title {
margin-right: 6px;
font-weight: 700;
}
.notice-banner__message {
color: rgba(16, 32, 51, 0.84);
}
.notice-banner__link {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 30px;
padding: 0 12px;
border-radius: 999px;
color: #ffffff;
background: #075985;
font-size: 14px;
font-weight: 700;
text-decoration: none;
white-space: nowrap;
}
.notice-banner__link:hover {
background: #0369a1;
text-decoration: none;
}
.notice-banner__close {
width: 30px;
height: 30px;
border: 0;
border-radius: 50%;
color: #102033;
background: rgba(16, 32, 51, 0.08);
font-size: 20px;
line-height: 1;
cursor: pointer;
}
.notice-banner__close:hover {
background: rgba(16, 32, 51, 0.14);
}
body.has-notice-banner {
padding-top: calc(var(--notice-body-pad-top, 0px) + var(--notice-banner-height, 0px) + 12px) !important;
}
@media (max-width: 640px) {
.notice-banner {
padding: 9px 10px;
}
.notice-banner__inner {
grid-template-columns: auto 1fr auto;
gap: 8px;
}
.notice-banner__link {
grid-column: 2 / 3;
justify-self: start;
}
.notice-banner__content {
font-size: 13px;
}
}
@media print {
.notice-banner {
display: none !important;
}
body.has-notice-banner {
padding-top: var(--notice-body-pad-top, 0px) !important;
}
}
Loaded 3 of 20 files, more files were not shown because too many files have changed in this diff. Show more