createIOU.vue 6.36 KB
<template>
  <v-layout id="CreateIOU" column justify-center align-center>
    <v-flex>
      <v-card id="IOUInfoBlock" class="IOUList" flat height="15.5rem">
        <div class="NameBlock FormLine">
          <div class="labelBlock">
            <span>借款金额</span>        
          </div>
          <v-text-field
            v-model="form.amount"
            color="light-gold"
            class="BindCardInput "
            name="PhoneInput"
            placeholder="请输入借款金额"
            id='NameInput'
            single-line
          ></v-text-field>
        </div>
        <div class="IdBlock FormLine">
          <div class="labelBlock">
            <span>借款日期</span>        
          </div>
          <v-text-field
            v-model="form.idNo"
            color="light-gold"
            class="BindCardInput "
            name="IdInput"
            placeholder="请输入身份证号"
            id='IdInput'
            single-line
          ></v-text-field>
        </div>
        <div class="CardNoBlock FormLine">
          <div class="labelBlock">
            <span>还款日期</span>        
          </div>
          <v-text-field
            v-model="form.cardNo"
            color="light-gold"
            class="BindCardInput "
            name="CardNoInput"
            placeholder="请输入银行卡号"
            id='CardNoInput'
            single-line
          ></v-text-field>
        </div>
        <div class="BankBlock FormLine">
          <div class="labelBlock">
            <span>年化利率</span>        
          </div>
          <!-- <v-select
            v-model="form.Bank"
            :items="banks"
            color="light-gold"
            class="BindCardInput "
            name="BankInput"
            placeholder="请选择"
            id='BankInput'
            single-line
          ></v-select> -->
        </div>
        <div class="HintLine">
          本金1+利息0=到期本息<span>1</span>元
        </div>
      </v-card>
      <v-card id="IOUUsageBlock" class="IOUList" flat height="3.1rem">
        <div class="NameBlock FormLine">
          <div class="labelBlock">
            <span>借款用途</span>        
          </div>
          <v-text-field
            v-model="form.amount"
            color="light-gold"
            class="BindCardInput "
            name="PhoneInput"
            placeholder="请输入借款金额"
            id='NameInput'
            single-line
          ></v-text-field>
        </div>
      </v-card>
      <v-card id="IOUOwnerBlock" class="IOUList" flat height="3.1rem">
        <div class="NameBlock FormLine">
          <div class="labelBlock">
            <span>出借人</span>        
          </div>
          <v-text-field
            v-model="form.amount"
            color="light-gold"
            class="BindCardInput "
            name="PhoneInput"
            placeholder="请输入借款金额"
            id='NameInput'
            single-line
          ></v-text-field>
        </div>
      </v-card>
      <div class="Agreement">
        <div 
          @click="agreement = !agreement" 
          class="AgreementCheckBox"
          :class="agreement ?  'AgreementChecked' : ''">
          <v-icon id="CheckBoxCheck" v-if="agreement">check</v-icon>
        </div>
        已阅读并同意<span class="gold--text">《借款协议》</span><span class="gold--text">《居间服务协议》</span>
      </div>
      <div class="ConfirmButtonBlock">
          <v-btn depressed id="ConfirmButton">确  定</v-btn>
        </div>
    </v-flex>
  </v-layout>
</template>

<script>
export default {
  layout: 'lightGold',
  data:() => ({
    agreement: false,
    form: {
      phone: '',
      verificationCode: '',
    },
    banks: [{ text: 'State 1' },
          { text: 'State 2' },
          { text: 'State 3' },
          { text: 'State 4' },
          { text: 'State 5' },
          { text: 'State 6' },
          { text: 'State 7' }],
    agreement: false,
  }),
}
</script>

<style lang="scss" scoped>
  #CreateIOU {

    .IOUList {
      width: 90vw;
      margin-top: 1.5rem;
      background: #FFFFFF;
      border-radius: 2px;
      padding: 0 1.3rem;

      .FormLine {
        height: 3.5rem;
        position: relative;

        .labelBlock {
          line-height: 3.5rem;
          height: 3.5rem;
          position: absolute;
          font-size: 1rem;
          font-weight: bold;
        }
        .BindCardInput {
          padding-top: 0.75rem;
        }
      }

      /deep/ #NameInput {
        margin-left: 6.7rem;
      }
      /deep/ #IdInput {
        margin-left: 6.7rem;
      }
      /deep/ #CardNoInput {
        margin-left: 6.7rem;
      }
      /deep/ #PhoneInput {
        margin-left: 6.7rem;
      }
      /deep/ input#BankInput {
        margin-left: 6.7rem;
      }
      .BankBlock {
        border-bottom: 1px solid rgba(0, 0, 0, .87);
      }
      .HintLine {
        font-size: 0.9rem;
        text-align: right;
        color: #9D9D9D;

        span {
          color: $light-gold;
        }
      }


      ::-moz-placeholder { color: #9D9D9D; }
      ::-webkit-input-placeholder { color:#9D9D9D; }
      :-ms-input-placeholder { color:#9D9D9D; }
    }

    #IOUUsageBlock {
      margin-top: 1rem;
    }

    #IOUOwnerBlock {
      margin-top: 1rem;      
    }
    .Agreement {
      text-align: center;
      font-size: 12px;
      color: #9D9D9D;
      font-weight: bold;
      height: 1.5rem;
      line-height: 1.5rem;
      margin-top: 1rem;
      .AgreementCheckBox {
        border: 2px solid #fff;
        color: #fff;
        width: 1.2rem;
        height: 1.2rem;
        border-radius: 1.2rem;
        transition: all 0.3s ease-in-out;
        display: inline-block;
        margin-right: 0.8rem;
        position: relative;
        top: 3px;
        &.AgreementChecked {
          background-image: linear-gradient(-229deg, #DAB269 37%, #E7C78C 87%);
          border-color: #E7C78C;
        }
        #CheckBoxCheck {
          position: absolute;
          left: 0;
          font-size: 15px;
          font-weight: bold;
        }
      }
    }
    
    .ConfirmButtonBlock {
      width: 90vw;
      margin: 2.5rem auto;

      #ConfirmButton {
        color: #484646;
        background-image: linear-gradient(-213deg, #DAB269 0%, #E7C78C 92%);
        border-radius: 2px;
        width: 100%;
        height: 2.8rem;
        font-size: 18px;
        margin: auto;
      }
    }
  }
</style>