You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
896 lines
32 KiB
896 lines
32 KiB
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<title>青核 Youthome - 实名认证</title>
|
|
<link rel="stylesheet" href="../colors_and_type.css">
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
body {
|
|
font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
background: var(--youth-bg-page);
|
|
color: var(--youth-text-primary);
|
|
overflow: hidden;
|
|
overflow-x: hidden;}
|
|
|
|
/* 页面容器 - 固定高度 */
|
|
.page-container {
|
|
width: 375px;
|
|
height: 812px;
|
|
margin: 0 auto;
|
|
position: relative;
|
|
overflow: hidden;
|
|
background: var(--youth-bg-page);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* 状态栏 */
|
|
.status-bar {
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 20px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.status-bar .right-icons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
/* 顶部导航 */
|
|
.top-nav {
|
|
height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
padding: 0 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-back-btn {
|
|
position: absolute;
|
|
left: 16px;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--youth-bg-card);
|
|
border: 1px solid var(--youth-border-light);
|
|
box-shadow: var(--youth-shadow-card);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
color: var(--youth-text-primary);
|
|
}
|
|
|
|
.nav-back-btn:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
}
|
|
|
|
/* 内容区 - 无滚动 flex 布局 */
|
|
.scroll-content {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
padding: 0 16px 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
gap: 0;
|
|
}
|
|
|
|
.scroll-content::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
/* 三步立体进度条 */
|
|
.steps-progress {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 0 4px;
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.step-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.step-circle {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
position: relative;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.step-circle.pending {
|
|
background: var(--youth-gray-100);
|
|
color: var(--youth-gray-400);
|
|
border: 1px solid var(--youth-border-light);
|
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.step-circle.active {
|
|
background: var(--youth-gradient-primary);
|
|
color: white;
|
|
box-shadow: 0 3px 12px rgba(38, 194, 187, 0.4), 0 0 0 3px rgba(38, 194, 187, 0.15);
|
|
}
|
|
|
|
.step-circle.active::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
|
|
border-radius: 50% 50% 0 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.step-circle.completed {
|
|
background: var(--youth-gradient-primary);
|
|
color: white;
|
|
box-shadow: 0 2px 6px rgba(38, 194, 187, 0.3);
|
|
}
|
|
|
|
.step-label {
|
|
margin-top: 4px;
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
color: var(--youth-text-tertiary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.step-item.active .step-label {
|
|
color: var(--youth-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.step-connector {
|
|
flex: 1;
|
|
height: 2.5px;
|
|
margin: 0 4px;
|
|
margin-bottom: 16px;
|
|
border-radius: 2px;
|
|
background: var(--youth-gray-200);
|
|
position: relative;
|
|
overflow: hidden;
|
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.step-connector.filled {
|
|
background: var(--youth-gradient-primary);
|
|
box-shadow: 0 1px 2px rgba(38, 194, 187, 0.2);
|
|
}
|
|
|
|
.step-connector.filled::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
|
|
}
|
|
|
|
.steps-subtitle {
|
|
text-align: center;
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
margin-bottom: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* 页面标题区 */
|
|
.page-title {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--youth-text-primary);
|
|
line-height: 1.3;
|
|
margin-bottom: 2px;
|
|
letter-spacing: -0.015em;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.page-subtitle {
|
|
font-size: 13px;
|
|
color: var(--youth-text-tertiary);
|
|
line-height: 1.5;
|
|
margin-bottom: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* 表单卡片 */
|
|
.form-card {
|
|
background: var(--youth-bg-card);
|
|
border-radius: var(--youth-radius-md);
|
|
padding: 12px 14px;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
border: 1px solid var(--youth-border-lighter);
|
|
margin-bottom: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.form-group:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.form-label {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--youth-text-tertiary);
|
|
margin-bottom: 5px;
|
|
display: block;
|
|
}
|
|
|
|
/* 浮雕输入框 */
|
|
.embossed-input-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
background: var(--youth-bg-input);
|
|
border: 1px solid var(--youth-border);
|
|
border-radius: var(--youth-radius-sm);
|
|
height: 44px;
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.embossed-input-wrapper:focus-within {
|
|
border-color: var(--youth-primary);
|
|
box-shadow: inset 0 1px 3px rgba(38, 194, 187, 0.06), 0 0 0 3px rgba(38, 194, 187, 0.1);
|
|
background: var(--youth-bg-card);
|
|
}
|
|
|
|
.input-icon-left {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 38px;
|
|
height: 44px;
|
|
color: var(--youth-gray-400);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.embossed-input-wrapper:focus-within .input-icon-left {
|
|
color: var(--youth-primary);
|
|
}
|
|
|
|
.embossed-input {
|
|
flex: 1;
|
|
height: 44px;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
font-size: 14px;
|
|
color: var(--youth-text-primary);
|
|
padding-right: 12px;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.embossed-input::placeholder {
|
|
color: var(--youth-text-placeholder);
|
|
}
|
|
|
|
.input-icon-right {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 38px;
|
|
height: 44px;
|
|
color: var(--youth-gray-400);
|
|
flex-shrink: 0;
|
|
font-size: 10px;
|
|
gap: 4px;
|
|
}
|
|
|
|
.input-icon-right.encrypted {
|
|
color: var(--youth-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 已验证状态 */
|
|
.verified-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
padding: 3px 8px;
|
|
background: rgba(142, 216, 184, 0.15);
|
|
border-radius: 20px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: #8ED8B8;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
/* 禁用状态输入框 */
|
|
.embossed-input-wrapper.disabled {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.embossed-input-wrapper.disabled .embossed-input {
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
/* 学校信息区 */
|
|
.school-info-section {
|
|
margin-top: 10px;
|
|
padding-top: 10px;
|
|
border-top: 1px solid var(--youth-border-light);
|
|
}
|
|
|
|
.school-info-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.school-info-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
}
|
|
|
|
.edit-link {
|
|
font-size: 12px;
|
|
color: var(--youth-primary);
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
.school-info-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 6px 0;
|
|
border-bottom: 1px solid var(--youth-border-light);
|
|
}
|
|
|
|
.school-info-row:last-child {
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.school-info-label {
|
|
font-size: 13px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.school-info-value {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--youth-text-primary);
|
|
}
|
|
|
|
/* 安全提示卡片 */
|
|
.security-tip-card {
|
|
background: linear-gradient(135deg, rgba(38, 194, 187, 0.08) 0%, rgba(84, 202, 197, 0.12) 100%);
|
|
border-radius: var(--youth-radius-md);
|
|
padding: 10px 12px;
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: flex-start;
|
|
margin-bottom: 10px;
|
|
border: 1px solid rgba(38, 194, 187, 0.15);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.shield-icon-box {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 8px;
|
|
background: var(--youth-gradient-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 3px 10px rgba(38, 194, 187, 0.3);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.shield-icon-box::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.shield-icon-box svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.security-tip-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.security-tip-title {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--youth-primary-dark);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.security-tip-text {
|
|
font-size: 11px;
|
|
line-height: 1.5;
|
|
color: var(--youth-primary-dark);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* 底部操作区 */
|
|
.bottom-actions {
|
|
padding-top: 4px;
|
|
padding-bottom: 4px;
|
|
margin-top: auto;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn-next {
|
|
width: 100%;
|
|
height: 44px;
|
|
border: none;
|
|
border-radius: var(--youth-radius-sm);
|
|
background: linear-gradient(135deg, #54CAC5 0%, #26C2BB 50%, #1FA8A2 100%);
|
|
color: white;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
box-shadow: 0 2px 8px rgba(38,194,187,0.25);
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.btn-next::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.btn-next:active {
|
|
transform: scale(0.98);
|
|
box-shadow: 0 1px 4px rgba(38,194,187,0.2);
|
|
}
|
|
|
|
.btn-next:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.btn-cancel {
|
|
width: 100%;
|
|
height: 32px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--youth-text-tertiary);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
margin-top: 6px;
|
|
font-family: inherit;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.btn-cancel:hover {
|
|
color: var(--youth-gray-500);
|
|
}
|
|
|
|
/* 弹窗提示 */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 998;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.25s ease;
|
|
}
|
|
|
|
.modal-overlay.show {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.modal-content {
|
|
width: 280px;
|
|
background: var(--youth-bg-card);
|
|
border-radius: var(--youth-radius-lg);
|
|
padding: 20px 16px;
|
|
text-align: center;
|
|
transform: scale(0.9);
|
|
transition: transform 0.25s ease;
|
|
box-shadow: var(--youth-shadow-modal);
|
|
z-index: 999;
|
|
}
|
|
|
|
.modal-overlay.show .modal-content {
|
|
transform: scale(1);
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.modal-text {
|
|
font-size: 13px;
|
|
color: var(--youth-text-secondary);
|
|
line-height: 1.5;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.modal-btn {
|
|
width: 100%;
|
|
height: 44px;
|
|
border: none;
|
|
border-radius: var(--youth-radius-sm);
|
|
background: var(--youth-gradient-primary);
|
|
color: white;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
}
|
|
|
|
/* SVG 图标统一尺寸 */
|
|
.icon-svg {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 1em;
|
|
height: 1em;
|
|
vertical-align: middle;
|
|
line-height: 1;
|
|
}
|
|
.icon-svg svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
stroke: currentColor;
|
|
}
|
|
.sidebar-icon .icon-svg { width: 22px; height: 22px; font-size: 22px; }
|
|
.club-logo .icon-svg { width: 28px; height: 28px; font-size: 28px; color: #fff; }
|
|
.hero-icon .icon-svg { width: 56px; height: 56px; font-size: 56px; opacity: 0.3; }
|
|
.club-meta .icon-svg { width: 12px; height: 12px; font-size: 12px; }
|
|
.cat-option .icon-svg { width: 26px; height: 26px; font-size: 26px; }
|
|
.logo-preview .icon-svg { width: 40px; height: 40px; font-size: 40px; color: #fff; }
|
|
.notice-icon .icon-svg { width: 18px; height: 18px; font-size: 18px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="page-container">
|
|
<!-- 状态栏 -->
|
|
<div class="status-bar">
|
|
<span>9:41</span>
|
|
<div class="right-icons">
|
|
<!-- 信号图标 -->
|
|
<svg width="17" height="11" viewBox="0 0 17 11" fill="currentColor">
|
|
<rect x="0" y="7" width="3" height="4" rx="0.5"></rect>
|
|
<rect x="4.5" y="5" width="3" height="6" rx="0.5"></rect>
|
|
<rect x="9" y="2.5" width="3" height="8.5" rx="0.5"></rect>
|
|
<rect x="13.5" y="0" width="3" height="11" rx="0.5"></rect>
|
|
</svg>
|
|
<!-- WiFi图标 -->
|
|
<svg width="15" height="11" viewBox="0 0 15 11" fill="currentColor">
|
|
<path d="M7.5 11C6.9 11 6.4 10.8 6 10.4C5.2 9.6 5 8.6 5.4 7.6C5.8 6.6 6.8 6 7.8 6C9 6 10 6.8 10.2 8C10.4 8.8 10 9.6 9.4 10.2C8.9 10.7 8.2 11 7.5 11ZM7.5 4.5C6 4.5 4.5 5 3.4 6.2C2.3 7.4 2 9 2.4 10.4C2.5 10.8 2.8 11 3.2 11C3.5 11 3.8 10.8 3.9 10.5C4.2 9.5 4.8 8.6 5.7 8C6.6 7.4 7.6 7.1 8.6 7.2C9.8 7.3 10.9 7.8 11.6 8.7C12.3 9.6 12.6 10.7 12.4 11.8L12.4 12C12.3 12.4 12.6 12.7 13 12.8C13.4 12.9 13.7 12.6 13.8 12.2C14.1 10.5 13.5 8.8 12.4 7.5C11.3 6.2 9.6 5.3 7.8 4.9L7.5 4.5Z"></path>
|
|
<path d="M7.5 1C5.3 1 3.2 1.7 1.5 3C-0.5 4.7 -0.5 7.5 1.5 9.2C1.9 9.6 2.5 9.6 2.9 9.2C3.3 8.8 3.3 8.2 2.9 7.8C1.6 6.5 1.6 4.4 2.9 3.1C4.2 1.8 6.3 1.4 8 2C10.1 2.7 11.7 4.4 12.2 6.5C12.5 7.3 12.4 8.1 11.8 8.7C11.4 9.1 11.4 9.7 11.8 10.1C12.2 10.5 12.8 10.5 13.2 10.1C14.2 9.1 14.5 7.7 14.2 6.3C13.6 4 12.1 2.3 10.2 1.3C9.3 1 8.4 0.9 7.5 1Z"></path>
|
|
</svg>
|
|
<!-- 电池图标 -->
|
|
<svg width="25" height="12" viewBox="0 0 25 12" fill="none">
|
|
<rect x="0.5" y="0.5" width="21" height="11" rx="2.5" stroke="currentColor" opacity="0.5"></rect>
|
|
<rect x="2" y="2" width="18" height="8" rx="1.5" fill="currentColor"></rect>
|
|
<rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="currentColor" opacity="0.5"></rect>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 顶部导航 -->
|
|
<div class="top-nav">
|
|
<button class="nav-back-btn" data-dom-id="btn-back" aria-label="返回">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="m15 18-6-6 6-6"></path>
|
|
</svg>
|
|
</button>
|
|
<span class="nav-title">学生认证</span>
|
|
</div>
|
|
|
|
<!-- 内容区 -->
|
|
<div class="scroll-content" style="height: 710px; flex-grow: 0; flex-shrink: 0; flex-basis: auto;">
|
|
<!-- 三步立体进度条 -->
|
|
|
|
<p class="steps-subtitle">
|
|
</p>
|
|
|
|
<!-- 页面标题区 -->
|
|
<h1 class="page-title">确认你的基础信息</h1>
|
|
<p class="page-subtitle">请确保信息与学信网一致,认证将更快速通过</p>
|
|
|
|
<!-- 信息表单卡片 -->
|
|
<div class="form-card">
|
|
<!-- 真实姓名 -->
|
|
<div class="form-group">
|
|
<label class="form-label">真实姓名</label>
|
|
<div class="embossed-input-wrapper">
|
|
<div class="input-icon-left">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
|
|
<circle cx="12" cy="7" r="4"></circle>
|
|
</svg>
|
|
</div>
|
|
<input type="text" class="embossed-input" data-dom-id="input-realname" placeholder="请输入真实姓名" maxlength="20">
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 身份证号 -->
|
|
<div class="form-group">
|
|
<label class="form-label">身份证号</label>
|
|
<div class="embossed-input-wrapper">
|
|
<div class="input-icon-left">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="2" y="5" width="20" height="14" rx="2"></rect>
|
|
<path d="M2 10h20"></path>
|
|
<path d="M6 15h4"></path>
|
|
</svg>
|
|
</div>
|
|
<input type="text" class="embossed-input" data-dom-id="input-idcard" placeholder="请输入18位身份证号" maxlength="21">
|
|
<div class="input-icon-right encrypted">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect>
|
|
<path d="M7 11V7a5 5 0 0 1 10 0v4"></path>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 手机号 -->
|
|
<div class="form-group">
|
|
<label class="form-label">手机号</label>
|
|
<div class="embossed-input-wrapper disabled">
|
|
<div class="input-icon-left">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect>
|
|
<path d="M12 18h.01"></path>
|
|
</svg>
|
|
</div>
|
|
<input type="text" class="embossed-input" value="138****8888" readonly>
|
|
<div class="verified-badge">
|
|
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M20 6 9 17l-5-5"></path>
|
|
</svg>
|
|
已验证
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 学校信息 -->
|
|
<div class="school-info-section">
|
|
<div class="school-info-header">
|
|
<span class="school-info-title">学校信息</span>
|
|
<span class="edit-link" data-dom-id="btn-edit-school">
|
|
修改
|
|
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M5 12h14"></path>
|
|
<path d="m12 5 7 7-7 7"></path>
|
|
</svg>
|
|
</span>
|
|
</div>
|
|
<div class="school-info-row" data-dom-id="info-school">
|
|
<span class="school-info-label">学校名称</span>
|
|
<span class="school-info-value">清华大学</span>
|
|
</div>
|
|
<div class="school-info-row" data-dom-id="info-degree">
|
|
<span class="school-info-label">学历层次</span>
|
|
<span class="school-info-value">本科</span>
|
|
</div>
|
|
<div class="school-info-row" data-dom-id="info-year">
|
|
<span class="school-info-label">入学年份</span>
|
|
<span class="school-info-value">2022级</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 安全提示卡片 -->
|
|
<div class="security-tip-card">
|
|
<div class="shield-icon-box">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="position: relative; z-index: 1;">
|
|
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10"></path>
|
|
<path d="m9 12 2 2 4-4"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="security-tip-content">
|
|
<div class="security-tip-title">信息安全保障</div>
|
|
<div class="security-tip-text">你的实名信息将通过加密通道直接传输至学信网验证,青核不存储你的身份证原件信息</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 底部操作区 -->
|
|
<div class="bottom-actions">
|
|
<button class="btn-next" data-dom-id="btn-next">
|
|
下一步,上传报告
|
|
</button>
|
|
<button class="btn-cancel" data-dom-id="btn-cancel">
|
|
取消认证
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 修改学校提示弹窗 -->
|
|
<div class="modal-overlay" id="edit-school-modal">
|
|
<div class="modal-content">
|
|
<div class="modal-title">修改学校信息</div>
|
|
<div class="modal-text">修改学校信息后需要重新进行学籍验证,可能会延长认证时间。确定要修改吗?</div>
|
|
<button class="modal-btn" onclick="closeModal()">我知道了</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
// 返回按钮
|
|
document.querySelector('[data-dom-id="btn-back"]').addEventListener('click', function() {
|
|
window.location.href = 'auth-locked.html';
|
|
});
|
|
|
|
// 取消认证
|
|
document.querySelector('[data-dom-id="btn-cancel"]').addEventListener('click', function() {
|
|
window.location.href = 'auth-locked.html';
|
|
});
|
|
|
|
// 下一步按钮 - 表单验证
|
|
document.querySelector('[data-dom-id="btn-next"]').addEventListener('click', function() {
|
|
const realname = document.querySelector('[data-dom-id="input-realname"]').value.trim();
|
|
const idcard = document.querySelector('[data-dom-id="input-idcard"]').value.replace(/\s/g, '');
|
|
|
|
if (!realname) {
|
|
alert('请输入真实姓名');
|
|
return;
|
|
}
|
|
|
|
if (realname.length < 2) {
|
|
alert('请输入正确的姓名');
|
|
return;
|
|
}
|
|
|
|
if (!idcard) {
|
|
alert('请输入身份证号');
|
|
return;
|
|
}
|
|
|
|
if (!/^\d{17}[\dXx]$/.test(idcard)) {
|
|
alert('请输入正确的18位身份证号');
|
|
return;
|
|
}
|
|
|
|
// 验证通过,跳转到下一步
|
|
window.location.href = 'auth-step2.html';
|
|
});
|
|
|
|
// 身份证号格式化输入(自动加空格分隔)
|
|
(function() {
|
|
const idcardInput = document.querySelector('[data-dom-id="input-idcard"]');
|
|
|
|
idcardInput.addEventListener('input', function(e) {
|
|
let value = e.target.value.replace(/\s/g, '').replace(/[^\dXx]/g, '');
|
|
|
|
// 限制长度
|
|
if (value.length > 18) {
|
|
value = value.substring(0, 18);
|
|
}
|
|
|
|
// 格式化:前6位 中间8位 后4位
|
|
let formatted = '';
|
|
if (value.length > 0) {
|
|
formatted = value.substring(0, Math.min(6, value.length));
|
|
}
|
|
if (value.length > 6) {
|
|
formatted += ' ' + value.substring(6, Math.min(14, value.length));
|
|
}
|
|
if (value.length > 14) {
|
|
formatted += ' ' + value.substring(14, value.length);
|
|
}
|
|
|
|
e.target.value = formatted.toUpperCase();
|
|
});
|
|
|
|
// 粘贴处理
|
|
idcardInput.addEventListener('paste', function(e) {
|
|
e.preventDefault();
|
|
const pastedText = (e.clipboardData || window.clipboardData).getData('text');
|
|
const cleaned = pastedText.replace(/\s/g, '').replace(/[^\dXx]/g, '').substring(0, 18);
|
|
|
|
let formatted = '';
|
|
if (cleaned.length > 0) {
|
|
formatted = cleaned.substring(0, Math.min(6, cleaned.length));
|
|
}
|
|
if (cleaned.length > 6) {
|
|
formatted += ' ' + cleaned.substring(6, Math.min(14, cleaned.length));
|
|
}
|
|
if (cleaned.length > 14) {
|
|
formatted += ' ' + cleaned.substring(14, cleaned.length);
|
|
}
|
|
|
|
idcardInput.value = formatted.toUpperCase();
|
|
});
|
|
})();
|
|
|
|
// 修改学校信息弹出提示
|
|
function closeModal() {
|
|
document.getElementById('edit-school-modal').classList.remove('show');
|
|
}
|
|
|
|
document.querySelector('[data-dom-id="btn-edit-school"]').addEventListener('click', function() {
|
|
document.getElementById('edit-school-modal').classList.add('show');
|
|
});
|
|
|
|
// 点击遮罩关闭弹窗
|
|
document.getElementById('edit-school-modal').addEventListener('click', function(e) {
|
|
if (e.target === this) {
|
|
closeModal();
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|