Showing
4 changed files
with
44 additions
and
16 deletions
| ... | @@ -25,6 +25,5 @@ declare module '@vue/runtime-core' { | ... | @@ -25,6 +25,5 @@ declare module '@vue/runtime-core' { |
| 25 | VanImage: typeof import('vant/es')['Image'] | 25 | VanImage: typeof import('vant/es')['Image'] |
| 26 | VanPopup: typeof import('vant/es')['Popup'] | 26 | VanPopup: typeof import('vant/es')['Popup'] |
| 27 | VanRow: typeof import('vant/es')['Row'] | 27 | VanRow: typeof import('vant/es')['Row'] |
| 28 | - VanSearch: typeof import('vant/es')['Search'] | ||
| 29 | } | 28 | } |
| 30 | } | 29 | } | ... | ... |
| ... | @@ -206,9 +206,9 @@ button:focus { | ... | @@ -206,9 +206,9 @@ button:focus { |
| 206 | } | 206 | } |
| 207 | 207 | ||
| 208 | .levels { | 208 | .levels { |
| 209 | - width: 96vmin; | 209 | + width: 90vmin; |
| 210 | height: 64vmin; | 210 | height: 64vmin; |
| 211 | - margin: -32vmin 0 0 -48vmin; | 211 | + margin: -32vmin 0 0 -40vmin; |
| 212 | -webkit-transition: -webkit-transform 0.3s; | 212 | -webkit-transition: -webkit-transform 0.3s; |
| 213 | transition: transform 0.3s; | 213 | transition: transform 0.3s; |
| 214 | -webkit-transform-style: preserve-3d; | 214 | -webkit-transform-style: preserve-3d; |
| ... | @@ -217,8 +217,8 @@ button:focus { | ... | @@ -217,8 +217,8 @@ button:focus { |
| 217 | 217 | ||
| 218 | .surroundings, | 218 | .surroundings, |
| 219 | .levels { | 219 | .levels { |
| 220 | - -webkit-transform: rotateX(70deg) rotateZ(-45deg) translateZ(-15vmin); | 220 | + -webkit-transform: rotateX(70deg) rotateZ(-45deg) translateZ(0vmin); |
| 221 | - transform: rotateX(70deg) rotateZ(-45deg) translateZ(-15vmin); | 221 | + transform: rotateX(70deg) rotateZ(-45deg) translateZ(0vmin); |
| 222 | } | 222 | } |
| 223 | 223 | ||
| 224 | .level { | 224 | .level { |
| ... | @@ -235,8 +235,8 @@ button:focus { | ... | @@ -235,8 +235,8 @@ button:focus { |
| 235 | transform-style: preserve-3d; | 235 | transform-style: preserve-3d; |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | -.level::after { | 238 | +/* .level::after { |
| 239 | - font-size: 2.5vmin; | 239 | + font-size: 1rem; |
| 240 | line-height: 0; | 240 | line-height: 0; |
| 241 | position: absolute; | 241 | position: absolute; |
| 242 | z-index: 100; | 242 | z-index: 100; |
| ... | @@ -250,7 +250,7 @@ button:focus { | ... | @@ -250,7 +250,7 @@ button:focus { |
| 250 | transition: transform 1s, color 0.3s; | 250 | transition: transform 1s, color 0.3s; |
| 251 | -webkit-transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1); | 251 | -webkit-transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1); |
| 252 | transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1); | 252 | transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1); |
| 253 | -} | 253 | +} */ |
| 254 | 254 | ||
| 255 | .level:hover::after, | 255 | .level:hover::after, |
| 256 | .level--current::after { | 256 | .level--current::after { |
| ... | @@ -259,10 +259,10 @@ button:focus { | ... | @@ -259,10 +259,10 @@ button:focus { |
| 259 | 259 | ||
| 260 | .level--current::after { | 260 | .level--current::after { |
| 261 | -webkit-transform: rotateZ(-20deg) rotateZ(45deg) rotateX(-70deg) translateZ(5vmin) translateX(5vmin) translateY(-10vmin); | 261 | -webkit-transform: rotateZ(-20deg) rotateZ(45deg) rotateX(-70deg) translateZ(5vmin) translateX(5vmin) translateY(-10vmin); |
| 262 | - transform: rotateZ(-20deg) rotateZ(45deg) rotateX(-70deg) translateZ(5vmin) translateX(5vmin) translateY(-10vmin); | 262 | + transform: rotateZ(-20deg) rotateZ(45deg) rotateX(-70deg) translateZ(5vmin) translateX(0vmin) translateY(-10vmin); |
| 263 | } | 263 | } |
| 264 | 264 | ||
| 265 | -.level--1::after { | 265 | +/* .level--1::after { |
| 266 | content: 'L1'; | 266 | content: 'L1'; |
| 267 | } | 267 | } |
| 268 | 268 | ||
| ... | @@ -276,7 +276,7 @@ button:focus { | ... | @@ -276,7 +276,7 @@ button:focus { |
| 276 | 276 | ||
| 277 | .level--4::after { | 277 | .level--4::after { |
| 278 | content: 'L4'; | 278 | content: 'L4'; |
| 279 | -} | 279 | +} */ |
| 280 | 280 | ||
| 281 | .level:not(:first-child) { | 281 | .level:not(:first-child) { |
| 282 | position: absolute; | 282 | position: absolute; |
| ... | @@ -571,7 +571,7 @@ button:focus { | ... | @@ -571,7 +571,7 @@ button:focus { |
| 571 | .content__meta-item { | 571 | .content__meta-item { |
| 572 | display: inline-block; | 572 | display: inline-block; |
| 573 | padding: 0 0.25em; | 573 | padding: 0 0.25em; |
| 574 | - color: ; | 574 | + /* color: ; */ |
| 575 | } | 575 | } |
| 576 | 576 | ||
| 577 | .content__meta .icon { | 577 | .content__meta .icon { |
| ... | @@ -771,7 +771,7 @@ button:focus { | ... | @@ -771,7 +771,7 @@ button:focus { |
| 771 | position: absolute; | 771 | position: absolute; |
| 772 | width: 5.5vmin; | 772 | width: 5.5vmin; |
| 773 | height: 8.25vmin; | 773 | height: 8.25vmin; |
| 774 | - margin: -8.25vmin 0 0 -2.25vmin; /* let the bottom tip be the reference point for individual coordinates */ | 774 | + margin: -8.25vmin 0 0 -4.25vmin; /* let the bottom tip be the reference point for individual coordinates */ |
| 775 | -webkit-transform: rotateZ(-20deg) rotateZ(45deg) rotateX(-70deg); | 775 | -webkit-transform: rotateZ(-20deg) rotateZ(45deg) rotateX(-70deg); |
| 776 | transform: rotateZ(-20deg) rotateZ(45deg) rotateX(-70deg); | 776 | transform: rotateZ(-20deg) rotateZ(45deg) rotateX(-70deg); |
| 777 | -webkit-transform-origin: 50% 100%; | 777 | -webkit-transform-origin: 50% 100%; | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2023-07-27 11:04:04 | 2 | * @Date: 2023-07-27 11:04:04 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-07-31 14:49:42 | 4 | + * @LastEditTime: 2023-07-31 17:03:09 |
| 5 | * @FilePath: /map-demo/src/components/Floor/index.vue | 5 | * @FilePath: /map-demo/src/components/Floor/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -191,6 +191,7 @@ | ... | @@ -191,6 +191,7 @@ |
| 191 | </span> | 191 | </span> |
| 192 | </a> | 192 | </a> |
| 193 | </div> | 193 | </div> |
| 194 | + <div class="level_after">L1</div> | ||
| 194 | <!-- /level__pins --> | 195 | <!-- /level__pins --> |
| 195 | </div> | 196 | </div> |
| 196 | <div @click="onFloorClick(2)" class="level level--2" aria-label="Level 2"> | 197 | <div @click="onFloorClick(2)" class="level level--2" aria-label="Level 2"> |
| ... | @@ -268,6 +269,7 @@ | ... | @@ -268,6 +269,7 @@ |
| 268 | </span> | 269 | </span> |
| 269 | </a> | 270 | </a> |
| 270 | </div> | 271 | </div> |
| 272 | + <div class="level_after">L2</div> | ||
| 271 | </div> | 273 | </div> |
| 272 | <div @click="onFloorClick(3)" class="level level--3" aria-label="Level 3"> | 274 | <div @click="onFloorClick(3)" class="level level--3" aria-label="Level 3"> |
| 273 | <svg class="map map--3" viewBox="0 0 1200 800" width="100%" height="100%" preserveAspectRatio="xMidYMid meet"> | 275 | <svg class="map map--3" viewBox="0 0 1200 800" width="100%" height="100%" preserveAspectRatio="xMidYMid meet"> |
| ... | @@ -337,6 +339,7 @@ | ... | @@ -337,6 +339,7 @@ |
| 337 | </span> | 339 | </span> |
| 338 | </a> | 340 | </a> |
| 339 | </div> | 341 | </div> |
| 342 | + <div class="level_after">L3</div> | ||
| 340 | </div> | 343 | </div> |
| 341 | <div @click="onFloorClick(4)" class="level level--4" aria-label="Level 4"> | 344 | <div @click="onFloorClick(4)" class="level level--4" aria-label="Level 4"> |
| 342 | <svg class="map map--4" viewBox="0 0 1200 800" width="100%" height="100%" preserveAspectRatio="xMidYMid meet"> | 345 | <svg class="map map--4" viewBox="0 0 1200 800" width="100%" height="100%" preserveAspectRatio="xMidYMid meet"> |
| ... | @@ -408,6 +411,7 @@ | ... | @@ -408,6 +411,7 @@ |
| 408 | </span> | 411 | </span> |
| 409 | </a> | 412 | </a> |
| 410 | </div> | 413 | </div> |
| 414 | + <div class="level_after">L4</div> | ||
| 411 | </div> | 415 | </div> |
| 412 | </div> | 416 | </div> |
| 413 | </div> | 417 | </div> |
| ... | @@ -568,4 +572,29 @@ export default { | ... | @@ -568,4 +572,29 @@ export default { |
| 568 | color: #000; margin-bottom: 1rem; font-size: 1.15rem; | 572 | color: #000; margin-bottom: 1rem; font-size: 1.15rem; |
| 569 | } | 573 | } |
| 570 | } | 574 | } |
| 575 | + | ||
| 576 | + .level_after { | ||
| 577 | + font-size: 0.75rem; | ||
| 578 | + line-height: 0; | ||
| 579 | + position: absolute; | ||
| 580 | + z-index: 100; | ||
| 581 | + top: -2em; | ||
| 582 | + left: 3.5em; | ||
| 583 | + white-space: nowrap; | ||
| 584 | + color: #7d7d86; | ||
| 585 | + -webkit-transform: rotateZ(45deg) rotateX(-70deg) translateZ(5vmin); | ||
| 586 | + transform: rotateZ(45deg) rotateX(-70deg) translateZ(5vmin); | ||
| 587 | + -webkit-transition: -webkit-transform 1s, color 0.3s; | ||
| 588 | + transition: transform 1s, color 0.3s; | ||
| 589 | + -webkit-transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1); | ||
| 590 | + transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1); | ||
| 591 | + } | ||
| 592 | + | ||
| 593 | + .level--current { | ||
| 594 | + .level_after { | ||
| 595 | + font-size: 1rem; | ||
| 596 | + -webkit-transform: rotateZ(25deg) rotateX(-60deg) translateZ(15vmin); | ||
| 597 | + transform: rotateZ(25deg) rotateX(-60deg) translateZ(15vmin); | ||
| 598 | + } | ||
| 599 | + } | ||
| 571 | </style> | 600 | </style> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2023-05-19 14:54:27 | 2 | * @Date: 2023-05-19 14:54:27 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-07-31 11:56:35 | 4 | + * @LastEditTime: 2023-07-31 17:05:09 |
| 5 | * @FilePath: /map-demo/src/views/inner.vue | 5 | * @FilePath: /map-demo/src/views/inner.vue |
| 6 | * @Description: 内部地图主体页面 | 6 | * @Description: 内部地图主体页面 |
| 7 | --> | 7 | --> |
| ... | @@ -277,7 +277,7 @@ export default { | ... | @@ -277,7 +277,7 @@ export default { |
| 277 | point_range: [ // 景区范围经纬度 | 277 | point_range: [ // 景区范围经纬度 |
| 278 | [120.585111, 31.316084], [120.585111, 31.316084], [120.589488, 31.313197], [120.585422, 31.313005] | 278 | [120.585111, 31.316084], [120.585111, 31.316084], [120.589488, 31.313197], [120.585422, 31.313005] |
| 279 | ], | 279 | ], |
| 280 | - show_floor_popup: true, | 280 | + show_floor_popup: false, |
| 281 | } | 281 | } |
| 282 | }, | 282 | }, |
| 283 | async mounted() { | 283 | async mounted() { | ... | ... |
-
Please register or login to post a comment