telephone.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <div class="tag-layer" @click.stop>
  3. <div class="telephonecon">
  4. <div class="txtbody">
  5. <div class="theader">
  6. <span>{{$t('common.phone')}}</span>
  7. <ui-icon class="close" type="player_close" @click.stop="close"></ui-icon>
  8. </div>
  9. <div class="telephone">
  10. <img :src="require(`@/assets/images/icon/telephone.svg`)" alt="" />
  11. <span>{{customTelephone.value}}</span>
  12. </div>
  13. </div>
  14. </div>
  15. </div>
  16. </template>
  17. <script setup>
  18. import { reactive, defineEmits, onBeforeMount, onMounted, ref, watchEffect, computed, watch, nextTick } from "vue";
  19. import { useStore } from "vuex";
  20. const store = useStore();
  21. const metadata = computed(() => store.getters["scene/metadata"]);
  22. const customTelephone = computed(() => store.getters["scene/customTelephone"]);
  23. const close = () => {
  24. store.commit("functions/setShowTelephone", false);
  25. };
  26. </script>
  27. <style lang="scss" scoped>
  28. .tag-layer {
  29. width: 100vw;
  30. height: 100vh;
  31. z-index: 10000;
  32. top: 0;
  33. position: fixed;
  34. left: 0;
  35. background-color: rgba(0, 0, 0, 0.8);
  36. backdrop-filter: blur(10px);
  37. .telephonecon {
  38. display: flex;
  39. align-items: center;
  40. justify-content: center;
  41. height: 100%;
  42. width: 100%;
  43. .txtbody {
  44. width: 240px;
  45. background: rgba(0, 0, 0, 0.6);
  46. border-radius: 10px;
  47. font-size: 18px;
  48. color: #fff;
  49. padding: 26px;
  50. max-height: calc(100vh - 100px);
  51. overflow-y: auto;
  52. .theader {
  53. display: flex;
  54. justify-content: space-between;
  55. align-items: center;
  56. margin-bottom: 10px;
  57. .close{
  58. cursor: pointer;
  59. }
  60. }
  61. .telephone{
  62. display: flex;
  63. align-items: center;
  64. margin-left: -10px;
  65. >span{
  66. margin-top: 6px;
  67. display: inline-block;
  68. font-size: 14px;
  69. }
  70. }
  71. }
  72. .title {
  73. position: absolute;
  74. left: 20px;
  75. top: 20px;
  76. height: 36px;
  77. line-height: 36px;
  78. padding: 0 30px;
  79. background: rgba(0, 0, 0, 0.6);
  80. border-radius: 20px;
  81. color: #fff;
  82. font-size: 14px;
  83. >i {
  84. margin-right: 4px;
  85. }
  86. }
  87. }
  88. }
  89. </style>