<template>
  <div>
    <van-overlay :show="value" :duration="0.1" @click="showQr = false">
      <div class="modal qr-modal" @click.stop>
        <img src="../assets/img/close.png" class="close" @click="$emit('change', false)" />
        <div>
          <img src="../assets/img/mpqr.jpg" class="qr" />
          <div class="text">
            流量查询、订购退订、人工客服<br />
            尽在“联通畅视”小程序
            <!-- 流量查询及充值、订购记录、人工客服<br />请关注“联通畅视”公众号 -->
          </div>
        </div>
      </div>
    </van-overlay>
  </div>
</template>
<script>
export default {
  model: { prop: "value", event: "change" },
  props: { value: Boolean },
};
</script>
<style lang="scss" scoped>
.qr-modal {
  .qr {
    width: 294px;
    height: 294px;
    display: block;
    margin: 85px auto 0;
  }

  .text {
    margin: 28px 0 77px;
    text-align: center;
    font-size: 26px;
    line-height: 50px;
    font-weight: bold;
    color: #222222;
  }
}
.modal {
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 333px;
  transform: translateX(-50%);
  width: 530px;
  background-color: #fff;
  border-radius: 8px;

  .close {
    width: 80px;
    height: 80px;
    position: absolute;
    bottom: -130px;
    left: 50%;
    transform: translateX(-50%);
  }

  .top {
    width: 100%;
    height: 96px;
  }

  .logo {
    width: 92px;
    height: 50px;
    position: absolute;
    top: 22px;
    left: 37px;
  }
}
</style>