<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="electricit-bill">
    <div class="bill-item" v-for="(item, index) in 3" :key="index">
      <div class="item-balance">
        <div class="pf500 fs14 fc666666">缴费金额</div>
        <div class="pf500 fs12 fc666666">1000.05 USDT</div>
      </div>
      <div class="item-time">
        <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;
        }
      }
    }
  }

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

    .bill-item {
      margin-top: 10px;
      padding: 0 10px;
      width: 345px;
      height: 75px;
      border-radius: 8px;
      border: 1px solid #ebebeb;
      box-sizing: border-box;

      .item-balance {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
        height: 18px;
      }

      .item-time {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 11px;
        height: 18px;
      }
    }
  }
</style>
