From 787a9df226cb9b9c1d4d109707bbfe69d340da31 Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Tue, 25 Jul 2023 19:43:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 + src/assets/img/publicImage/video-icon.svg | 21 +++ src/components/detail/imageWatch.vue | 6 +- src/components/public/viewMap.vue | 5 + src/views/apartmentDetail.vue | 184 ++++++++++++++++------ 5 files changed, 165 insertions(+), 55 deletions(-) create mode 100644 src/assets/img/publicImage/video-icon.svg diff --git a/src/App.vue b/src/App.vue index e034b4c..0f3928a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -137,4 +137,8 @@ input[type="number"] { /* 隐藏 Chrome 浏览器的滚动条 */ } } + +.rotate180 { + transform: rotate(180deg); +} diff --git a/src/assets/img/publicImage/video-icon.svg b/src/assets/img/publicImage/video-icon.svg new file mode 100644 index 0000000..0983826 --- /dev/null +++ b/src/assets/img/publicImage/video-icon.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/detail/imageWatch.vue b/src/components/detail/imageWatch.vue index c60c547..958a28f 100644 --- a/src/components/detail/imageWatch.vue +++ b/src/components/detail/imageWatch.vue @@ -6,10 +6,10 @@
- +
- +
@@ -30,7 +30,7 @@
- +
diff --git a/src/components/public/viewMap.vue b/src/components/public/viewMap.vue index db20391..31b70cf 100644 --- a/src/components/public/viewMap.vue +++ b/src/components/public/viewMap.vue @@ -87,6 +87,10 @@ const showPop = () => show.value = !show.value border-radius: 20px; padding: 20px; + .close { + display: block; + } + #container { width: 100%; height: 100%; @@ -105,6 +109,7 @@ const showPop = () => show.value = !show.value right: -25px; cursor: pointer; z-index: 1002; + display: none; .icon { width: 20px; diff --git a/src/views/apartmentDetail.vue b/src/views/apartmentDetail.vue index c12074c..265a3c0 100644 --- a/src/views/apartmentDetail.vue +++ b/src/views/apartmentDetail.vue @@ -9,29 +9,52 @@
+ +
- - - + + + + -
-
直播
+
+
+ 直播
+
视频 +
+
图片
-
1/3
+ +
+ {{ carouselIndex - carouselsconfig[allCarouselsData[carouselIndex]['type']]['index'] + 1 }}/{{ + carouselsconfig[allCarouselsData[carouselIndex]['type']]['amount'] }}
- + +
-
-
- +
+
+ +
- + +
@@ -330,23 +353,25 @@ @@ -622,12 +696,15 @@ const handleslideshow = (type) => { align-items: center; border-radius: 5px; - img { + .img { width: 100%; object-fit: cover; height: 340px; display: block; + cursor: pointer; } + + .video-icon {} } } @@ -683,6 +760,7 @@ const handleslideshow = (type) => { width: 32px; height: 100%; cursor: pointer; + user-select: none; &.left { // transform: rotate(180deg); @@ -715,11 +793,20 @@ const handleslideshow = (type) => { } } + .video-icon { + width: 44px; + height: 44px; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + } + // overflow: hidden; .img { height: 100%; - border-radius: 10px; + border-radius: 6px; } } @@ -977,13 +1064,6 @@ const handleslideshow = (type) => { cursor: pointer; user-select: none; - .rotate180 { - transform: rotate(180deg); - - } - - - .arrow { width: 10px; height: 17px;