From a28f44361c8f0224c7b9bf4e021e0704c7baf109 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Fri, 12 May 2023 09:59:07 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/realTimeMonitor/index.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/views/realTimeMonitor/index.vue b/src/views/realTimeMonitor/index.vue index 2923b7d..00641e4 100644 --- a/src/views/realTimeMonitor/index.vue +++ b/src/views/realTimeMonitor/index.vue @@ -37,7 +37,6 @@
图片总数:{{ totalPic }}张 From 04af23d181ca72561d3ff56695659d507dd5de15 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Fri, 12 May 2023 19:24:28 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E8=BD=AE=E6=92=AD=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/carouselChart.vue | 449 ++++++++++-------- ...arouselChart1.vue => carouselChartnew.vue} | 88 ++-- src/views/realTimeMonitor/index.vue | 10 +- 3 files changed, 303 insertions(+), 244 deletions(-) rename src/views/components/{carouselChart1.vue => carouselChartnew.vue} (80%) diff --git a/src/views/components/carouselChart.vue b/src/views/components/carouselChart.vue index 5244ecd..877c81d 100644 --- a/src/views/components/carouselChart.vue +++ b/src/views/components/carouselChart.vue @@ -1,91 +1,78 @@ @@ -157,101 +168,141 @@ export default { width: 100%; display: flex; flex-direction: column; - height: calc(100% - 26px); + height: calc(100% - 24px); box-sizing: border-box; - .gallery-top { - //background: #fcc; + .picTop { width: 100%; height: 80%; overflow: hidden; margin-bottom: 4px; - //border: 3px solid transparent; - .swiper-slide { + position: relative; + &:hover { + .arrow { + opacity: 1; + transition: all 0.5s ease-in; + } + } + .bigimg { width: 100%; - overflow: hidden; - .bigimg { - width: 100%; - height: 100%; - display: flex; - align-items: center; - justify-content: center; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + position: relative; + .mark { + position: absolute; + bottom: 16px; + color: #fff; + background-color: rgba(0, 0, 0, 0.5); + left: 16px; + font-size: 14px; + line-height: 24px; + animation: move 1s; } - img { - width: 100%; - height: 100%; - object-fit: fill; + @keyframes move { + 0% { + bottom: -10px; + } + 100% { + transform: 16px; + } } } - .swiper-button-prev.swiper-button-disabled, - .swiper-button-next.swiper-button-disabled { - opacity: 0.35; - cursor: auto; - pointer-events: none; - display: none !important; + img { + width: 100%; + height: 100%; + object-fit: fill; + cursor: pointer; + } + .arrow { + opacity: 0; + position: absolute; + cursor: pointer; + color: #fff; + font-size: 60px; + border-radius: 30px; + position: absolute; + top: 50%; + transform: translateY(-50%); + background-color: rgba(0, 0, 0, 0.5); + display: flex; + justify-content: center; + align-items: center; + color: #fff; + text-align: center; + line-height: 60px; + &:hover { + color: #409eff; + } + } + .leftArrow { + left: 16px; + } + .rightArrow { + right: 16px; } } - .gallery-thumbs { + .picBottom { width: 100%; height: 18%; - .slide { - width: 20%; - border: 3px solid transparent; - overflow: hidden; - box-sizing: border-box; + position: relative; + .smallPicBox { + width: 100%; + height: 100%; display: flex; - align-items: center; - justify-content: center; - - .bigimg { - width: 100%; - height: 100%; + li { + width: 20%; + border: 3px solid transparent; + overflow: hidden; + box-sizing: border-box; display: flex; align-items: center; justify-content: center; + position: relative; + img { + width: 100%; + height: 100%; + object-fit: fill; + cursor: pointer; + } } - img { - //width: 100%; - height: 100%; - object-fit: fill; + .borderActive { + border: 3px solid #409eff; + } + .timeInfo { + position: absolute; + bottom: 0px; + width: 100%; + background: #f0f0f0; + padding: 8px 0px; + font-size: 12px; + text-align: center; + color: #333; } } - - .timeInfo { + .arrow { position: absolute; - bottom: 0px; - width: 100%; - background: #f0f0f0; - padding: 8px 0px; - font-size: 12px; + cursor: pointer; + color: #fff; + font-size: 30px; + border-radius: 30px; + position: absolute; + top: 45%; + transform: translateY(-50%); + background-color: rgba(0, 0, 0, 0.5); + display: flex; + justify-content: center; + align-items: center; + color: #fff; text-align: center; - color: #333; + line-height: 60px; + } + .leftArrow { + left: 16px; + } + .rightArrow { + right: 16px; } - } - - .swiper-button-next.swiper-button-white, - .swiper-container-rtl .swiper-button-prev.swiper-button-white, - .swiper-button-prev.swiper-button-white, - .swiper-container-rtl .swiper-button-next.swiper-button-white { - width: 40px; - height: 40px; - border-radius: 30px; - position: absolute; - top: 50%; - transform: translateY(-50%); - background-color: rgba(0, 0, 0, 0.5); - display: flex; - justify-content: center; - align-items: center; - font-size: 30px; - color: #fff; - text-align: center; - line-height: 60px; - } - .swiper-button-next:after, - .swiper-container-rtl .swiper-button-prev:after, - .swiper-button-prev:after, - .swiper-container-rtl .swiper-button-next:after { - transform: scale(0.5); } } // https://v1.github.surmon.me/vue-awesome-swiper/ diff --git a/src/views/components/carouselChart1.vue b/src/views/components/carouselChartnew.vue similarity index 80% rename from src/views/components/carouselChart1.vue rename to src/views/components/carouselChartnew.vue index ffc40a1..49a58cd 100644 --- a/src/views/components/carouselChart1.vue +++ b/src/views/components/carouselChartnew.vue @@ -1,30 +1,20 @@