<template>
  <div>
    <div class="title">
      <!-- 汇款信息 -->
      {{ $t('fund.l84') }}
    </div>
    <div class="box">
      <div class="sub">
        <!-- 收款银行信息 -->
        {{ $t('fund.l85') }}
      </div>
      <div class="row">
        <div class="lable">
          <!-- 收款银行名称 -->
          {{ $t('fund.l2') }}
        </div>
        <div class="name">
          {{ info.from.bankName }}
          <img
            class="copy"
            @click="copyText(info.from.bankName)"
            src="/img/icon/copy.png"
            alt="极度证券"
          />
        </div>
      </div>
      <div class="row">
        <div class="lable">
          <!-- 收款银行地址 -->
          {{ $t('fund.l8') }}
        </div>
        <div class="name">
          {{ info.from.bankAddress }}
          <img
            class="copy"
            @click="copyText(info.from.bankAddress)"
            src="/img/icon/copy.png"
            alt="极度证券"
          />
        </div>
      </div>
      <div class="row" v-if="info.from.swift">
        <div class="lable">SWIFT</div>
        <div class="name">
          {{ info.from.swift }}
          <img
            class="copy"
            @click="copyText(info.from.swift)"
            src="/img/icon/copy.png"
            alt="极度证券"
          />
        </div>
      </div>
    </div>
    <div class="box">
      <div class="sub">
        <!-- 收款人信息 -->
        {{ $t('fund.l86') }}
      </div>
      <div class="row">
        <div class="lable lab1">
          <!-- 收款人名称 -->
          {{ $t('fund.l4') }}
        </div>
        <div class="name name1">
          {{ info.from.name }}
          <img
            class="copy"
            @click="copyText(info.from.name)"
            src="/img/icon/copy.png"
            alt="极度证券"
          />
        </div>
      </div>
      <div class="row">
        <div class="lable lab1">
          <!-- 收款人账号 -->
          {{ $t('fund.l87') }}
        </div>
        <div class="name name1">
          {{ info.from.account }}
          <img
            class="copy"
            @click="copyText(info.from.account)"
            src="/img/icon/copy.png"
            alt="极度证券"
          />
        </div>
      </div>
      <div class="row" v-if="info.from.AccountType">
        <div class="lable lab1">
          <!-- 账号类型 -->
          {{ $t('fund.l128') }}
        </div>
        <div class="name name1">
          {{ info.from.AccountType }}
          <img
            class="copy"
            @click="copyText(info.from.AccountType)"
            src="/img/icon/copy.png"
            alt="极度证券"
          />
        </div>
      </div>
      <div class="row">
        <div class="lable lab1">
          <!-- 收款人货币 -->
          {{ $t('fund.l7') }}
        </div>
        <div class="name name1">
          {{ info.pay_currency }}
          <img
            class="copy"
            @click="copyText(info.pay_currency)"
            src="/img/icon/copy.png"
            alt="极度证券"
          />
        </div>
      </div>
      <div class="row" v-if="info.from.address">
        <div class="lable lab1">
          <!-- 收款人地址 -->
          {{ $t('fund.l10') }}
        </div>
        <div class="name name1">
          {{ info.from.address }}
          <img
            class="copy"
            @click="copyText(info.from.address)"
            src="/img/icon/copy.png"
            alt="极度证券"
          />
        </div>
      </div>
      <div class="row" v-if="info.from.bak">
        <div class="lable lab1">
          <!-- 备注 -->
          {{ $t('fund.l12') }}
        </div>
        <div class="name name1">
          {{ info.from.bak }}
          <img
            class="copy"
            @click="copyText(info.from.bak)"
            src="/img/icon/copy.png"
            alt="极度证券"
          />
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import { copyText } from "@/utils/index";
export default {
  props: ["info"],
  data() {
    return {};
  },
  methods: {
    copyText(text) {
      copyText(text);
    },
  },
};
</script>
<style lang="less" scoped>
.title {
  font-size: 14px;
  color: #606060;
  margin-bottom: 12px;
}
.box {
  border-radius: 6px;
  border: 1px solid #E6E6E6;
  padding: 19px 11px 12px;
  &+.box {
    margin-top: 12px;
  }
  .sub {
    font-size: 16px;
    color: #000000;
    margin-bottom: 25px;
  }
  .row {
    margin-top: 18px;
    .lable {
      color: #606060;
      margin-bottom: 6px;
      &.lab1 {
        color: #B8B8B8;
      }
    }
    .name {
      position: relative;
      font-size: 14px;
      color: #000000;
      line-height: 18px;
      padding-bottom: 9px;
      border-bottom: 1px solid #E6E6E6;
      &.name1 {
        color: #606060;
      }
    }
    .copy {
      position: absolute;
      right: 0;
      top: 0;
      width: 17px;
      cursor: pointer;
    }
  }
}
</style>