Files
x-server-mobile/frontend/set-token.html
T
root 582f454a5a refactor: 重构后端目录结构和命名规范
- 将后端目录名从大写改为小写 (Controller->controller 等)
- 将命名空间从 App\ 改为 app\ (符合 webman 官方规范)
- 移除不必要的 bootstrap 目录
- 完善出差审批业务功能:
  - 添加删除草稿功能
  - 添加审批操作功能(同意/拒绝)
  - 完善审批详情页,显示审批人和审批记录
- 前端优化:
  - 调整列表页行高
  - 隐藏底部导航栏
  - 仪表盘只显示3个快捷入口

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 18:09:04 +08:00

102 lines
3.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>设置 Token</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.container {
background: white;
padding: 40px;
border-radius: 12px;
box-shadow: 0 10px 40px rgba(0,0,0,0.2);
text-align: center;
max-width: 400px;
}
h1 {
color: #333;
margin-bottom: 20px;
}
.info {
color: #666;
margin-bottom: 30px;
line-height: 1.6;
}
button {
background: #667eea;
color: white;
border: none;
padding: 15px 40px;
font-size: 16px;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s;
}
button:hover {
background: #5568d3;
transform: translateY(-2px);
box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}
.success {
color: #52c41a;
font-size: 18px;
font-weight: bold;
margin-top: 20px;
}
.user-info {
background: #f5f5f5;
padding: 15px;
border-radius: 8px;
margin-top: 20px;
text-align: left;
font-size: 14px;
}
.user-info div {
margin: 5px 0;
}
</style>
</head>
<body>
<div class="container">
<h1>🎯 设置登录 Token</h1>
<div class="info">
点击下方按钮设置登录凭证,然后关闭此页面并刷新主页面。
</div>
<button id="setTokenBtn">设置 Token</button>
<div id="result"></div>
</div>
<script>
document.getElementById('setTokenBtn').addEventListener('click', function() {
const token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJjb21wYW55X2lkIjoyLCJ1c2VybmFtZSI6Ilx1Njc0ZVx1NGY3M1x1NTM1YSIsImlhdCI6MTc3MjAwOTA0MCwiZXhwIjoxNzcyNjEzODQwfQ.mFsGM4bxRZdAMTQ3QgHO-DoFCWZUhUNY2N62VkN6FZ4';
localStorage.setItem('token', token);
const resultDiv = document.getElementById('result');
resultDiv.innerHTML = `
<div class="success">✅ Token 设置成功!</div>
<div class="user-info">
<div><strong>用户:</strong>李佳博</div>
<div><strong>邮箱:</strong>mzl@hnxinyouhe.com</div>
<div><strong>有效期至:</strong>2025-11-02</div>
</div>
<div style="margin-top: 20px; color: #999; font-size: 12px;">
现在可以关闭此页面,然后刷新主页面继续使用。
</div>
};
document.getElementById('setTokenBtn').style.display = 'none';
});
</script>
</body>
</html>