first commit
This commit is contained in:
200
frontend/src/views/Settings.vue
Normal file
200
frontend/src/views/Settings.vue
Normal file
@@ -0,0 +1,200 @@
|
||||
<template>
|
||||
<div class="settings">
|
||||
<PageHeader title="设置" icon="⚙️" />
|
||||
|
||||
<el-card class="settings-card" shadow="hover">
|
||||
<template #header>
|
||||
<div class="card-header">
|
||||
<span class="card-title">📝 关于</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div class="about-content">
|
||||
<div class="about-item">
|
||||
<span class="about-label">项目名称</span>
|
||||
<span class="about-value">代理池管理系统</span>
|
||||
</div>
|
||||
<div class="about-item">
|
||||
<span class="about-label">版本号</span>
|
||||
<span class="about-value">v1.0.0</span>
|
||||
</div>
|
||||
<div class="about-item">
|
||||
<span class="about-label">后端API</span>
|
||||
<span class="about-value">http://localhost:3000</span>
|
||||
</div>
|
||||
<div class="about-item">
|
||||
<span class="about-label">前端服务</span>
|
||||
<span class="about-value">http://localhost:8080</span>
|
||||
</div>
|
||||
<div class="about-item">
|
||||
<span class="about-label">数据库</span>
|
||||
<span class="about-value">SQLite</span>
|
||||
</div>
|
||||
</div>
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import PageHeader from '../components/PageHeader.vue'
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.settings {
|
||||
padding: 20px;
|
||||
background: var(--theme-bg);
|
||||
min-height: 100vh;
|
||||
color: var(--theme-text);
|
||||
}
|
||||
|
||||
.settings-card {
|
||||
margin-bottom: 20px;
|
||||
border-radius: 12px;
|
||||
background: var(--theme-bg-card);
|
||||
border: 1px solid var(--theme-border);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.settings-card:hover {
|
||||
box-shadow: 0 4px 16px rgba(255, 107, 157, 0.15);
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--theme-primary);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: var(--theme-primary);
|
||||
}
|
||||
|
||||
.settings-content {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.setting-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 20px 0;
|
||||
border-bottom: 1px solid var(--theme-border);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.setting-item:hover {
|
||||
background-color: var(--theme-bg-light);
|
||||
border-radius: 8px;
|
||||
padding: 20px 10px;
|
||||
margin: 0 -10px;
|
||||
}
|
||||
|
||||
.setting-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.setting-info {
|
||||
flex: 1;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.setting-label {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
color: var(--theme-text);
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.setting-desc {
|
||||
font-size: 14px;
|
||||
color: var(--theme-text-secondary);
|
||||
}
|
||||
|
||||
.setting-input {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.setting-actions {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
justify-content: center;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid var(--theme-border);
|
||||
}
|
||||
|
||||
.save-btn {
|
||||
padding: 12px 30px;
|
||||
font-size: 16px;
|
||||
border-radius: 8px;
|
||||
background-color: var(--theme-primary);
|
||||
border: none;
|
||||
color: var(--theme-bg);
|
||||
font-weight: 700;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.save-btn:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.reset-btn {
|
||||
padding: 12px 30px;
|
||||
font-size: 16px;
|
||||
border-radius: 8px;
|
||||
background-color: var(--theme-bg-light);
|
||||
border: 1px solid var(--theme-border);
|
||||
color: var(--theme-text);
|
||||
font-weight: 700;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.reset-btn:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.btn-icon {
|
||||
font-size: 18px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.about-content {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.about-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 15px 0;
|
||||
border-bottom: 1px solid var(--theme-border);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.about-item:hover {
|
||||
background-color: var(--theme-bg-light);
|
||||
border-radius: 8px;
|
||||
padding: 15px 10px;
|
||||
margin: 0 -10px;
|
||||
}
|
||||
|
||||
.about-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.about-label {
|
||||
font-size: 16px;
|
||||
color: var(--theme-text-secondary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.about-value {
|
||||
font-size: 16px;
|
||||
color: var(--theme-primary);
|
||||
font-weight: 700;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user