<template>
  <!-- 理财 -->
  <div class="financial-management">
    <div class="asset-total">
      <div class="asset-title pf400 fs16 fc1F2937">理财总资产(USDT)</div>
      <div class="asset-number pf600 fs32 fc1F2937">1,125,158.00</div>
      <div class="asset-approximately pf400 fs16 fcDF384C">≈35,458.00</div>
      <div class="asset-revenue">
        <div class="asset-left">
          <div class="text pf400 fs12 fc6A7187">昨日收益(USDT)</div>
          <div class="number pf400 fs16 fc061237">5,678.00</div>
        </div>
        <div class="asset-right">
          <div class="text pf400 fs12 fc6A7187">累计收益(USDT)</div>
          <div class="number pf400 fs16 fc061237">5,678.00</div>
        </div>
      </div>
    </div>
    <div class="submit pf600 fs14 fcFFFFFF">理财</div>
    <div class="notifi-classifi">
      <div class="pf600 fs14 fc121212" @click="currentTab = 0">进行中</div>
      <div class="sys-notifi pf600 fs14 fcA8A8A8" @click="currentTab = 1">已结束</div>
    </div>
    <div class="conduct-ing" v-if="currentTab == 0">
      <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 pf500 fs14 fc1F2937">
              <div>Bitcoin定期</div>
              <div>申购数量</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>
    <div class="finish-end" v-if="currentTab == 1">
      <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 pf500 fs14 fc1F2937">
              <div>Bitcoin定期</div>
              <div>申购数量</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>
    </div>
  </div>
</template>
<script setup>
  import { ref } from "vue";

  const currentTab = ref(0);
</script>
<style lang="less" scoped>
  .financial-management {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;

    .asset-total {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      margin-top: 16px;
      width: 343px;

      .asset-title {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        height: 22px;

        .eye-close {
          margin-left: 5px;
          width: 16px;
          height: 16px;
        }
      }

      .asset-number {
        margin-top: 3px;
        height: 44px;
        line-height: 44px;
      }

      .asset-approximately {
        margin-top: 1px;
        height: 22px;
        line-height: 22px;
      }

      .asset-revenue {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 6px;
        height: 44px;

        .asset-left,
        .asset-right {
          height: 100%;

          .text {
            height: 20px;
            line-height: 20px;
            letter-spacing: 0.3px;
          }

          .number {
            margin-top: 3px;
            height: 24px;
            line-height: 24px;
          }
        }
      }
    }

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

    .notifi-classifi {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: flex-end;
      margin-top: 15px;
      width: 349px;
      height: 24px;

      .sys-notifi {
        margin-left: 61px;
      }
    }

    .conduct-ing {
      width: 345px;

      .coin-item {
        padding-left: 19px;
        padding-right: 11px;
        margin-top: 10px;
        width: 100%;
        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;
        }
      }
    }

    .finish-end {
      width: 345px;

      .coin-item {
        padding-left: 19px;
        padding-right: 11px;
        margin-top: 10px;
        width: 100%;
        height: 158px;
        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>
