<template>
  <!-- 我的理财 -->
  <HeaderNav headerText="我的理财"></HeaderNav>
  <div class="my-financial">
    <div class="coin-item" v-for="(item, index) in 2" :key="index">
      <div class="item-name">
        <img src="@/assets/icon/coin/bnb.svg" alt="" />
        <div class="item-info">
          <div class="info-top pf600 fs14 fc1F2937">
            <div>Bitcoin定期</div>
            <div class="pf400 fs12">申购数量</div>
          </div>
          <div class="info-bottom">
            <div class="pf400 fs10 fcA9A9A9">定期</div>
            <div class="pf600 fs14 fc1F2937">1,125,158.00</div>
          </div>
        </div>
      </div>
      <div class="item-line"></div>
      <div class="item-use pf500 fs12 margin-top10">
        <div class="fcA8A8A8">理财周期</div>
        <div class="fcDF384C">15 天</div>
      </div>
      <div class="item-use pf500 fs12 margin-top4">
        <div class="fcA8A8A8">预估每日收益</div>
        <div class="fc767676">0.45 USDT</div>
      </div>
      <div class="item-use pf500 fs12 margin-top4">
        <div class="fcA8A8A8">预估总收益</div>
        <div class="fc767676">0.45 USDT</div>
      </div>
      <div class="item-use pf500 fs12 margin-top4">
        <div class="fcA8A8A8">收益率</div>
        <div class="fc767676">0.16%</div>
      </div>
      <div class="conduct-btn pf600 fs14 fcFFFFFF">进行中</div>
    </div>
  </div>
</template>
<script setup>
  import HeaderNav from "../components/HeaderNav.vue";
</script>
<style lang="less" scoped>
  .my-financial {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-top: 48px;
    width: 100%;

    .coin-item {
      padding-left: 19px;
      padding-right: 11px;
      margin-top: 10px;
      width: 345px;
      height: 209px;
      border-radius: 8px;
      border: 1px solid #ebebeb;
      box-sizing: border-box;

      .item-name {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 12.5px;
        width: 100%;
        height: 34px;

        img {
          width: 32px;
          height: 32px;
        }

        .item-info {
          width: calc(345px - 40px - 30px);
          height: 34px;

          .info-top {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            height: 20px;
          }

          .info-bottom {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            height: 14px;
          }
        }
      }

      .item-line {
        margin-top: 10px;
        width: 100%;
        height: 1px;
        background: #e9e9e9;
      }

      .margin-top10 {
        margin-top: 10px;
      }

      .margin-top4 {
        margin-top: 4px;
      }

      .item-use {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 18px;
      }

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