<template>
  <x-prompt :visible="visible"
            class="phone-dialog__wrap"
            @close="confirm">
    <div class="dialog-content">
      <img src="../../../assets/success.png"
           alt=""
           class="dialog-img" />
      <div class="content-info">
        <p class="bind-title">绑定成功</p>
        <p class="bind-text">手机号绑定成功，赠送您<i>100</i>书币</p>
      </div>
      <button class="close"
              @click="confirm">知道了</button>
    </div>
  </x-prompt>
</template>

<script>
import prompt from "../prompt.vue";
export default {
  components: { "x-prompt": prompt }
};
</script>

<style lang="scss" scoped>
.dialog-content {
  .dialog-img {
    position: relative;
    width: 80px;
    top: 50%;
    transform: translate(0%, -50%);
  }

  .content-info {
    text-align: center;
    font-size: 16px;
    color: #666;
    line-height: 1;
    margin-bottom: 40px;

    .bind-title {
      font-size: 30px;
      font-weight: bold;
      margin-bottom: 15px;
    }

    i {
      font-style: normal;
      color: #ff7130;
      font-weight: bold;
      font-size: 20px;
    }
  }

  .close {
    outline: none;
    border: none;
    width: 175px;
    line-height: 40px;
    font-size: 15px;
    color: #fff;
    background: #ff7130;
    border-radius: 6px;
    margin: 0 auto 26px;
    text-align: center;
  }
}
</style>

<style lang="scss">
.phone-dialog__wrap {
  .wrap {
    overflow: inherit !important;
  }
}
</style>

