287 lines
8.6 KiB
HTML
287 lines
8.6 KiB
HTML
<!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;
|
|
}
|
|
.header {
|
|
background: #1890ff;
|
|
color: white;
|
|
padding: 12px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
.back-btn {
|
|
background: none;
|
|
border: none;
|
|
color: white;
|
|
font-size: 18px;
|
|
cursor: pointer;
|
|
}
|
|
.header-title {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
}
|
|
.content {
|
|
padding: 16px;
|
|
background: #ffffff;
|
|
min-height: calc(100vh - 44px - 60px);
|
|
}
|
|
.setting-section {
|
|
background: white;
|
|
border-radius: 8px;
|
|
margin-bottom: 12px;
|
|
overflow: hidden;
|
|
}
|
|
.setting-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
.setting-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
.setting-item:active {
|
|
background: #f5f5f5;
|
|
}
|
|
.setting-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
.setting-icon {
|
|
font-size: 20px;
|
|
width: 24px;
|
|
text-align: center;
|
|
}
|
|
.setting-text {
|
|
font-size: 15px;
|
|
color: #333;
|
|
}
|
|
.setting-desc {
|
|
font-size: 12px;
|
|
color: #999;
|
|
margin-top: 4px;
|
|
}
|
|
.setting-value {
|
|
font-size: 14px;
|
|
color: #999;
|
|
}
|
|
.switch {
|
|
position: relative;
|
|
width: 44px;
|
|
height: 24px;
|
|
background: #ccc;
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
transition: background 0.3s;
|
|
}
|
|
.switch.active {
|
|
background: #1890ff;
|
|
}
|
|
.switch::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: white;
|
|
border-radius: 50%;
|
|
top: 2px;
|
|
left: 2px;
|
|
transition: left 0.3s;
|
|
}
|
|
.switch.active::after {
|
|
left: 22px;
|
|
}
|
|
.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="header">
|
|
<div class="header-left">
|
|
<button class="back-btn" onclick="history.back()">←</button>
|
|
<div class="header-title">系统设置</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<div class="setting-section">
|
|
<div class="setting-item">
|
|
<div class="setting-left">
|
|
<div class="setting-icon">🔔</div>
|
|
<div>
|
|
<div class="setting-text">消息推送</div>
|
|
<div class="setting-desc">接收系统通知和审核提醒</div>
|
|
</div>
|
|
</div>
|
|
<div class="switch active" onclick="toggleSwitch(this, 'push')"></div>
|
|
</div>
|
|
<div class="setting-item">
|
|
<div class="setting-left">
|
|
<div class="setting-icon">📱</div>
|
|
<div>
|
|
<div class="setting-text">声音提醒</div>
|
|
<div class="setting-desc">收到消息时播放提示音</div>
|
|
</div>
|
|
</div>
|
|
<div class="switch active" onclick="toggleSwitch(this, 'sound')"></div>
|
|
</div>
|
|
<div class="setting-item">
|
|
<div class="setting-left">
|
|
<div class="setting-icon">📳</div>
|
|
<div>
|
|
<div class="setting-text">震动提醒</div>
|
|
<div class="setting-desc">收到消息时震动</div>
|
|
</div>
|
|
</div>
|
|
<div class="switch" onclick="toggleSwitch(this, 'vibrate')"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="setting-section">
|
|
<div class="setting-item" onclick="clearCache()">
|
|
<div class="setting-left">
|
|
<div class="setting-icon">🗑️</div>
|
|
<div>
|
|
<div class="setting-text">清除缓存</div>
|
|
<div class="setting-desc">清除本地缓存数据</div>
|
|
</div>
|
|
</div>
|
|
<div class="setting-value">12.5MB</div>
|
|
</div>
|
|
<div class="setting-item" onclick="checkUpdate()">
|
|
<div class="setting-left">
|
|
<div class="setting-icon">🔄</div>
|
|
<div>
|
|
<div class="setting-text">检查更新</div>
|
|
<div class="setting-desc">检查应用版本更新</div>
|
|
</div>
|
|
</div>
|
|
<div class="setting-value">当前版本 1.0.0</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="setting-section">
|
|
<div class="setting-item" onclick="viewPrivacy()">
|
|
<div class="setting-left">
|
|
<div class="setting-icon">🔒</div>
|
|
<div class="setting-text">隐私政策</div>
|
|
</div>
|
|
<div class="setting-value">></div>
|
|
</div>
|
|
<div class="setting-item" onclick="viewTerms()">
|
|
<div class="setting-left">
|
|
<div class="setting-icon">📄</div>
|
|
<div class="setting-text">用户协议</div>
|
|
</div>
|
|
<div class="setting-value">></div>
|
|
</div>
|
|
</div>
|
|
</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">
|
|
<div class="nav-icon">👤</div>
|
|
<div>我的</div>
|
|
</a>
|
|
</div>
|
|
|
|
<script>
|
|
function toggleSwitch(element, type) {
|
|
element.classList.toggle('active');
|
|
const status = element.classList.contains('active') ? '开启' : '关闭';
|
|
console.log(type + ' ' + status);
|
|
}
|
|
|
|
function clearCache() {
|
|
if (confirm('确认清除缓存?')) {
|
|
alert('缓存已清除');
|
|
}
|
|
}
|
|
|
|
function checkUpdate() {
|
|
alert('当前已是最新版本');
|
|
}
|
|
|
|
function viewPrivacy() {
|
|
window.location.href = 'help.html#privacy';
|
|
}
|
|
|
|
function viewTerms() {
|
|
window.location.href = 'help.html#terms';
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|