<template>
  <div
    class="ShareModal"
    @click="closeModal"
  >
    <img class="arrow"
      src="../assets/share_tip_arrow.png"
      alt=""
    >
    <img class="tip"
      src="../assets/share_tip.png"
      alt=""
    >

  </div>
</template>

<style>
div.ShareModal {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid transparent;
  z-index: 20000;
}

.tip {
  position: absolute;
  width: 3rem;
  height: 1.55rem;
  top: 1.2rem;
  right: 1.2rem;
}

  .arrow{
    position: absolute;
    width: 1.2rem;
    height: 0.95rem;
    top: 0.1rem;
    right: 0.3rem;
    animation: arrowMove 1s infinite;
  }

  @keyframes arrowMove {
    0%{
      top: 0.1rem;
      right: 0.3rem;
    }
    50%{
      top: 0.3rem;
      right: 0.5rem;
    }
    0%{
      top: 0.1rem;
      right: 0.3rem;
    }
  }
</style>

<script>
export default {
  name: "ShareModal",
  data() {
    return {};
  },
  methods: {
    // 关闭弹窗
    closeModal() {
      this.$emit("close", true);
    }
  }
};
</script>
