123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- <template>
- <div class="birdview">
- <img
- class="map"
- :src="require(`@/assets/images/resource/map/map.jpg`)"
- alt=""
- />
- <div
- class="tag"
- @click="onBack"
- :style="{
- top: tagData?.top,
- left: tagData?.left,
- }"
- >
- <img
- :src="require(`@/assets/images/resource/map/ico_address_active.png`)"
- alt=""
- />
- </div>
- <img
- class="close"
- @click="onBack"
- :src="require(`@/assets/images/resource/map/btn_back.png`)"
- alt=""
- />
- <!-- 地图区域 -->
- <!-- 壹号公馆 -->
- <img
- v-show="curArea == 'r_NHFYicvn'"
- class="img-yihao"
- src="../../assets/images/resource/map/img_yihao.png"
- alt=""
- />
- <!-- 客房区域 -->
- <img
- v-show="curArea == 'r_bwamjaD1'"
- class="img-kefang"
- src="../../assets/images/resource/map/img_kefang.png"
- alt=""
- />
- <img
- v-show="curArea == 'r_bwamjaD1'"
- class="img-kefang2"
- src="../../assets/images/resource/map/img_kefang2.png"
- alt=""
- />
- <!-- 酒店公区 -->
- <img
- v-show="curArea == '100'"
- class="img-jiudian"
- src="../../assets/images/resource/map/img_jiudian.png"
- alt=""
- />
- <div class="shoqi" @click="isAside = true">
- <img :src="require(`@/assets/images/resource/map/ico_up.png`)" alt="" />
- </div>
- <div class="raside" :class="{ show: isAside }">
- <raside @close="isAside = false" />
- </div>
- </div>
- </template>
- <script setup>
- import { computed, onMounted, ref } from "vue";
- import { useRouter, useRoute } from "vue-router";
- import { tag_position } from "@/data";
- import raside from "./raside.vue";
- import appStore from "@/store";
- const router = useRouter();
- let isAside = ref(true);
- const route = useRoute();
- const tagData = computed(() => tag_position[route.params.id]);
- let onBack = (data) => {
- router.replace({ name: "scene", params: { id: route.params.id } });
- };
- const curArea = ref("");
- onMounted(() => {
- curArea.value = route.params.area;
- console.log(route.params.area,curArea.value);
- });
- </script>
- <style lang="scss" scoped>
- $w: 8px;
- // 区域
- .img-yihao {
- position: absolute;
- height: 200px !important;
- top: 417px;
- left: 1067px;
- }
- .img-kefang {
- position: absolute;
- height: 220px !important;
- left: 585px;
- top: 115px;
- }
- .img-kefang2 {
- height: 350px !important;
- position: absolute;
- bottom: -20px;
- left: 45%;
- }
- .img-jiudian {
- position: absolute;
- left: 677px;
- height: 250px !important;
- top: 325px;
- }
- .birdview {
- width: 100%;
- height: 100%;
- z-index: 400;
- display: flex;
- justify-content: center;
- position: relative;
- > img {
- height: 100%;
- }
- .map {
- width: 100%;
- }
- .close {
- width: 60px;
- height: 60px;
- position: absolute;
- top: 28px;
- left: 20px;
- cursor: pointer;
- z-index: 99;
- }
- .shoqi {
- width: 60px;
- height: 60px;
- position: absolute;
- top: 28px;
- right: 40px;
- cursor: pointer;
- z-index: 99;
- border-radius: 50%;
- background: rgba(229, 220, 203, 0.3);
- backdrop-filter: blur(46px);
- text-align: center;
- display: flex;
- align-items: center;
- justify-content: center;
- > img {
- width: 24px;
- }
- }
- .tag {
- position: absolute;
- cursor: pointer;
- display: inline-block;
- text-align: center;
- top: 50%;
- left: 50%;
- width: 40px;
- z-index: 99;
- // background: #000;
- > img {
- width: 100%;
- display: inline-block;
- position: absolute;
- left: 50%;
- transform: translate(-50%, 0);
- top: 45%;
- }
- }
- .raside {
- position: absolute;
- right: -368px;
- top: 0;
- z-index: 101;
- width: 368px;
- height: 100%;
- background: rgba(229, 220, 203, 0.3);
- backdrop-filter: blur(46px);
- transition: ease 0.3s all;
- &.show {
- right: 0;
- }
- }
- }
- @keyframes upanddown {
- 0% {
- transform: translate(-50%, 0);
- }
- 50% {
- transform: translate(-50%, -16px);
- }
- 100% {
- transform: translate(-50%, 0);
- }
- }
- </style>
|