ModeSelectorMobile.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <div class="mode-selector-mobile">
  3. <button
  4. @click="onClickQuanjingmanyou"
  5. >
  6. <img
  7. class="manyou"
  8. src="@/assets/images/quanjingmanyou-sub.png"
  9. alt=""
  10. draggable="false"
  11. >
  12. <span>漫游</span>
  13. </button>
  14. <button
  15. @click="onClickDingbufushi"
  16. >
  17. <img
  18. class="pingmian"
  19. src="@/assets/images/dingbufushi-mobile.png"
  20. alt=""
  21. draggable="false"
  22. >
  23. <span>平面</span>
  24. </button>
  25. <button
  26. @click="onClickMinimoxing"
  27. >
  28. <img
  29. class="sanwei"
  30. src="@/assets/images/minimoxing-mobile.png"
  31. alt=""
  32. draggable="false"
  33. >
  34. <span>三维</span>
  35. </button>
  36. </div>
  37. </template>
  38. <script>
  39. export default {
  40. methods: {
  41. onClickQuanjingmanyou(e) {
  42. document.onMousedownInside(e)
  43. },
  44. onClickMinimoxing(e) {
  45. document.onClickDollHouse(e)
  46. },
  47. onClickDingbufushi(e) {
  48. document.onClickFloorPlain(e)
  49. },
  50. }
  51. }
  52. </script>
  53. <style lang="less" scoped>
  54. .mode-selector-mobile {
  55. padding: 3px;
  56. background: rgba(0, 0, 0, 0.5);
  57. border-radius: 5px 5px 5px 5px;
  58. display: flex;
  59. align-items: center;
  60. > button {
  61. width: 75px;
  62. height: 37px;
  63. // background: rgba(161,14,12,0.7);
  64. border-radius: 2px 2px 2px 2px;
  65. display: flex;
  66. align-items: center;
  67. justify-content: center;
  68. > img.manyou {
  69. width: 8px;
  70. height: 20px;
  71. margin-right: 6px;
  72. }
  73. > img.pingmian {
  74. width: 19px;
  75. height: 19px;
  76. margin-right: 4px;
  77. }
  78. > img.sanwei {
  79. width: 23px;
  80. height: 22px;
  81. margin-right: 4px;
  82. }
  83. > span {
  84. font-size: 14px;
  85. color: #FFF1BD;
  86. }
  87. }
  88. }
  89. .mobile[view-mode='panorama'] {
  90. .mode-selector-mobile {
  91. > button:nth-of-type(1) {
  92. background: rgba(161,14,12,0.7);
  93. }
  94. }
  95. }
  96. .mobile[view-mode='floor-plain'] {
  97. .mode-selector-mobile {
  98. > button:nth-of-type(2) {
  99. background: rgba(161,14,12,0.7);
  100. }
  101. }
  102. }
  103. .mobile[view-mode='doll-house'] {
  104. .mode-selector-mobile {
  105. > button:nth-of-type(3) {
  106. background: rgba(161,14,12,0.7);
  107. }
  108. }
  109. }
  110. </style>