<template>
  <h-view class="public-style contract-mainten-list" style="height:100%;">
    <h-content class="">
      <div class="wrap-banner">
        <img src="../../../assets/ocrIdentify/banner@2x.png">
      </div>
      <div class="function-switch">
        <div class="card-and-call">
          <div class="card-recognition" @click="goBusinessCard()">  <!-- 名片-->
            <img src="../../../assets/ocrIdentify/cardRecognition@2x.png">
          </div>
          <div class="call-function" @click="goVehicle()">     <!--行驶证-->
            <img src="../../../assets/ocrIdentify/communication@2x.png">
          </div>
        </div>
        <div class="entry-bp" @click="goDriver()">     <!--驾驶证-->
          <div class="entry-bp-icon">
            <img src="../../../assets/ocrIdentify/entryBp@2x.png">
          </div>
        </div>
      </div>
      <div class="back-result">
        <div class="back-result-icon" @click="goBusiness()">  <!--营业执照识别-->
          <img src="../../../assets/ocrIdentify/businessLicense@2x.png">
        </div>
        <div class="back-result-icon" @click="goIdcard()">  <!--身份证-->
          <img src="../../../assets/ocrIdentify/idCard@2x.png">
        </div>
      </div>
    </h-content>
  </h-view>
</template>

<script>
export default {
  data () {
    return {
    }
  },
  created () {
  },
  mounted () {

  },
  methods: {
    goBusinessCard () {
      this.$router.push({
        name: 'BusinessCard',
      })
    },
    goVehicle () {
      this.$router.push({
        name: 'VehicleCard',
      })
    },
    goDriver () {
      this.$router.push({
        name: 'DriverLicenseInformation',
      })
    },
    goBusiness () {
      this.$router.push({
        name: 'BusinessLicenseInformaton',
      })
    },
    goIdcard () {
      this.$router.push({
        name: 'IdCard',
      })
    },
  },
}
</script>

<style lang="less" rel="stylesheet">
  .public-style {
    .content {
      .wrap-banner{
        width: 100%;
        img{
          width: 100%;
        }
      }
      .function-switch{
        width: 100%;
        height: 260px;
        margin-top: 15px;
        display: flex;
        display: -webkit-flex;
        justify-content: center;
        -webkit-justify-content: center;
        align-items: flex-start;
        -webkit-align-items: flex-start;
        .card-and-call{
          width: 55%;
          height: 100%;
          display: flex;
          display: -webkit-flex;
          flex-direction: column;
          -webkit-flex-direction: column;
          justify-content: space-between;
          -webkit-justify-content: space-between;
          align-items: center;
          -webkit-align-items: center;
          .card-recognition{
            width: 90%;
            display: flex;
            display: -webkit-flex;
            justify-content: center;
            -webkit-justify-content: center;
            align-items: center;
            -webkit-align-items: center;
            &.activated {
              opacity: 0.9;
              -webkit-transform: scale(0.95);
              transform: scale(0.95)
            }
            img{
              width: 100%;
            }
          }
          .call-function{
            width: 90%;
            display: flex;
            display: -webkit-flex;
            justify-content: center;
            -webkit-justify-content: center;
            align-items: center;
            -webkit-align-items: center;
            &.activated {
              opacity: 0.9;
              -webkit-transform: scale(0.95);
              transform: scale(0.95)
            }
            img{
              width: 100%;
            }
          }
        }
        .entry-bp{
          width: 45%;
          height: 100%;
          display: flex;
          display: -webkit-flex;
          justify-content: center;
          -webkit-justify-content: center;
          align-items: center;
          -webkit-align-items: center;
          &.activated {
            opacity: 0.9;
            -webkit-transform: scale(0.95);
            transform: scale(0.95)
          }
          .entry-bp-icon{
            width: 90%;
            display: flex;
            display: -webkit-flex;
            justify-content: center;
            -webkit-justify-content: center;
            align-items: center;
            -webkit-align-items: center;
            img{
              width: 100%;
            }
          }
        }
      }
      .back-result{
        width: 100%;
        height: 65px;
        margin-top: 15px;
        display: flex;
        display: -webkit-flex;
        justify-content: space-around;
        -webkit-justify-content: space-around;
        align-items: center;
        -webkit-align-items: center;
        .back-result-icon{
          height: 100%;
          display: flex;
          display: -webkit-flex;
          justify-content: center;
          -webkit-justify-content: center;
          align-items: center;
          -webkit-align-items: center;
          &.activated {
            opacity: 0.9;
            -webkit-transform: scale(0.95);
            transform: scale(0.95)
          }
          img{
            height: 100%;
          }
        }
      }
    }
  }
</style>
