<template>
  <div class="list">
    <div class="line-box flex">
      <div class="line"></div>
    </div>
    <div class="sub">
      <!-- 充值网络 -->
      {{ $t('fund.l57') }}
    </div>
    <div class="item flex" v-for="item in list" :key="item.id" :class="{active: chain == item.chain}" @click="selectItem(item)">
      <div>{{ item.title }}</div>
      <img v-if="chain == item.chain" class="check" src="/img/user/check.png" alt="极度证券">
    </div>
  </div>
</template>
<script>
export default {
  props: ['list', 'chain'],
  data () {
    return {
      
    }
  },
  methods: {
    selectItem(item) {
      this.$emit('success', item.chain)
    }
  }
}
</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>