修改样式

This commit is contained in:
2026-08-03 16:39:25 +08:00
parent d89f9abb44
commit 6d652a4938
2 changed files with 118 additions and 124 deletions
-121
View File
@@ -5,127 +5,6 @@
{% block extra_css %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet@1.9.4/dist/leaflet.css">
<style>
.map-wrapper {
display: flex;
gap: 20px;
height: 600px;
}
.map-container {
flex: 1;
height: 600px;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
#customer-map {
width: 100%;
height: 100%;
}
.customer-list-panel {
width: 320px;
height: 600px;
flex-shrink: 0;
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 12px rgba(0,0,0,0.08);
overflow: hidden;
display: flex;
flex-direction: column;
}
.customer-list-header {
padding: 16px 20px;
border-bottom: 1px solid #eef0f4;
background: #fafbfc;
flex-shrink: 0;
}
.customer-list-header h5 {
margin: 0;
color: var(--title-color);
font-size: 1rem;
}
.customer-list-header .count {
color: var(--text-secondary);
font-size: 0.8rem;
margin-left: 8px;
}
.customer-list {
flex: 1 1 auto;
overflow-y: auto;
list-style: none;
padding: 0;
margin: 0;
height: 0;
}
.customer-list li {
padding: 14px 20px;
border-bottom: 1px solid #f3f5f8;
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
transition: background 0.2s;
}
.customer-list li:hover {
background: #f7f9fc;
}
.customer-list li.active {
background: #eef4ff;
}
.customer-index {
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--primary-color);
color: #fff;
font-size: 0.8rem;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.customer-name {
flex: 1;
color: var(--title-color);
font-size: 0.9rem;
line-height: 1.4;
}
.leaflet-popup-content-wrapper { border-radius: 8px; }
.leaflet-popup-content { margin: 12px 16px; }
.leaflet-popup-content h6 { margin-bottom: 4px; color: var(--title-color); }
.leaflet-popup-content p { margin-bottom: 0; color: var(--text-secondary); font-size: 0.875rem; }
.numbered-marker {
background: var(--primary-color);
color: #fff;
border-radius: 50%;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 0.8rem;
border: 2px solid #fff;
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
@media (max-width: 992px) {
.map-wrapper {
flex-direction: column;
height: auto;
}
.map-container {
height: 400px;
flex: none;
}
.customer-list-panel {
width: 100%;
height: 300px;
flex: none;
}
}
</style>
{% endblock %}
{% block content %}