<template>
  <!-- <div class="tag-layer" @click.stop> -->

  <div class="telephonecon">
    <div class="txtbody">
      <div class="theader">
        <span>{{ $t("common.phone") }}</span>
        <!-- <ui-icon
          class="close"
          type="player_close"
          @click.stop="close"
        ></ui-icon> -->
      </div>
      <div class="telephone">
        <img :src="require(`@/assets/images/icon/telephone.svg`)" alt="" />
        <span>{{ currentTag.phoneInfo.phone }}</span>
      </div>
    </div>
  </div>
  <!-- </div> -->
</template>

<script setup>
import {
  reactive,
  defineEmits,
  onBeforeMount,
  onMounted,
  ref,
  watchEffect,
  computed,
  watch,
  nextTick,
} from "vue";
import { useStore } from "vuex";
const store = useStore();

const currentTag = computed(() => store.getters["tags/currentTag"]);

const close = () => {
  store.commit("functions/setShowTelephone", false);
};
</script>

<style lang="scss" scoped>
.tag-layer {
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  top: 0;
  position: fixed;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);

  .telephonecon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;

    .txtbody {
      width: 240px;
      background: rgba(0, 0, 0, 0.6);
      border-radius: 10px;
      font-size: 18px;
      color: #fff;
      padding: 26px;
      max-height: calc(100vh - 100px);
      overflow-y: auto;
      .theader {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        .close {
          cursor: pointer;
        }
      }

      .telephone {
        display: flex;
        align-items: center;
        margin-left: -10px;
        > span {
          margin-top: 6px;
          display: inline-block;
          font-size: 14px;
        }
      }
    }

    .title {
      position: absolute;
      left: 20px;
      top: 20px;
      height: 36px;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 0 16px;
      background: rgba(0, 0, 0, 0.6);
      border-radius: 20px;
      color: #fff;
      font-size: 14px;

      > i {
        margin-right: 4px;
      }
    }
  }
}
</style>
