主要改动: - SQL: biz_support_unit → biz_org, 加 org_type, 加 business_nature; 删 biz_execution_unit, biz_service_org - SQL: biz_project.support_unit_id/name + service_org_id/name → org_id/name/type - SQL: biz_meeting.support_unit_name → org_name - SQL: biz_person.work_unit → org_id (FK) - 后端: 新 BizOrg entity/mapper/service/controller - 后端: BizProject/BizMeeting 字段重命名 - 后端: 删 12 个 BizSupportUnit/BizExecutionUnit/BizServiceOrg Java 文件 - 后端: BizPersonImportVO.workUnit → orgName (导入时查 biz_org 取 org_id) - 后端: BizAuthController.registerExecutor 完整实现 (原 registerSupplier stub) - 前端: 新 admin/Orgs.vue + manager/Orgs.vue (原 SupportUnits) - 前端: RegisterExecutor.vue (原 RegisterSupplier, 单页 2 步) - 前端: sponsor/executor/manager 多个文件 workUnit → orgId/orgName 重命名 - 前端: 统一 supplier → executor, 业务命名 sponsor(赞助方) / executor(执行方=供应商) - 前端: 全工程 execution → executor (company type / role / person unit_type)
756 lines
21 KiB
HTML
756 lines
21 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>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
color: #1f2937;
|
|
background: #f5f6f8;
|
|
min-width: 1354px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
a { color: inherit; text-decoration: none; }
|
|
|
|
/* ========== 顶部导航 ========== */
|
|
.top-nav {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1000;
|
|
height: 72px;
|
|
padding: 0 60px;
|
|
background: #1e3a8a;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
display: flex;
|
|
align-items: center;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
|
|
transition: box-shadow 0.3s;
|
|
}
|
|
|
|
.top-nav.is-scrolled {
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.logo-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: #fff;
|
|
color: #1e3a8a;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.logo-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.logo-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.logo-subtitle {
|
|
font-size: 11px;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
margin-top: 2px;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.nav-list {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 36px;
|
|
list-style: none;
|
|
}
|
|
|
|
.nav-item {
|
|
position: relative;
|
|
height: 72px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-link {
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
color: rgba(255, 255, 255, 0.85);
|
|
cursor: pointer;
|
|
transition: color 0.25s;
|
|
position: relative;
|
|
height: 72px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-link::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 0;
|
|
width: 0;
|
|
height: 2px;
|
|
background: #fff;
|
|
transform: translateX(-50%);
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.nav-item:hover .nav-link,
|
|
.nav-link.active {
|
|
color: #fff;
|
|
}
|
|
|
|
.nav-item:hover .nav-link::after,
|
|
.nav-link.active::after {
|
|
width: 100%;
|
|
}
|
|
|
|
.top-tools {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.login-btn {
|
|
padding: 7px 20px;
|
|
background: #fff;
|
|
color: #1e3a8a;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.login-btn:hover {
|
|
background: #f3f4f6;
|
|
}
|
|
|
|
/* ========== 主体 ========== */
|
|
.container {
|
|
max-width: 1354px;
|
|
margin: 0 auto;
|
|
padding: 0 60px 60px;
|
|
}
|
|
|
|
.back-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin: 28px 0 20px;
|
|
font-size: 13px;
|
|
color: #6b7280;
|
|
cursor: pointer;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.back-link:hover { color: #1e3a8a; }
|
|
|
|
/* ========== 邀请函红头文件 ========== */
|
|
.letter {
|
|
background: #fff;
|
|
border: 1px solid #e5e7eb;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
padding: 64px 72px 48px;
|
|
font-family: "SimSun", "Songti SC", serif;
|
|
color: #1f2937;
|
|
position: relative;
|
|
}
|
|
|
|
/* 红头 */
|
|
.letter-head {
|
|
text-align: center;
|
|
color: #c00;
|
|
}
|
|
|
|
.letter-org {
|
|
font-size: 40px;
|
|
font-weight: 700;
|
|
letter-spacing: 14px;
|
|
margin-right: -14px;
|
|
font-family: "SimSun", "Songti SC", serif;
|
|
}
|
|
|
|
.letter-docno {
|
|
margin-top: 18px;
|
|
font-size: 15px;
|
|
color: #1f2937;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.letter-redline {
|
|
height: 2px;
|
|
background: #c00;
|
|
margin: 16px 0 34px;
|
|
}
|
|
|
|
/* 标题 */
|
|
.letter-title {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.letter-title h1 {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
color: #1f2937;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.letter-title h2 {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
color: #1f2937;
|
|
letter-spacing: 12px;
|
|
margin-right: -12px;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
/* 正文 */
|
|
.letter-body p {
|
|
font-size: 15px;
|
|
line-height: 2;
|
|
text-indent: 2em;
|
|
margin-bottom: 4px;
|
|
text-align: justify;
|
|
}
|
|
|
|
.letter-body .salutation {
|
|
text-indent: 0;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.letter-body .lead {
|
|
text-indent: 2em;
|
|
margin-top: 14px;
|
|
}
|
|
|
|
/* 章节 */
|
|
.letter-section {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.letter-section-title {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
line-height: 2;
|
|
}
|
|
|
|
.letter-section p {
|
|
font-size: 15px;
|
|
line-height: 2;
|
|
text-indent: 2em;
|
|
}
|
|
|
|
.letter-section p.no-indent {
|
|
text-indent: 0;
|
|
padding-left: 2em;
|
|
}
|
|
|
|
.letter-section a {
|
|
color: #c00;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* 日程表 */
|
|
.schedule-table {
|
|
width: 78%;
|
|
margin: 12px auto 4px;
|
|
border-collapse: collapse;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.schedule-table th,
|
|
.schedule-table td {
|
|
border: 1px solid #1f2937;
|
|
padding: 7px 12px;
|
|
text-align: center;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.schedule-table th {
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* 落款 */
|
|
.letter-sign {
|
|
margin-top: 44px;
|
|
text-align: right;
|
|
position: relative;
|
|
padding-right: 40px;
|
|
}
|
|
|
|
.letter-sign .sign-org {
|
|
font-size: 16px;
|
|
line-height: 2;
|
|
}
|
|
|
|
.letter-sign .sign-date {
|
|
font-size: 16px;
|
|
line-height: 2;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
/* 公章 */
|
|
.seal {
|
|
position: absolute;
|
|
right: 24px;
|
|
top: -52px;
|
|
width: 150px;
|
|
height: 150px;
|
|
transform: rotate(-8deg);
|
|
pointer-events: none;
|
|
mix-blend-mode: multiply;
|
|
}
|
|
|
|
/* 底部红线 + 地址 */
|
|
.letter-foot {
|
|
margin-top: 56px;
|
|
}
|
|
|
|
.letter-foot .redline {
|
|
height: 1.5px;
|
|
background: #c00;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.letter-foot p {
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: #4b5563;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
/* ========== 操作按钮 (右侧悬浮) ========== */
|
|
.action-bar {
|
|
position: fixed;
|
|
left: calc(50% + 697px); /* 紧贴版心右侧 (版心半宽677 + 20间距) */
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
z-index: 900;
|
|
}
|
|
|
|
.btn-primary {
|
|
padding: 12px 0;
|
|
width: 120px;
|
|
background: #1e3a8a;
|
|
color: #fff;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
border: none;
|
|
cursor: pointer;
|
|
letter-spacing: 2px;
|
|
text-align: center;
|
|
box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
|
|
transition: background 0.2s, transform 0.2s;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #1e40af;
|
|
transform: translateX(-3px);
|
|
}
|
|
|
|
.btn-primary.signed {
|
|
background: #9ca3af;
|
|
cursor: default;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.btn-secondary {
|
|
padding: 12px 0;
|
|
width: 120px;
|
|
background: #fff;
|
|
color: #1e3a8a;
|
|
border: 1px solid #1e3a8a;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
letter-spacing: 2px;
|
|
text-align: center;
|
|
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #f0f4ff;
|
|
transform: translateX(-3px);
|
|
}
|
|
|
|
/* 窄屏时按钮贴右边缘,避免溢出 */
|
|
@media (max-width: 1660px) {
|
|
.action-bar {
|
|
left: auto;
|
|
right: 12px;
|
|
}
|
|
}
|
|
|
|
.hint-block {
|
|
max-width: 1100px;
|
|
margin: 12px auto 32px;
|
|
padding: 0 12px;
|
|
color: #ff4d4f;
|
|
font-size: 13px;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
/* ========== 二维码弹窗 ========== */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 2000;
|
|
}
|
|
|
|
.modal-overlay.active { display: flex; }
|
|
|
|
.modal {
|
|
background: #fff;
|
|
padding: 32px 36px;
|
|
width: 320px;
|
|
text-align: center;
|
|
border: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
margin-bottom: 20px;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.modal-qr {
|
|
width: 180px;
|
|
height: 180px;
|
|
margin: 0 auto 16px;
|
|
border: 1px solid #e5e7eb;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.modal-tip {
|
|
font-size: 12px;
|
|
color: #9ca3af;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.modal-close {
|
|
width: 100%;
|
|
height: 38px;
|
|
background: #1e3a8a;
|
|
color: #fff;
|
|
border: none;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.modal-close:hover { background: #1e40af; }
|
|
|
|
/* ========== 底部 ========== */
|
|
.footer {
|
|
background: #16265a;
|
|
color: rgba(255, 255, 255, 0.65);
|
|
padding: 48px 0 0;
|
|
}
|
|
|
|
.footer-main {
|
|
display: grid;
|
|
grid-template-columns: 1.4fr 1fr 1fr 1.2fr auto;
|
|
gap: 48px;
|
|
padding-bottom: 36px;
|
|
}
|
|
|
|
.footer-brand .brand-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.footer-logo-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: #fff;
|
|
color: #1e3a8a;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.footer-brand-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.footer-brand-en {
|
|
font-size: 10px;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
letter-spacing: 0.5px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.footer-desc {
|
|
font-size: 13px;
|
|
line-height: 1.9;
|
|
color: rgba(255, 255, 255, 0.55);
|
|
}
|
|
|
|
.footer-col h4 {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
letter-spacing: 1px;
|
|
margin-bottom: 16px;
|
|
padding-bottom: 10px;
|
|
position: relative;
|
|
}
|
|
|
|
.footer-col h4::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 24px;
|
|
height: 2px;
|
|
background: #93c5fd;
|
|
}
|
|
|
|
.footer-col a,
|
|
.footer-col p {
|
|
display: block;
|
|
font-size: 13px;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
line-height: 2.1;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.footer-col a { cursor: pointer; }
|
|
|
|
.footer-col a:hover { color: #fff; }
|
|
|
|
.footer-qr {
|
|
text-align: center;
|
|
}
|
|
|
|
.qr-image {
|
|
width: 100px;
|
|
height: 100px;
|
|
background: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.qr-label {
|
|
font-size: 12px;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.footer-bottom {
|
|
border-top: 1px solid rgba(255, 255, 255, 0.12);
|
|
padding: 18px 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 12px;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- ===== 顶部导航 ===== -->
|
|
<header class="top-nav">
|
|
<a href="首页.html" class="logo" title="返回首页">
|
|
<div class="logo-icon">医</div>
|
|
<div class="logo-text">
|
|
<span class="logo-title">北京整合医学学会</span>
|
|
<span class="logo-subtitle">Beijing Association of Holistic Integrative Medicine</span>
|
|
</div>
|
|
</a>
|
|
|
|
<ul class="nav-list">
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="index2.html">年度项目规划</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link active" href="项目公示.html">项目公示</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="top-tools">
|
|
<span class="login-btn" id="loginBtn">登录</span>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- ===== 主体 ===== -->
|
|
<main class="container">
|
|
|
|
<a class="back-link" href="项目公示.html">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<polyline points="15 18 9 12 15 6"/>
|
|
</svg>
|
|
返回项目公示
|
|
</a>
|
|
|
|
<!-- 支持函图片 (原型 u639 hidden 495x732, u635.jpg 原型引用, 文件未导出, 用占位) -->
|
|
<article class="letter" style="padding: 0;">
|
|
<img src="images/支持函详情__1_/u635.jpg" alt="支持函" style="width: 100%; display: block;" onerror="this.style.display='none'; this.parentNode.innerHTML='<div style="height:732px;display:flex;align-items:center;justify-content:center;background:#f5f5f5;color:#8c8c8c;font-size:14px;border:1px dashed #d9d9d9">支持函图片占位 (u635.jpg 缺失)</div>'">
|
|
</article>
|
|
|
|
<!-- 操作按钮 (原型 u637 公益支持 + u622 分享二维码) -->
|
|
<div class="action-bar">
|
|
<button class="btn-primary" id="signupBtn">公益支持</button>
|
|
<button class="btn-secondary" id="shareBtn">分享二维码</button>
|
|
</div>
|
|
|
|
<!-- 红字提示 (原型 u688/u675/u673) -->
|
|
<div class="hint-block">
|
|
<p>*支持不需要登录,只记录留痕</p>
|
|
<p>*已点支持的,记录在管理后台中,显示对应项目以及支持人员信息</p>
|
|
<p>*支持成功后隐藏我要支持按钮,并显示为已报名支持</p>
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<!-- ===== 底部 ===== -->
|
|
<footer class="footer">
|
|
<div class="container">
|
|
<div class="footer-main">
|
|
<div class="footer-brand">
|
|
<div class="brand-row">
|
|
<div class="footer-logo-icon">医</div>
|
|
<div>
|
|
<div class="footer-brand-name">北京整合医学学会</div>
|
|
<div class="footer-brand-en">Beijing Association of Holistic Integrative Medicine</div>
|
|
</div>
|
|
</div>
|
|
<p class="footer-desc">依托"健康中国2030"战略,整合医学资源,推动健康科普与公益事业,助力全民健康素养提升,共建共享健康中国。</p>
|
|
</div>
|
|
<div class="footer-col">
|
|
<h4>快速导航</h4>
|
|
<a href="首页.html">首页</a>
|
|
<a href="index2.html">年度项目规划</a>
|
|
<a href="项目公示.html">项目公示</a>
|
|
</div>
|
|
<div class="footer-col">
|
|
<h4>学会项目</h4>
|
|
<a>百姓巡常行</a>
|
|
<a>专病联盟暨全国专家智库</a>
|
|
<a>乡村幸福安康</a>
|
|
<a>临床科研资助计划</a>
|
|
</div>
|
|
<div class="footer-col">
|
|
<h4>联系方式</h4>
|
|
<p>电话: 010-82089470</p>
|
|
<p>邮箱: contactus@bahim.org.cn</p>
|
|
<p>地址: 北京市海淀区知春路1号学院国际大厦908-2室</p>
|
|
<p>邮编: 100083</p>
|
|
</div>
|
|
<div class="footer-qr">
|
|
<div class="qr-image">
|
|
<svg width="52" height="52" viewBox="0 0 24 24" fill="currentColor">
|
|
<path d="M3 11h8V3H3v8zm2-6h4v4H5V5zm8-2v8h8V3h-8zm6 6h-4V5h4v4zM3 21h8v-8H3v8zm2-6h4v4H5v-4zm13-2h-2v2h2v-2zm-2 2h-2v2h2v-2zm2 2h-2v2h2v-2zm2-2h-2v2h2v-2zm-2-2h-2v2h2v-2zm-2-2h-2v2h2v-2zm-2-2h-2v2h2v-2zm-2-2h-2v2h2v-2zm0 0h-2v2h2v-2z"/>
|
|
</svg>
|
|
</div>
|
|
<div class="qr-label">公众号二维码</div>
|
|
</div>
|
|
</div>
|
|
<div class="footer-bottom">
|
|
<span>© 北京整合医学学会 BAHIM</span>
|
|
<span>京ICP备2020035479号-1 京公网安备11010802034820</span>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- 分享二维码弹窗 -->
|
|
<div class="modal-overlay" id="qrModal">
|
|
<div class="modal">
|
|
<h3 class="modal-title">分享邀请函</h3>
|
|
<div class="modal-qr">
|
|
<svg width="120" height="120" viewBox="0 0 24 24" fill="currentColor">
|
|
<path d="M3 11h8V3H3v8zm2-6h4v4H5V5zm8-2v8h8V3h-8zm6 6h-4V5h4v4zM3 21h8v-8H3v8zm2-6h4v4H5v-4zm13-2h-2v2h2v-2zm-2 2h-2v2h2v-2zm2 2h-2v2h2v-2zm2-2h-2v2h2v-2zm-2-2h-2v2h2v-2zm-2-2h-2v2h2v-2zm-2 2h-2v2h2v-2zm0 0h-2v2h2v-2z"/>
|
|
</svg>
|
|
</div>
|
|
<p class="modal-tip">扫码查看并分享本邀请函</p>
|
|
<button class="modal-close" id="qrClose">关 闭</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
// 登录按钮
|
|
document.getElementById('loginBtn').addEventListener('click', function() {
|
|
window.location.href = '登录.html';
|
|
});
|
|
|
|
// 立即报名 → 需登录
|
|
document.getElementById('signupBtn').addEventListener('click', function() {
|
|
window.location.href = '登录.html';
|
|
});
|
|
|
|
// 分享二维码弹窗
|
|
const qrModal = document.getElementById('qrModal');
|
|
document.getElementById('shareBtn').addEventListener('click', function() {
|
|
qrModal.classList.add('active');
|
|
});
|
|
document.getElementById('qrClose').addEventListener('click', function() {
|
|
qrModal.classList.remove('active');
|
|
});
|
|
qrModal.addEventListener('click', function(e) {
|
|
if (e.target === qrModal) qrModal.classList.remove('active');
|
|
});
|
|
document.addEventListener('keydown', function(e) {
|
|
if (e.key === 'Escape') qrModal.classList.remove('active');
|
|
});
|
|
|
|
// 滚动时加深导航栏阴影
|
|
const nav = document.querySelector('.top-nav');
|
|
window.addEventListener('scroll', function() {
|
|
if (window.scrollY > 10) {
|
|
nav.classList.add('is-scrolled');
|
|
} else {
|
|
nav.classList.remove('is-scrolled');
|
|
}
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|