MiniMapDecorator.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <div
  3. class="mini-map-dec"
  4. :class="{
  5. mobile: isMobile,
  6. }"
  7. >
  8. <img class="roof" src="@/assets/images/mini-map-pc.png" alt="" draggable="false">
  9. <div
  10. v-if="isMobile"
  11. class="bottom-bar"
  12. >
  13. <button
  14. class="plain"
  15. @click="onClickPlain"
  16. >
  17. <img
  18. class=""
  19. src="@/assets/images/dingbufushi-mobile.png"
  20. alt=""
  21. draggable="false"
  22. >
  23. <span>平面</span>
  24. </button>
  25. <button
  26. class="model"
  27. @click="onClick3D"
  28. >
  29. <img
  30. class=""
  31. src="@/assets/images/minimoxing-mobile.png"
  32. alt=""
  33. draggable="false"
  34. >
  35. <span>三维</span>
  36. </button>
  37. </div>
  38. </div>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. }
  45. },
  46. methods: {
  47. onClickPlain(e) {
  48. document.onClickFloorPlain(e)
  49. },
  50. onClick3D(e) {
  51. document.onClickDollHouse(e)
  52. }
  53. }
  54. }
  55. </script>
  56. <style lang="less" scoped>
  57. .mini-map-dec {
  58. position: fixed;
  59. top: 28px;
  60. right: 20px;
  61. width: 237px !important;
  62. height: 149px !important;
  63. background: rgba(86,86,86,0.2);
  64. backdrop-filter: blur(10px);
  65. z-index: 998;
  66. .roof {
  67. position: absolute;
  68. left: 50%;
  69. top: 0;
  70. width: 254px;
  71. height: 18px;
  72. transform: translate(-50%, -100%);
  73. }
  74. .bottom-bar {
  75. position: absolute;
  76. left: 50%;
  77. bottom: 13px;
  78. transform: translateX(-50%);
  79. width: 100%;
  80. height: 18px;
  81. display: flex;
  82. justify-content: space-around;
  83. align-items: center;
  84. > button.plain {
  85. display: flex;
  86. align-items: center;
  87. > img {
  88. width: 19px;
  89. height: 19px;
  90. margin-right: 4px;
  91. }
  92. > span {
  93. font-size: 16px;
  94. color: #FFF0BD;
  95. }
  96. }
  97. > button.model {
  98. display: flex;
  99. align-items: center;
  100. > img {
  101. width: 23px;
  102. height: 22px;
  103. margin-right: 4px;
  104. }
  105. > span {
  106. font-size: 16px;
  107. color: #FFF0BD;
  108. }
  109. }
  110. }
  111. }
  112. .mobile.mini-map-dec {
  113. width: 159px !important;
  114. height: 142px !important;
  115. .roof {
  116. width: 170px;
  117. height: 12px;
  118. }
  119. }
  120. </style>