<template>
  <div class="pop">
    <div class="box-c">
      <img class="close" @click="cancel" src="/img/home/nav/close.png" alt="极度证券">
    </div>
    <div class="body flex">
      <img class="img" src="/img/home/nav/icon9.png" alt="极度证券">
      <div class="title">
        <!-- 温馨提示 -->
        {{ $t('common.l1') }}
      </div>
      <div class="tip">
        <!-- 您的资金不足，请先存款 -->
        {{ $t('exchange.l62') }}
      </div>
    </div>
    <div class="btn-box flex">
      <div class="btn ltn" @click="toConvert">
        <!-- 划转资金 -->
        {{ $t('exchange.l63') }}
      </div>
      <div class="btn rtn" @click="submit">
        <!-- 立即存款 -->
        {{ $t('exchange.l64') }}
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ['info'],
  data () {
    return {
      
    }
  },
  methods: {
    cancel() {
      this.$emit('cancel')
    },
    toConvert() {
      this.cancel()
      this.$router.push('/convert/' + this.info.id)
    },
    submit() {
      this.cancel()
      this.$router.push('/deposit/' + this.info.id)
    }
  }
}
</script>
<style lang="less" scoped>
.pop {
  padding: 17px 17px 39px;
}
.box-c {
  margin-bottom: 13px;
  .close {
    width: 15px;
    display: block;
    cursor: pointer;
  }
}
.body {
  flex-direction: column;
  justify-content: center;
  padding-bottom: 48px;
  line-height: 1;
  .img {
    width: 75px;
    margin-bottom: 4px;
  }
  .title {
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 9px;
  }
  .tip {
    font-size: 16px;
    color: #767676;
    text-align: center;
  }
}
.btn-box {
  column-gap: 8px;
  .btn {
    flex: 1;
    text-align: center;
    line-height: 42px;
    border-radius: 6px;
    border: 1px solid;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ltn {
    border-color: #ACACAC;
  }
  .rtn {
    background-color: var(--color-);
    color: #fff;
  }
}
</style>