diff --git a/src/assets/images/legend-item-1.png b/src/assets/images/legend-item-1.png new file mode 100644 index 0000000..0b3886f Binary files /dev/null and b/src/assets/images/legend-item-1.png differ diff --git a/src/assets/images/legend-item-2.png b/src/assets/images/legend-item-2.png new file mode 100644 index 0000000..bde6a94 Binary files /dev/null and b/src/assets/images/legend-item-2.png differ diff --git a/src/assets/images/more-col.png b/src/assets/images/more-col.png new file mode 100644 index 0000000..b42a93a Binary files /dev/null and b/src/assets/images/more-col.png differ diff --git a/src/components/CoreVideo/index.vue b/src/components/CoreVideo/index.vue index 701e0de..99de71b 100644 --- a/src/components/CoreVideo/index.vue +++ b/src/components/CoreVideo/index.vue @@ -64,7 +64,7 @@ background-color: transparent !important; } .core-video { - margin: vh(10); + margin: vw(8); width: vw(300); border-radius: vw(2); background-image: url('@/assets/images/bg-1.png'); @@ -135,7 +135,7 @@ } &-img { width: 100%; - height: vh(164); + height: vw(164); display: block; object-fit: cover; } diff --git a/src/components/Correspondence/index.vue b/src/components/Correspondence/index.vue index d98e79c..bdd0353 100644 --- a/src/components/Correspondence/index.vue +++ b/src/components/Correspondence/index.vue @@ -49,7 +49,7 @@ diff --git a/src/hooks/socket.js b/src/hooks/socket.js index 655033b..2cb5fda 100644 --- a/src/hooks/socket.js +++ b/src/hooks/socket.js @@ -1,9 +1,9 @@ import { ref } from 'vue' export function useWebSocket(url) { - let socket = ref(null) - let data = ref(null) - let isConnected = ref(false) + let socket = ref(null) // socket对象 + let data = ref(null) // 存储接收到的数据 + let isConnected = ref(false) // 是否连接成功 const connectWebSocket = () => { socket.value = new WebSocket(url, 'echo-protocol', { @@ -15,13 +15,6 @@ export function useWebSocket(url) { socket.value.onopen = () => { isConnected.value = true console.log('WebSocket connected') - sendMessage( - JSON.stringify({ - action: 'start', - type: 'index', - scenitspot: 'index' - }) - ) } socket.value.onerror = (error) => { console.error('WebSocket error:', error) diff --git a/src/styles/common.scss b/src/styles/common.scss index 8d1d75e..2c15c8f 100644 --- a/src/styles/common.scss +++ b/src/styles/common.scss @@ -38,10 +38,10 @@ margin-top: vw(8) !important; } .pt-10 { - padding-top: vh(10) !important; + padding-top: vw(10) !important; } .pb-10 { - padding-bottom: vh(10) !important; + padding-bottom: vw(10) !important; } .mb-10 { margin-bottom: vh(10) !important; diff --git a/src/views/home/components/age.vue b/src/views/home/components/age.vue index 308a7ce..5a541e0 100644 --- a/src/views/home/components/age.vue +++ b/src/views/home/components/age.vue @@ -1,5 +1,5 @@ diff --git a/src/views/home/components/box-1.vue b/src/views/home/components/box-1.vue index d6a8b6d..0c78173 100644 --- a/src/views/home/components/box-1.vue +++ b/src/views/home/components/box-1.vue @@ -6,9 +6,10 @@
-
- + + + {{ item.name }}
@@ -89,19 +90,19 @@
- + 三峡之巅
- + 三峡之巅
- + 三峡之巅
- + 三峡之巅
@@ -152,7 +153,7 @@
-
+
总人数:
@@ -161,7 +162,8 @@ v-for="(item, index) in homeData?.userPortrait.genderRate" :key="index" > - + +
{{ item.name }}性
@@ -183,7 +185,7 @@
-
总人数:
+
游客总数:
@@ -253,7 +255,7 @@ } &-label { position: absolute; - left: vw(80); + left: vw(70); top: vh(-10); font-weight: 400; font-size: vw(14); @@ -261,7 +263,7 @@ } &-value { position: absolute; - left: vw(80); + left: vw(70); .countup-wrap { color: #02f9fa; font-size: vw(28); @@ -274,15 +276,6 @@ font-size: vw(14); margin-bottom: vh(4); } - .core { - background-image: url('@/assets/images/core.png'); - } - .queue { - background-image: url('@/assets/images/queue.png'); - } - .congestion { - background-image: url('@/assets/images/congestion.png'); - } .box { width: vw(384); height: vh(320); @@ -327,16 +320,22 @@ } } } - .box-1 { - width: vw(253); + .age-box { + width: vw(290); height: vh(290); background-image: url('@/assets/images/bg-3.png'); background-size: 100% 100%; &:nth-child(1) { - margin-right: vw(10); + margin-right: vw(8); } + } + .box-1 { + width: vw(240); + height: vh(290); + background-image: url('@/assets/images/bg-3.png'); + background-size: 100% 100%; &:nth-child(2) { - margin-right: vw(10); + margin-right: vw(8); } } .count { @@ -375,8 +374,11 @@ color: rgba(255, 255, 255, 0.9); } .progress { - width: vw(120); + width: vw(170); margin-left: vw(4); + :deep(.el-progress-bar__outer) { + background-color: #0858ae !important; + } } .man { font-weight: bold; diff --git a/src/views/home/components/box-2.vue b/src/views/home/components/box-2.vue index 4c0e2f8..99553e3 100644 --- a/src/views/home/components/box-2.vue +++ b/src/views/home/components/box-2.vue @@ -94,21 +94,21 @@
- 普通 + 重要

工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工工单信息工单信息工单信息工单信息工单信息 工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工工单信息工单信息工单信息工单信息工单信息

- 普通 + 紧急

工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工工单信息工单信息工单信息工单信息工单信息 工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工工单信息工单信息工单信息工单信息工单信息

- 普通 + 普通

工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工工单信息工单信息工单信息工单信息工单信息 工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工单信息工工单信息工单信息工单信息工单信息工单信息 @@ -272,6 +272,7 @@ .progress { width: vw(100); :deep(.el-progress-bar__outer) { + height: vh(4) !important; background-color: #0858ae !important; } } @@ -304,29 +305,27 @@ &:nth-last-child(1) { margin-bottom: 0; } - .tag { + &-tag { padding: 0 vw(16); font-weight: bold; font-size: vw(14); + color: #fff; display: flex; align-items: center; justify-content: center; border-radius: vw(2); - &--success { - color: #02f9fa; - border: 1px solid #02f9fa; - box-shadow: inset 0 0 vw(8) 0 #0be1ab; - } - &--error { - color: #ee2c2c; - border: 1px solid #ee2c2c; - box-shadow: inset 0 0 vw(8) 0 #ee2c2c; - } - &--primary { - color: #00aaff; - border: 1px solid #00aaff; - box-shadow: inset 0 0 vw(8) 0 #00aaff; - } + } + &-tag--warning { + @extend .item-tag; + background: #feae00; + } + &-tag--error { + @extend .item-tag; + background: #d9011b; + } + &-tag--primary { + @extend .item-tag; + background: #2380fb; } .content { margin-left: vw(4); diff --git a/src/views/home/components/box-3.vue b/src/views/home/components/box-3.vue index dd4dc86..f1a4223 100644 --- a/src/views/home/components/box-3.vue +++ b/src/views/home/components/box-3.vue @@ -1,7 +1,7 @@