<template>
  <div class="not-account">
    <div class="apply-mask" @click="emits('paymentAccountClose')"></div>
    <div class="apply-content">
      <div class="slide-line"></div>
      <div class="account-not" v-if="current == 0">
        <div class="not-item pf600 fs16 fc333333" v-for="(item, index) in 2" :key="index">
          暂无银行卡账号
          <div class="add pf500 fs12 fcFFFFFF">添加</div>
        </div>
      </div>
      <div class="account-have" v-else>
        <div class="have-item" v-for="(item, index) in 2" :key="index">
          <div class="have-left">
            <div class="left-text pf600 fs16 fcDF384C">
              银行卡&nbsp;&nbsp;<span class="pf500 fs12 fcA8A8A8">删除</span>
            </div>
            <div class="left-bumber pf400 fs14 fcDF384C">1502 0802 0802 0820 252</div>
          </div>
          <div class="have-right">
            <img src="@/assets/icon/asset/Checkbox Only.svg" alt="" />
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup>
  import { ref } from "vue";

  const emits = defineEmits(["paymentAccountClose"]);

  const current = ref(0);
</script>
<style lang="less" scoped>
  .not-account {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    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: 300px;
      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);
      }

      .account-not {
        margin-top: 29px;

        .not-item {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
          padding: 0 16px;
          margin-top: 12px;
          width: 345px;
          height: 80px;
          border-radius: 16px;
          border: 1px solid #a8a8a8;
          box-sizing: border-box;

          &:first-child {
            margin-top: 0;
          }

          .add {
            width: 76px;
            height: 24px;
            line-height: 24px;
            text-align: center;
            border-radius: 5px;
            background: #df384c;
          }
        }
      }

      .account-have {
        margin-top: 29px;

        .have-item {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
          margin-top: 12px;
          padding: 0 16px;
          width: 345px;
          height: 80px;
          border-radius: 16px;
          border: 1px solid #a8a8a8;
          box-sizing: border-box;

          &:first-child {
            margin-top: 0;
          }
        }

        .have-left {
          .left-text {
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: center;
            height: 22px;
          }

          .left-bumber {
            height: 22px;
            line-height: 22px;
          }
        }

        .have-right {
          width: 24px;
          height: 24px;
        }
      }
    }
  }
</style>
