<template>
  <box title="基金涉及费用">
    <div class="cost-box">
      <div class="li">
        <img src="https://webapp-pub.ezijing.com/x-training-new/cost-i1.png" class="icon">
        <div class="right-con">
          <div class="num">
            <input v-model="data.completions[0].commit_answer" type="text" placeholder="请输入">
            <span>%</span>
          </div>
          <div class="name">托管费</div>
        </div>
      </div>
      <div class="li">
        <img src="https://webapp-pub.ezijing.com/x-training-new/cost-i2.png" class="icon">
        <div class="right-con col-blue">
          <div class="num">
            <input v-model="data.completions[1].commit_answer" type="text" placeholder="请输入">
            <span>%</span>
          </div>
          <div class="name">管理费</div>
        </div>
      </div>
    </div>
  </box>
</template>

<script>
import Box from './Box.vue'
export default {
  components: { Box },
  props: {
    data: { type: Object }
  },
  data() {
    return {}
  }
}
</script>

<style lang="scss" scoped>
.cost-box{
  display: flex;
  justify-content: center;
  padding-top: 30px;
  .li{
    width: 225px;
    height: 97px;
    background: #FFFFFF;
    box-shadow: 0px 9px 9px 0px rgba(175, 175, 175, 0.27);
    border-radius: 10px;
    display: flex;
    align-items: center;
    .icon{
      width: 53px;
      height: 53px;
      display: block;
      margin-left: 24px;
    }
    .right-con{
      margin-left: 24px;
      &.col-blue{
        .num{
          input{
            color: #47BCDE;
          }
          span{
            color: #47BCDE;
          }
        }
      }
      .num{
        display: flex;
        input{
          outline: none;
          background: none;
          width: 80px;
          font-size: 30px;
          font-weight: bold;
          color: #4EB198;
          line-height: 100%;
          font-weight: bold;
          height: 28px;
          width: 65px;
          text-align: right;
          &::-webkit-input-placeholder{
            font-size: 16px;
          }
        }
        span{
          font-size: 14px;
          color: #4EB198;
          line-height: 100%;
          margin-top: 12px;
          margin-left: 3px;
        }
      }
      .name{
        font-size: 16px;
        color: #666666;
        line-height: 100%;
        margin-top: 10px;
      }
    }
    &:nth-child(1){
      margin-right: 30px;
    }
  }
}
</style>
