<template>
  <!-- 充值 -->
  <HeaderNav headerText="充值"></HeaderNav>
  <div class="recharge-index">
    <div class="qr-code">
      <div class="code-name pf500 fs18 fc1F2937">
        <img src="../../../assets/icon/coin/bnb.svg" alt="" />
        Bitcoin
      </div>
      <!-- 二维码 -->
      <div class="code-area"></div>
      <div class="save-code pf500 fs14 fcDF384C">保存二维码</div>
    </div>
    <div class="recharge-address">
      <div class="address-left">
        <div class="left-title pf400 fs14 fc2D2D2D">充值地址</div>
        <div class="left-value pf400 fs14 fc666666">0x92c38961f55a0e2859e301162fb…</div>
      </div>
      <div class="address-right">
        <img src="@/assets/icon/index/CopySimple.svg" alt="" />
      </div>
    </div>
    <div class="card-type">
      <div class="card-text pf500 fs14 fc333333">请选择主网络</div>
      <div class="type-select pf500 fs14 fc333333">
        ERC 20
        <img src="../../../assets/icon/market/bottom-arrow.svg" alt="" />
      </div>
    </div>
    <div class="card-number">
      <div class="card-text pf500 fs14 fc333333">充值金额</div>
      <div class="number-input">
        <input
          type="text"
          class="input pf400 fs14 fc333333"
          placeholder="请输入充值金额" />
      </div>
    </div>
    <div class="submit pf600 fs14 fcFFFFFF" @click="goChangeCoin">充值</div>
  </div>
</template>
<script setup>
  import HeaderNav from "../components/HeaderNav.vue";
  import { useRoute, useRouter } from "vue-router";

  const router = useRouter();

  const goChangeCoin = () => {
    router.push("/rechargeChangeCoin");
  };
</script>
<style lang="less" scoped>
  .recharge-index {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-top: 48px;
    width: 100%;

    .qr-code {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      width: 152px;

      .code-name {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        height: 35px;

        img {
          margin-right: 11px;
          width: 35px;
          height: 35px;
        }
      }

      .code-area {
        margin-top: 20px;
        width: 152px;
        height: 152px;
      }

      .save-code {
        margin-top: 9.69px;
        height: 18px;
        line-height: 18px;
      }
    }

    .recharge-address {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      margin-top: 29px;
      width: 345px;
      height: 69px;
      border-radius: 6px;
      background: #f5f5f5;

      .address-left {
        margin-left: 11px;
        height: 42px;

        .left-title {
          height: 20px;
          line-height: 20px;
        }

        .left-value {
          width: 248px;
          height: 22px;
          line-height: 22px;
        }
      }

      .address-right {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-left: 45px;
        width: 33px;
        height: 33px;
        border-radius: 6px;
        background: #ffffff;

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

    .card-type {
      margin-top: 10px;
      width: 345px;

      .type-select {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 5px;
        padding: 0 11px;
        width: 345px;
        height: 45px;
        border-radius: 6px;
        background: #f5f5f5;
        box-sizing: border-box;

        img {
          width: 12px;
          height: 8px;
        }
      }
    }

    .card-number {
      margin-top: 10px;
      width: 345px;

      .number-input {
        margin-top: 5px;
        width: 345px;
        height: 45px;

        .input {
          padding-left: 11px;
          width: 100%;
          height: 100%;
          box-sizing: border-box;
          border-radius: 6px;
          border: none;
          outline: none;
          background: #f5f5f5;
        }
      }
    }

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