You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
1.8 KiB
95 lines
1.8 KiB
<template>
|
|
<div>
|
|
<!-- 地图容器 -->
|
|
<div id="mapContainer" :class="$route.path === '/billboard' ? 'billboard' : $route.path === '/guide' ? 'guide' : ''" />
|
|
|
|
<!-- 地图弹框 -->
|
|
<div id="shopInfo" class="boxShop">
|
|
<div>{{ shop ? switchLanguage(shop, 'shopName') : '' }}</div>
|
|
</div>
|
|
<div id="moveFloorBG">
|
|
<span id="moveFloor"></span>
|
|
<div style="position: absolute; z-index: 128" id="floorBox"></div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { storeToRefs } from 'pinia'
|
|
import { useStore } from '@/store/root'
|
|
|
|
const store = useStore()
|
|
const { shop } = storeToRefs(store)
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
@import '@/assets/scss/mixin.scss';
|
|
|
|
#mapContainer {
|
|
position: absolute;
|
|
top: 118px;
|
|
left: 0;
|
|
height: 642px;
|
|
width: 1080px;
|
|
z-index: 10;
|
|
overflow: hidden;
|
|
&.billboard {
|
|
pointer-events: none;
|
|
}
|
|
&.guide {
|
|
top: 408px;
|
|
}
|
|
}
|
|
|
|
#shopInfo {
|
|
position: absolute;
|
|
z-index: 9000 !important;
|
|
visibility: hidden;
|
|
height: 36px;
|
|
background: center / 100% 100% no-repeat url(./bg.png);
|
|
div {
|
|
font-weight: 700;
|
|
font-size: 12px;
|
|
line-height: 30px;
|
|
text-align: center;
|
|
border-radius: 100px;
|
|
color: #ffffff;
|
|
padding: 0 12px;
|
|
@include no-wrap;
|
|
z-index: 1;
|
|
}
|
|
}
|
|
#moveFloorBG {
|
|
position: absolute;
|
|
visibility: hidden;
|
|
border-radius: 5px;
|
|
width: 32px;
|
|
background-color: #ffffff;
|
|
z-index: 126;
|
|
}
|
|
#moveFloor {
|
|
position: absolute;
|
|
bottom: 2px;
|
|
left: 2px;
|
|
border-radius: 5px;
|
|
background-color: #dbb186;
|
|
opacity: 1;
|
|
width: 28px;
|
|
height: 28px;
|
|
z-index: 128;
|
|
}
|
|
.other-pop {
|
|
height: 36px;
|
|
background: #ad9c85;
|
|
border: 2px solid #ffffff;
|
|
border-radius: 20px;
|
|
position: fixed;
|
|
padding: 0 24px;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
color: #ffffff;
|
|
display: flex;
|
|
align-items: center;
|
|
user-select: none;
|
|
}
|
|
</style>
|
|
|