<template>
  <div style="background: #fff;width: 100%;height: 100%">
    <h3 style="padding: 10px 10px;border-bottom: 5px solid #f5f5f5">
      车牌号码：
      <b style="color:#2282C5">京A12321</b>
    </h3>

    <div style="padding: 10px 10px">

      <van-uploader style="width: 100%" :after-read="afterRead" v-model="fileList" :max-count="1" preview-size="200">

        <!--&lt;!&ndash;<div class="uploadBg"></div>&ndash;&gt;-->
        <!--<van-image  style="width: 100%;height: 200px;"-->
          <!--:src="require('../../../assets/images/myCars/fornt.png')" />-->
      </van-uploader>

      <!--<div class="uploadBg">-->
       <!---->
      <!--</div>-->


      <h4>
        照片须符合如下条件:
      </h4>
      <h6>
        1、行驶证正面
      </h6>
      <h6>
        2、信息清晰显示真实有效
      </h6>

      <van-button type="info" round block style="margin-top: 40px;" @click="toMyCarsPage">立即验证</van-button>



    </div>




  </div>

</template>

<script>
export default {
  name: "rzCarNumber",
  data() {
    return {
      fileList: [],
    };
  },
  methods:{
    afterRead(file) {
      // 此时可以自行将文件上传至服务器
      console.log(file);
    },
    toMyCarsPage() {
      console.log(this.fileList)
      console.log(this.fileList.length)
      this.$router.push({
          name: "myCars"
        }
      );
    }
  }
};
</script>

<style scoped>
.uploadBg{
  width: 100%;
  height: 200px;
  background:#eee url("../../../assets/images/myCars/fornt.png") no-repeat;
  background-size: 100% 100%;

}
</style>
