<template>
  <div class="pay_fail_modal">
    <div class="content">
      <img class="closeBtn" src="../assets/ic_close.png" alt="" @click="closeModal">
      <div class="title">支付遇到问题？</div>
      <div class="modal_tip">可长按识别下方二维码</div>
      <div class="modal_tip">联系客服小姐姐立即为你解决哦~</div>
      <div class="qrcode">
        <img src="../assets/qrcode.jpg" alt="">
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "PayFailModal",
    methods:{
      closeModal() {
        this.$emit("close")
      }
    }
  }
</script>

<style scoped>
  .pay_fail_modal {
    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;
  }

  .content {
    width: 6.4rem;
    height: 7.5rem;
    background: #ffffff;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -3.2rem;
    margin-top: -3.75rem;
  }

  .closeBtn{
    width: .3rem;
    position: absolute;
    right: .2rem;
    top: .2rem;
  }

  .title {
    font-size: .4rem;
    font-weight: bold;
    margin: .6rem 0;
  }

  .modal_tip {
    font-size: .28rem;
    color: rgba(90, 90, 90, 1);
    margin-bottom: .2rem;
  }

  .qrcode{
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .qrcode img {
    width: 3.86rem;
    display: block;
  }
</style>
