someone-oa/mobile/profile.html
2025-12-11 15:21:16 +08:00

270 lines
8.2 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>个人中心 - OA系统</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: #f5f5f5;
max-width: 414px;
margin: 0 auto;
min-height: 100vh;
padding-bottom: 60px;
}
.profile-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 40px 20px 30px;
color: white;
text-align: center;
}
.avatar {
width: 80px;
height: 80px;
border-radius: 50%;
background: white;
margin: 0 auto 16px;
display: flex;
align-items: center;
justify-content: center;
font-size: 36px;
color: #667eea;
}
.user-name {
font-size: 20px;
font-weight: bold;
margin-bottom: 8px;
}
.user-dept {
font-size: 14px;
opacity: 0.9;
}
.content {
padding: 16px;
background: #ffffff;
min-height: calc(100vh - 200px - 60px);
}
.menu-section {
background: white;
border-radius: 8px;
margin-bottom: 12px;
overflow: hidden;
}
.menu-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px;
border-bottom: 1px solid #f0f0f0;
cursor: pointer;
transition: background 0.2s;
}
.menu-item:last-child {
border-bottom: none;
}
.menu-item:active {
background: #f5f5f5;
}
.menu-left {
display: flex;
align-items: center;
gap: 12px;
}
.menu-icon {
font-size: 20px;
width: 24px;
text-align: center;
}
.menu-text {
font-size: 15px;
color: #333;
}
.menu-arrow {
color: #999;
font-size: 14px;
}
.badge {
background: #ff4d4f;
color: white;
border-radius: 10px;
padding: 2px 6px;
font-size: 11px;
margin-left: 8px;
}
.logout-btn {
width: calc(100% - 32px);
margin: 20px 16px;
padding: 14px;
background: #ff4d4f;
color: white;
border: none;
border-radius: 8px;
font-size: 16px;
font-weight: 500;
cursor: pointer;
}
.bottom-nav {
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100%;
max-width: 414px;
background: white;
border-top: 1px solid #e5e5e5;
display: flex;
padding: 8px 0;
z-index: 100;
}
.nav-item {
flex: 1;
text-align: center;
padding: 8px;
color: #666;
font-size: 12px;
text-decoration: none;
}
.nav-item.active {
color: #1890ff;
}
.nav-icon {
font-size: 20px;
margin-bottom: 4px;
}
</style>
</head>
<body>
<div class="profile-header">
<div class="avatar">👤</div>
<div class="user-name">张三</div>
<div class="user-dept">经营管理部 | 部门负责人</div>
</div>
<div class="content">
<div class="menu-section">
<div class="menu-item" onclick="goToPage('my-projects')">
<div class="menu-left">
<div class="menu-icon">📁</div>
<div class="menu-text">我的项目</div>
</div>
<span class="menu-arrow">></span>
</div>
<div class="menu-item" onclick="goToPage('my-outputs')">
<div class="menu-left">
<div class="menu-icon">📝</div>
<div class="menu-text">我的成果</div>
</div>
<span class="menu-arrow">></span>
</div>
<div class="menu-item" onclick="goToPage('my-approvals')">
<div class="menu-left">
<div class="menu-icon"></div>
<div class="menu-text">我的审核</div>
</div>
<span class="menu-arrow">></span>
</div>
</div>
<div class="menu-section">
<div class="menu-item" onclick="goToPage('info')">
<div class="menu-left">
<div class="menu-icon">👤</div>
<div class="menu-text">个人信息</div>
</div>
<span class="menu-arrow">></span>
</div>
<div class="menu-item" onclick="goToPage('password')">
<div class="menu-left">
<div class="menu-icon">🔒</div>
<div class="menu-text">修改密码</div>
</div>
<span class="menu-arrow">></span>
</div>
<div class="menu-item" onclick="goToPage('settings')">
<div class="menu-left">
<div class="menu-icon">⚙️</div>
<div class="menu-text">系统设置</div>
</div>
<span class="menu-arrow">></span>
</div>
</div>
<div class="menu-section">
<div class="menu-item" onclick="goToPage('about')">
<div class="menu-left">
<div class="menu-icon"></div>
<div class="menu-text">关于系统</div>
</div>
<div>
<span style="font-size: 12px; color: #999; margin-right: 8px;">版本 1.0.0</span>
<span class="menu-arrow">></span>
</div>
</div>
<div class="menu-item" onclick="goToPage('help')">
<div class="menu-left">
<div class="menu-icon"></div>
<div class="menu-text">帮助中心</div>
</div>
<span class="menu-arrow">></span>
</div>
</div>
<button class="logout-btn" onclick="logout()">退出登录</button>
</div>
<div class="bottom-nav">
<a href="todo.html" class="nav-item">
<div class="nav-icon">📋</div>
<div>待办</div>
</a>
<a href="message.html" class="nav-item">
<div class="nav-icon">🔔</div>
<div>消息</div>
</a>
<a href="project.html" class="nav-item">
<div class="nav-icon">📁</div>
<div>项目</div>
</a>
<a href="output.html" class="nav-item">
<div class="nav-icon">📝</div>
<div>成果</div>
</a>
<a href="profile.html" class="nav-item active">
<div class="nav-icon">👤</div>
<div>我的</div>
</a>
</div>
<script>
function goToPage(page) {
const pageMap = {
'my-projects': 'my-projects.html',
'my-outputs': 'my-outputs.html',
'my-approvals': 'my-approvals.html',
'info': 'user-info.html',
'password': 'change-password.html',
'settings': 'settings.html',
'about': 'about.html',
'help': 'help.html'
};
if (pageMap[page]) {
window.location.href = pageMap[page];
}
}
function logout() {
if (confirm('确认退出登录?')) {
window.location.href = 'login.html';
}
}
</script>
</body>
</html>