<template>
  <!-- 签字 -->
  <HeaderNav headerText="签字"></HeaderNav>
  <div class="signature">
    <div class="signature-area">
      <div class="title pf600 fs20 fc121212">签署您的名字</div>
      <!-- 签字区域 -->
      <div class="content"></div>
    </div>
    <div class="submit pf600 fs14 fcFFFFFF" @click="pendingReviewFlag = true">提交</div>
    <div class="signature-clear pf600 fs16 fcDF384C">重签</div>
  </div>
  <PendingReview
    v-show="pendingReviewFlag"
    @pendingReviewClose="pendingReviewClose"></PendingReview>
</template>
<script setup>
  import HeaderNav from "../components/HeaderNav.vue";
  import PendingReview from "../dialog/PendingReview.vue";
  import { ref } from "vue";

  const pendingReviewFlag = ref(false);
  const pendingReviewClose = () => {
    pendingReviewFlag.value = false;
  };
</script>
<style lang="less" scoped>
  .signature {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-top: 48px;
    width: 100%;

    .signature-area {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      margin-top: 50px;
      width: 345px;
      height: 407px;
      border-radius: 16px;
      border: 1px solid #a8a8a8;

      .title {
        margin-top: 27px;
        line-height: 24px;
        letter-spacing: 0.2px;
      }

      .content {
        width: 311px;
        height: 272px;
        border-bottom: 1px solid rgba(168, 168, 168, 0.3);
      }
    }

    .submit {
      margin: 0 auto;
      margin-top: 28px;
      width: 311px;
      height: 40px;
      line-height: 40px;
      text-align: center;
      border-radius: 100px;
      background: #df384c;
      letter-spacing: 0.2px;
    }

    .signature-clear {
      margin-top: 28px;
    }
  }
</style>
