finish
This commit is contained in:
@@ -211,9 +211,47 @@
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
/* Password Overlay Styles */
|
||||
#password-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: var(--bg-color);
|
||||
background-image: inherit;
|
||||
z-index: 9999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
backdrop-filter: blur(10px);
|
||||
transition: opacity 0.5s;
|
||||
}
|
||||
|
||||
.auth-card {
|
||||
background: var(--card-bg);
|
||||
padding: 40px;
|
||||
border-radius: 16px;
|
||||
text-align: center;
|
||||
width: 90%;
|
||||
max-width: 400px;
|
||||
border: 1px solid rgba(0, 242, 255, 0.2);
|
||||
box-shadow: 0 0 50px rgba(0,0,0,0.5);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Password Overlay -->
|
||||
<div id="password-overlay">
|
||||
<div class="auth-card">
|
||||
<h2 style="margin-bottom: 20px;">请输入访问密钥</h2>
|
||||
<input type="password" id="secret-input" placeholder="输入密钥" style="margin-bottom: 20px; text-align: center;">
|
||||
<button onclick="checkSecret()">确认</button>
|
||||
<p id="secret-error" class="error-msg hidden">密钥错误</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<header>
|
||||
<img src="/static/image.jpg" alt="云南AI共生大会" class="header-img" onerror="this.style.display='none'">
|
||||
@@ -237,6 +275,16 @@
|
||||
<input type="text" id="company" placeholder="请输入单位名称或行业信息">
|
||||
</div>
|
||||
|
||||
<div class="input-group">
|
||||
<label>费用 (Fee)</label>
|
||||
<input type="text" id="fee" placeholder="请输入费用信息">
|
||||
</div>
|
||||
|
||||
<div class="input-group">
|
||||
<label>支付渠道 (Payment Channel)</label>
|
||||
<input type="text" id="payment_channel" placeholder="请输入支付渠道">
|
||||
</div>
|
||||
|
||||
<button type="submit" id="submit-btn">确认添加</button>
|
||||
</form>
|
||||
<div id="submit-error" class="error-msg hidden"></div>
|
||||
@@ -249,6 +297,31 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// Password Check Logic
|
||||
function checkSecret() {
|
||||
const input = document.getElementById('secret-input');
|
||||
const error = document.getElementById('secret-error');
|
||||
const overlay = document.getElementById('password-overlay');
|
||||
|
||||
if (input.value === '123quant-speed') {
|
||||
overlay.style.opacity = '0';
|
||||
setTimeout(() => {
|
||||
overlay.style.display = 'none';
|
||||
}, 500);
|
||||
} else {
|
||||
error.classList.remove('hidden');
|
||||
input.value = '';
|
||||
input.focus();
|
||||
}
|
||||
}
|
||||
|
||||
// Allow pressing Enter to submit password
|
||||
document.getElementById('secret-input').addEventListener('keypress', function (e) {
|
||||
if (e.key === 'Enter') {
|
||||
checkSecret();
|
||||
}
|
||||
});
|
||||
|
||||
async function submitAddUser(e) {
|
||||
e.preventDefault();
|
||||
const btn = document.getElementById('submit-btn');
|
||||
@@ -263,7 +336,9 @@
|
||||
const payload = {
|
||||
name: document.getElementById('name').value,
|
||||
phone: document.getElementById('phone').value,
|
||||
industry_company: document.getElementById('company').value
|
||||
industry_company: document.getElementById('company').value,
|
||||
fee: document.getElementById('fee').value,
|
||||
payment_channel: document.getElementById('payment_channel').value
|
||||
};
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user