update 调整样式·

This commit is contained in:
zk
2024-06-15 16:22:48 +08:00
parent dcf14220b3
commit fc6e3a736e
5 changed files with 123 additions and 83 deletions
+52 -52
View File
@@ -1,79 +1,79 @@
//高德信息弹窗 //高德信息弹窗
.amap-info-contentContainer { .amap-info-contentContainer {
.amap-content-body { .amap-content-body {
background: #00152B; background: #00152B;
border: 1px solid #129BFF; border: 1px solid #129BFF;
.amap-lib-infowindow { .amap-lib-infowindow {
background: #00152B; background: #00152B;
.amap-lib-infowindow-title { .amap-lib-infowindow-title {
color: #fff; color: #fff;
border-bottom: 1px solid #129BFF; border-bottom: 1px solid #129BFF;
padding: 4px 0; padding: 4px 0;
} }
.amap-lib-infowindow-content { .amap-lib-infowindow-content {
color: #fff; color: #fff;
padding: 4px 0; padding: 4px 0;
} }
}
} }
}
.amap-combo-close { .amap-combo-close {
top: 5px; top: 5px;
right: 7px; right: 7px;
} }
} }
/*地图元素样式---start*/ /*地图元素样式---start*/
//marker //marker
.amap-marker-label { .amap-marker-label {
padding: 0; padding: 0;
border: none; border: none;
} }
.alarm-content { .alarm-content {
background-color: #263d5e; background-color: #263d5e;
color: #fff;
border: 1px solid #1b7ef2;
font-size: 14px;
padding: 7px 10px;
position: relative;
.close-btn {
color: #fff; color: #fff;
font-size: 14px; background: #ccc;
padding: 7px 10px; box-shadow: -1px 1px 1px rgba(10, 10, 10, 0.2);
border: 1px solid #1b7ef2; position: absolute;
position: relative; top: -6px;
right: -8px;
width: 15px;
height: 15px;
font-size: 12px;
border-radius: 50%;
text-align: center;
line-height: 15px;
}
.close-btn { .close-btn:hover {
position: absolute; background: #666;
top: -6px; }
right: -8px;
width: 15px;
height: 15px;
font-size: 12px;
background: #ccc;
border-radius: 50%;
color: #fff;
text-align: center;
line-height: 15px;
box-shadow: -1px 1px 1px rgba(10, 10, 10, 0.2);
}
.close-btn:hover {
background: #666;
}
} }
/*地图元素样式---end*/ /*地图元素样式---end*/
/*infoWindow*/ /*infoWindow*/
.amap-info-content { .amap-info-content {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: url("../images/info-modal.png") no-repeat center; background: url("../images/info-modal.png") no-repeat center;
background-size: 100% 100%; background-size: 100% 100%;
//padding: 16px 18px 22px 10px; //padding: 16px 18px 22px 10px;
} }
.amap-info-contentContainer { .amap-info-contentContainer {
.amap-info-sharp { .amap-info-sharp {
border-top: none; border-top: none;
} }
} }
+58
View File
@@ -37,3 +37,61 @@
.center-map .route-navigation.dark { .center-map .route-navigation.dark {
background: #002e64; background: #002e64;
} }
.hospital-list.light {
.hospital-item {
color: #5876DB;
background-color: #f3f5ff;
border: 1px solid #5876DB;
box-shadow: 0 1px 11px 0 rgba(194, 189, 189, 0.5);
}
.hospital-item:hover {
background-color: #c6cff9;
box-shadow: inset 0px 0px 16px 3px #f3f5ff;
}
}
.hospital-list.dark {
.hospital-item {
color: #fff;
background-color: #00152b;
border: 1px solid #1b7ef2;
box-shadow: 0 1px 11px 0 rgba(194, 189, 189, 0.5);
}
.hospital-item:hover {
background-color: #192a46;
box-shadow: inset 0px 0px 16px 3px #2562a9;
}
}
//点击地图医院触发的导航弹窗
.driving-route-panel.light {
background: #E4E8F9;
--cardFontColor: #607ddb;
--cardFontFFF: #fff;
--cardBgColor: #e4e8f9;
--circelBg: #1478f5;
}
.driving-route-panel.dark {
background: #2a4164;
border: 1px solid #1b7ef2;
--cardFontColor: rgba(255, 255, 255, 0.8);
--cardFontFFF: #fff;
--cardBgColor: #e4e8f9;
--circelBg: #1478f5;
}
.reset-map.dark {
color: #05d5ff;
background: #243b5d;
}
.reset-map.light {
color: #607ddb;
background: #e4e8f9;
}
@@ -47,7 +47,7 @@
margin-bottom: 9px; margin-bottom: 9px;
font-size: 14px; font-size: 14px;
font-weight: 700; font-weight: 700;
color: rgba(255, 255, 255, 0.8); color: var(--cardFontColor);
.close-icon { .close-icon {
position: absolute; position: absolute;
@@ -58,6 +58,7 @@
.line-content { .line-content {
font-size: 12px; font-size: 12px;
color: var(--cardFontColor);
.start { .start {
display: flex; display: flex;
@@ -65,7 +66,8 @@
&::before { &::before {
content: '起'; content: '起';
color: #fff; color: var(--cardFontFFF);
background: var(--circelBg);
width: 20px; width: 20px;
height: 20px; height: 20px;
margin-right: 7px; margin-right: 7px;
@@ -73,7 +75,6 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-radius: 50%; border-radius: 50%;
background: #1478f5;
} }
} }
@@ -83,7 +84,8 @@
&::before { &::before {
content: '终'; content: '终';
color: #fff; color: var(--cardFontFFF);
background: var(--circelBg);
width: 20px; width: 20px;
height: 20px; height: 20px;
margin-right: 7px; margin-right: 7px;
@@ -102,8 +104,7 @@
.line { .line {
width: 1px; width: 1px;
//max-height: 370px; color: var(--cardFontColor);
background-color: #1478f5;
margin: 5px 19px 5px 8px; margin: 5px 19px 5px 8px;
} }
+6 -21
View File
@@ -36,11 +36,12 @@
<div v-show="!routeList.length" class="empty-data"> 暂无数据</div> <div v-show="!routeList.length" class="empty-data"> 暂无数据</div>
</div> </div>
</div> </div>
<div v-show="showHospitalList" class="reset-map" @click="resetMap"> <div v-show="showHospitalList" class="reset-map" :class="[themeType]" @click="resetMap">
<RedoOutlined title="重置地图" /> <RedoOutlined title="重置地图" />
</div> </div>
<RoutePanel <RoutePanel
class="driving-route-panel" class="driving-route-panel"
:class="[themeType]"
v-show="showDrivingPanel" v-show="showDrivingPanel"
:drivingRoute="drivingRoute" :drivingRoute="drivingRoute"
:drivingTitle="drivingTitle" :drivingTitle="drivingTitle"
@@ -69,7 +70,7 @@
</div> </div>
</div> </div>
<!-- 附近医院医疗点 --> <!-- 附近医院医疗点 -->
<div class="hospital-list" v-if="showHospitalList"> <div class="hospital-list" :class="[themeType]" v-if="showHospitalList">
<div class="hospital-item" v-for="(item, index) in hospitalList" :key="index" @click="showDrivingLine(item)"> <div class="hospital-item" v-for="(item, index) in hospitalList" :key="index" @click="showDrivingLine(item)">
<div>{{ item.name }}</div> <div>{{ item.name }}</div>
<div>相距{{ item.distance }}</div> <div>相距{{ item.distance }}</div>
@@ -480,7 +481,6 @@
.line { .line {
width: 1px; width: 1px;
//max-height: 370px;
background-color: var(--circelBg); background-color: var(--circelBg);
margin: 5px 19px 5px 8px; margin: 5px 19px 5px 8px;
} }
@@ -503,9 +503,7 @@
top: 50px; top: 50px;
z-index: 99; z-index: 99;
font-size: 20px; font-size: 20px;
color: #05d5ff;
cursor: pointer; cursor: pointer;
background: #243b5d;
padding: 0px 6px; padding: 0px 6px;
} }
@@ -519,9 +517,7 @@
min-height: 200px; min-height: 200px;
max-height: 473px; max-height: 473px;
overflow: auto; overflow: auto;
background: #2a4164;
border-radius: 2px; border-radius: 2px;
border: 1px solid #1b7ef2;
z-index: 99; z-index: 99;
} }
@@ -604,8 +600,7 @@
.hospital-list { .hospital-list {
position: absolute; position: absolute;
bottom: 200px; bottom: 160px;
width: 800px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
display: flex; display: flex;
@@ -614,25 +609,15 @@
position: relative; position: relative;
flex: 1; flex: 1;
gap: 20px; gap: 20px;
min-width: 230px; min-width: 200px;
max-width: 230px; max-width: 200px;
height: 110px;
text-align: center; text-align: center;
padding: 10px; padding: 10px;
margin: 0 10px; margin: 0 10px;
color: #fff;
font-size: 16px; font-size: 16px;
background-color: #00152b;
border: 1px solid #1b7ef2;
border-radius: 12px; border-radius: 12px;
box-shadow: 0 1px 11px 0 rgba(194, 189, 189, 0.5);
cursor: pointer; cursor: pointer;
} }
.hospital-item:hover {
background-color: #192a46;
box-shadow: inset 0px 0px 16px 3px #2562a9;
}
} }
} }
</style> </style>
@@ -106,8 +106,4 @@
.table-container { .table-container {
margin: 0 10px; margin: 0 10px;
} }
:deep(.ant-form-item-label) > label {
color: #fff;
}
</style> </style>