<template>
  <!-- 提现历史 -->
  <div class="loan-header">
    <div class="header-content pf600 fs16 fc1F2937">
      <img
        class="left-arrow-image"
        src="../../../assets/icon/index/left-arrow.svg"
        @click="toPath()" />
      提币历史
      <div class="save pf600 fs14 fcA8A8A8">
        <img src="../../../assets/icon/index/CalendarDots.svg" alt="" />
      </div>
    </div>
  </div>
  <div class="withdraw-history">
    <div class="flow-item" v-for="(item, index) in 2" :key="index">
      <div class="item-name">
        <div class="name-left pf500 fs16 fc1F2937">
          <img src="@/assets/icon/coin/bnb.svg" alt="" />BTC/USDT
        </div>
        <div class="name-right pf500 fs12 fc45B26B">成功</div>
      </div>
      <div class="item-first">
        <div class="pf500 fs14 fc666666">主网络</div>
        <div class="pf500 fs12 fc666666">ERC 20</div>
      </div>
      <div class="item-first">
        <div class="pf500 fs14 fc666666">提币金额</div>
        <div class="pf500 fs12 fc666666">1000.05 USDT</div>
      </div>
      <div class="item-first">
        <div class="pf500 fs14 fc666666">提币地址</div>
        <div class="pf500 fs12 fc666666">s2gf5s8fs05fsd85gsd200s...gs50vsvs</div>
      </div>
      <div class="item-first">
        <div class="pf500 fs14 fc666666">提币时间</div>
        <div class="pf500 fs12 fc666666">2025-11-07 12:25:12</div>
      </div>
    </div>
  </div>
</template>
<script setup>
  import { useRoute, useRouter } from "vue-router";

  const router = useRouter();

  const toPath = () => {
    router.back();
  };
</script>
<style lang="less" scoped>
  .loan-header {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 48px;
    background: #ffffff;
    overflow: hidden;

    .header-content {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      position: relative;
      width: 100%;
      height: 48px;

      .left-arrow-image {
        position: absolute;
        left: 14px;
        top: 16px;
        width: 9px;
        height: 16px;
      }

      .save {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        position: absolute;
        top: 12.3px;
        right: 16px;
        height: 24px;

        img {
          margin-right: 4px;
        }
      }
    }
  }

  .withdraw-history {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-top: 48px;

    .flow-item {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      margin-top: 10px;
      width: 345px;
      height: 170px;
      border-radius: 8px;
      border: 1px solid #ebebeb;

      .item-name {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 15px;
        width: 320px;
        height: 24px;

        .name-left {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
          height: 24px;

          img {
            margin-right: 4px;
            width: 24px;
            height: 24px;
          }
        }

        .name-right {
          width: 58px;
          height: 24px;
          line-height: 24px;
          border-radius: 5px;
          background: #45b26b1a;
          text-align: center;
        }
      }

      .item-first {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        width: 320px;
        height: 20px;
      }
    }
  }
</style>
