<template>
  <div class="pop">
    <div class="line-box flex">
      <div class="line"></div>
    </div>
    <div class="sub">
      <!-- 选择支付方式 -->
      {{ title || $t('fund.l115') }}
    </div>
    <div class="item flex" :class="{active: type == 1}" @click="selectItem(1)">
      <div>
        <!-- 本地银行汇款 -->
        {{ $t('fund.l106') }}
      </div>
      <img v-if="type == 1" class="check" src="/img/user/check.png" alt="极度证券">
    </div>
    <div class="item flex" :class="{active: type == 2}" @click="selectItem(2)">
      <div>
        <!-- 国际电汇 -->
        {{ $t('account.l32') }}
      </div>
      <img v-if="type == 2" class="check" src="/img/user/check.png" alt="极度证券">
    </div>
    <div class="item flex" :class="{active: type == 3}" @click="selectItem(3)">
      <div>
        <!-- 数字货币 -->
        {{ $t('account.l33') }}
      </div>
      <img v-if="type == 3" class="check" src="/img/user/check.png" alt="极度证券">
    </div>
  </div>
</template>
<script>
export default {
  props: ['type', 'title'],
  data () {
    return {
      
    }
  },
  methods: {
    selectItem(type) {
      this.$emit('success', type)
    }
  }
}
</script>
<style lang="less" scoped>
.pop {
  padding: 11px 11px 56px;
}
.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;
}
.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;
  }
}
</style>