<template>
  <HeaderNav headerText="委托详情"></HeaderNav>
  <div class="entrust-details">
    <div class="details-name">
      <div class="name-left">
        <img src="../../../assets/icon/coin/bnb.svg" alt="" class="left-coin" />
        <div class="name-area">
          <div class="pf500 fs16 fc121212">BTC/USDT 永续</div>
          <div class="name-flag">
            <div class="flag-buy pf500 fs10 fcFFFFFF">买入</div>
            <div class="flag-cang pf500 fs10 fcFFFFFF">逐仓 20X</div>
          </div>
        </div>
      </div>
      <div class="name-right pf500 fs12 fc45B26B">完全成交</div>
    </div>
    <div class="details-first margin-top10">
      <div class="pf500 fs14 fc666666">已实现盈亏</div>
      <div class="pf500 fs12 fc45B26B">+0.2015 USDT</div>
    </div>
    <div class="details-first margin-top12">
      <div class="pf500 fs14 fc666666">委托类型</div>
      <div class="pf500 fs12 fc666666">市价</div>
    </div>
    <div class="details-first margin-top12">
      <div class="pf500 fs14 fc666666">委托总量</div>
      <div class="pf500 fs12 fc666666">12.1890 USDT</div>
    </div>
    <div class="details-first margin-top12">
      <div class="pf500 fs14 fc666666">已成交量</div>
      <div class="pf500 fs12 fc666666">0.252 USDT</div>
    </div>
    <div class="details-first margin-top12">
      <div class="pf500 fs14 fc666666">委托价格</div>
      <div class="pf500 fs12 fc666666">市价</div>
    </div>
    <div class="details-first margin-top12">
      <div class="pf500 fs14 fc666666">成交价格</div>
      <div class="pf500 fs12 fc666666">13,339.20</div>
    </div>
    <div class="details-first margin-top12">
      <div class="pf500 fs14 fc666666">手续费</div>
      <div class="pf500 fs12 fc666666">25.840030 USDT</div>
    </div>
    <div class="details-first margin-top12">
      <div class="pf500 fs14 fc666666">创建时间</div>
      <div class="pf500 fs12 fc666666">2025-11-04, 16:30</div>
    </div>
    <div class="details-first margin-top12">
      <div class="pf500 fs14 fc666666">更新时间</div>
      <div class="pf500 fs12 fc666666">2025-11-04, 16:30</div>
    </div>
    <div class="details-first margin-top12">
      <div class="pf500 fs14 fc666666">订单号</div>
      <div class="copy pf500 fs12 fcA8A8A8">
        2508050505052008502060
        <img src="../../../assets/icon/asset/CopySimple.svg" alt="" />
      </div>
    </div>
    <div class="transaction-record">
      <div class="record-text pf600 fs14 fc121212">成交记录</div>
      <div class="record-head pf500 fs12 fcA8A8A8">
        <div class="head-number">成交数量(USDT)</div>
        <div class="head-price">成交价</div>
        <div class="head-time">时间</div>
      </div>
      <div class="record-body">
        <div
          class="record-item pf500 fs12 fc333333"
          v-for="(item, index) in 3"
          :key="index">
          <div class="record-number">0.215 USDT</div>
          <div class="record-price">103.250805</div>
          <div class="record-time">2025-11-04, 16:30</div>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup>
  import HeaderNav from "../../index/components/HeaderNav.vue";
</script>
<style lang="less" scoped>
  .entrust-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;

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

    .margin-top12 {
      margin-top: 12px;
    }

    .details-name {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      margin-top: 50px;
      width: 349px;
      height: 40px;

      .name-left {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        height: 40px;

        .left-coin {
          width: 40px;
          height: 40px;
        }

        .name-area {
          display: flex;
          flex-direction: column;
          justify-content: flex-start;
          margin-left: 8px;
          height: 40px;

          .name-flag {
            display: flex;
            flex-direction: row;
            justify-content: flex-start;

            .flag-buy {
              width: 33px;
              height: 15px;
              line-height: 15px;
              text-align: center;
              background: #45b26b;
              border-radius: 3px;
            }

            .flag-cang {
              margin-left: 2px;
              width: 49px;
              height: 15px;
              line-height: 15px;
              text-align: center;
              background: #a8a8a8;
              border-radius: 3px;
            }
          }
        }
      }

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

    .details-first {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      width: 349px;
      height: 20px;

      .copy {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        height: 20px;

        img {
          margin-left: 5px;
        }
      }
    }

    .transaction-record {
      margin-top: 16px;
      width: 349px;

      .record-head {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        margin-top: 12px;
        width: 100%;

        .head-number {
          width: 130px;
          height: 18px;
          line-height: 18px;
          text-align: left;
        }

        .head-price {
          width: 100px;
          height: 18px;
          line-height: 18px;
          text-align: center;
        }

        .head-time {
          width: 119px;
          height: 18px;
          line-height: 18px;
          text-align: right;
        }
      }

      .record-body {
        width: 100%;

        .record-item {
          display: flex;
          flex-direction: row;
          justify-content: flex-start;
          margin-top: 4px;
          width: 100%;

          .record-number {
            width: 130px;
            height: 18px;
            line-height: 18px;
            text-align: left;
          }

          .record-price {
            width: 100px;
            height: 18px;
            line-height: 18px;
            text-align: center;
          }

          .record-time {
            width: 119px;
            height: 18px;
            line-height: 18px;
            text-align: right;
          }
        }
      }
    }
  }
</style>
