bindCard.vue 4.36 KB
<template>
  <v-layout id="BindCard" column justify-center align-center>
    <v-flex>
      <v-card id="CardInfoBlock" flat height="19rem">
        <div class="NameBlock FormLine">
          <div class="labelBlock">
            <span>持卡人</span>        
          </div>
          <v-text-field
            v-model="form.name"
            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="PhoneBlock FormLine">
          <div class="labelBlock">
            <span>预留手机号</span>        
          </div>
          <v-text-field
            v-model="form.phone"
            color="light-gold"
            class="BindCardInput "
            name="PhoneInput"
            placeholder="务必输入预留手机号"
            id='PhoneInput'
            single-line
          ></v-text-field>
        </div>
        <div class="HintLine">
          注意:请您避免绑定<span>银行卡、结算卡</span>
        </div>
      </v-card>
    </v-flex>
  </v-layout>
</template>

<script>
export default {
  layout: 'lightGold',
  data:() => ({
    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>
  #BindCard {

    #CardInfoBlock {
      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: center;
        color: #9D9D9D;

        span {
          color: $light-gold;
        }
      }


      ::-moz-placeholder { color: #9D9D9D; }
      ::-webkit-input-placeholder { color:#9D9D9D; }
      :-ms-input-placeholder { color:#9D9D9D; }
    }
    
    .ConfirmButtonBlock {
      width: 100%;
      margin-top: 1.1rem;

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