feat:完善功能

This commit is contained in:
zjc
2025-02-23 12:52:09 +08:00
parent 2d881eae08
commit 7e822f1c66
9 changed files with 82 additions and 126 deletions

View File

@@ -62,7 +62,7 @@
clockwise: false,
silent: true,
center: ['30%', '50%'],
radius: ['60%', '70%'],
radius: ['50%', '60%'],
itemStyle: {
borderColor: 'transparent',
borderRadius: fitChartSize(2),
@@ -80,7 +80,7 @@
clockwise: false,
silent: true,
center: ['30%', '50%'],
radius: ['54%', '58%'],
radius: ['44%', '48%'],
itemStyle: {
borderColor: 'transparent',
borderRadius: fitChartSize(2),
@@ -136,6 +136,6 @@
<style lang="scss" scoped>
.age {
width: vw(300);
height: vh(120);
height: vh(150);
}
</style>

View File

@@ -33,7 +33,7 @@
<div class="alarm-box">
<ul class="flex">
<li class="alarm-item" v-for="(item, index) in list" :key="index">
<img class="icon" :src="item.icon" />
<img class="alarm-item__icon" :src="item.icon" />
<span>{{ item.label }}</span>
</li>
</ul>
@@ -124,6 +124,7 @@
<script setup>
import countup from 'vue-countup-v3'
import { Vue3SeamlessScroll } from 'vue3-seamless-scroll'
import ScrollNumber from '@/components/ScrollNumber/index.vue'
import { getSpotListApi, getBaiduMapApi, getBaiduMapCrowdedApi } from '@/api/home'
@@ -170,7 +171,7 @@
watch(
() => [map.value, homeStore.carShipData],
() => {
return;
return
if (map.value && homeStore.carShipData) {
// clearOverlays()
markers.forEach((item) => {
@@ -352,7 +353,7 @@
margin-top: vh(20);
}
.item {
margin-right:vh(20);
margin-right: vh(20);
flex: 1;
.label {
margin-bottom: vh(20);
@@ -395,8 +396,8 @@
left: vw(20);
z-index: 99;
.alarm-item {
width: vw(110);
height: vh(40);
padding: 0 vw(20);
height: vw(40);
margin-right: vw(4);
font-weight: 400;
font-size: vw(14);
@@ -405,7 +406,7 @@
align-items: center;
justify-content: center;
background: linear-gradient(to bottom, rgba(238, 44, 44, 0) 0%, #ee2c2c 100%);
.icon {
&__icon {
width: vw(20);
height: vw(20);
margin-right: vw(4);