Blame view

src/views/mySelf/myCars/addCarNum.vue 832 Bytes
5e52ed7c   刘淇   个人中心
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
  <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>