<template>
  <div class="follow_dialog">
    <div class="follow_img" v-if="isKefu==1">
      <img src="https://cos-minigame.wxatech.com/common/study_contact_kefu.jpg" alt="">
    </div>
    <div class="follow_img" v-else-if="isKefu==2">
      <img src="https://cos-minigame.wxatech.com/common/bushudaka1.jpg" alt="">
    </div>
    <div class="follow_img" v-else-if="isKefu==3">
      <img src="../images/common/go_xcx.jpg">
    </div>
    <div class="close_btn" @click="closeDialog">
      <img src="../assets/ic_close3.png" alt="">
    </div>
  </div>
</template>

<script>
  export default {
    name: "FollowDialog",
    props: ["isKefu"],
    methods: {
      closeDialog() {
        this.$emit("close")
      }
    }
  }
</script>

<style scoped>
  .follow_dialog {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid transparent;
    z-index: 100;
    text-align: center;
  }

  .follow_img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6.4rem;
    margin-top: -4.5rem;
    margin-left: -3.2rem;
  }

  .follow_img img {
    width: 100%;
  }

  .close_btn {
    width: .7rem;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: 4rem;
    margin-left: -.35rem;
  }

  .close_btn img {
    width: 100%;
  }

</style>
