<template>
  <div class="update-info">
    <div class="apply-mask" @click="emits('updateInfoClose')"></div>
    <div class="apply-content">
      <div class="slide-line"></div>
      <div class="apply-text pf600 fs18 fc121212">编辑资料</div>
      <img
        src="../../../assets/img/index/user/default-head.png"
        class="apply-img"
        alt="" />
      <div class="update-btn pf500 fs12 fcFFFFFF">编辑</div>
      <div class="info-name">
        <div class="name-text pf500 fs14 fc333333">
          昵称
          <input type="text" class="input pf400 fs16 fc4B5563" placeholder="昵称内容" />
        </div>
      </div>
      <div class="sure-btn pf600 fs14 fcFFFFFF">保存</div>
    </div>
  </div>
</template>
<script setup>
  const props = defineProps(["updateInfoFlag"]);
  const emits = defineEmits(["updateInfoClose"]);
</script>
<style lang="less" scoped>
  .update-info {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    min-height: 100vh;

    .apply-mask {
      position: fixed;
      left: 0;
      top: 0;
      z-index: -1;
      width: 100%;
      min-height: 100vh;
      background: rgba(0, 0, 0, 0.5);
    }

    .apply-content {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      width: 375px;
      height: 432px;
      background: #ffffff;
      border-radius: 24px 24px 0px 0px;

      .slide-line {
        margin-top: 12px;
        width: 32px;
        height: 4px;
        border-radius: 2px;
        opacity: 0.4;
        background: rgba(0, 0, 0, 0.5);
      }

      .apply-text {
        margin-top: 21px;
        width: 345px;
        height: 24px;
        line-height: 24px;
        letter-spacing: 0.2px;
      }

      .apply-img {
        margin-top: 28px;
        width: 100px;
        height: 100px;
      }

      .update-btn {
        margin-top: 8px;
        width: 60px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        background: #df384c;
        border-radius: 5px;
      }

      .info-name {
        margin-top: 12px;
        width: 345px;

        .input {
          margin-top: 5px;
          padding-left: 11px;
          width: 345px;
          height: 45px;
          border-radius: 6px;
          box-sizing: border-box;
          background: #f5f5f5;
          outline: none;
          border: none;
        }
      }

      .sure-btn {
        margin-top: 35px;
        width: 311px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        border-radius: 100px;
        background: #df384c;
      }
    }
  }
</style>
