<template>
  <div style="padding: 20px 15px;">
    <h3>请输入车牌号码</h3>
    <div class="demo-two-box">
      <vnp-input v-model="value"></vnp-input>
    </div>

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

<script>
import VnpInput from "@/components/vant-number-plate/vnp-input";
export default {
  name: "addCarNum",
  components: {
    "vnp-input": VnpInput
  },
  data() {
    return {
      show: false,
      value: "冀"
    };
  },
  methods: {
    toMyCarsPage() {
      console.log(this.value)
      console.log(this.value.length)
      this.$router.push({
          name: "myCars"
        }
      );
    }
  }
};
</script>

<style lang="less" scoped>
  h3 {
    text-align: center;
    padding-bottom: 20px;
  }
</style>
