<template>
  <div class="list">
    <div class="line-box flex">
      <div class="line"></div>
    </div>
    <div class="sub">
      <!-- 充币币种 -->
      {{ $t('fund.l56') }}
    </div>
    <div class="item flex" :class="{active: symbol == 'USDT'}" @click="selectItem('USDT')">
      <div>USDT</div>
      <img v-if="symbol == 'USDT'" class="check" src="/img/user/check.png" alt="极度证券">
    </div>
    <div class="item flex" :class="{active: symbol == 'USDC'}" @click="selectItem('USDC')">
      <div>USDC</div>
      <img v-if="symbol == 'USDC'" class="check" src="/img/user/check.png" alt="极度证券">
    </div>
  </div>
</template>
<script>
export default {
  props: ['symbol'],
  data () {
    return {
      
    }
  },
  methods: {
    selectItem(item) {
      this.$emit('success', item)
    }
  }
}
</script>
<style lang="less" scoped>
.list {
  padding: 11px 11px 46px;
  .item {
    cursor: pointer;
    justify-content: space-between;
    margin-top: 6px;
    height: 50px;
    font-size: 15px;
    border: 1px solid transparent;
    color: #000000;
    padding: 0 20px;
    &.active {
      border-radius: 6px;
      border: 1px solid #858585;
    }
    .check {
      width: 13px;
    }
  }
}
.line-box {
  justify-content: center;
  margin-bottom: 28px;
  .line {
    width: 36px;
    height: 4px;
    background: #E7E7E7;
    border-radius: 2px;
  }
}
.sub {
  font-weight: 500;
  color: #000000;
  font-size: 16px;
  padding-bottom: 18px;
  padding-left: 8px;
}
</style>