<template>
  <div class="welcome">
    <div class="mobileBg" v-if="isMobile"></div>
    <iframe
      v-else
      src="https://zzbbh.4dage.com/SWKK/show.html?id=WK1676144701759062016&vr=fd720_7kWYgznaO"
      frameborder="0"
    ></iframe>
    <div class="btn" @click.stop="$emit('close')">
      <img src="../../assets/img/home/homeBtn.png" alt="" />
      <p>360环顾</p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {},
  mounted() {},
};
</script>

<style lang="less">
.welcome {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 11001;
  font-size: 0;
  background-color: black;
  // background-image: url('../../assets/img/home/homeBac.jpg');
  // background-size: 100% 100%;
  iframe {
    width: 100%;
    height: 100%;
  }

  .btn {
    position: absolute;
    z-index: 10;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    & > img {
      width: 246px;
    }
    & > p {
      color: #d6b970;
      font-size: 24px;
      font-weight: 700;
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  .mobileBg {
    width: 100%;
    height: 100%;
    background-image: url('../../assets/img/mobileBg.jpg');
    background-size: 100% 100%;
  }

  // 移动端
  @media screen and (max-width: 1000px) {
    .btn {
      bottom: 6%;
      & > img {
        width: 140px;
      }
      & > p {
        font-size: 16px;
      }
    }
  }
}
</style>