Administrator
2021-08-11 92d0cf73df170131eba84490d875bc954eb7a708
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<template>
  <div class="ups">
    <div v-show="end == 1">
      {{ form.aaa }}
      <div class="but">
        <button @click="one">下一页</button>
      </div>
    </div>
    <div v-show="end == 2">
      {{ form.bbb }}
 
      <div class="but">
        <button @click="twoup">上一页</button>
        <button @click="twodown">下一页</button>
      </div>
    </div>
    <div v-show="end == 3">
      {{ form.ccc }}
 
      <div class="but">
        <button @click="threeup">上一页</button>
        <button @click="sub">提交</button>
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  data() {
    return {
      end: 1,
      form: {
        aaa: 123,
        bbb: 456,
        ccc: 789,
      },
    };
  },
  methods: {
    one() {
      this.end = 2;
    },
    twoup() {
      this.end = 1;
    },
    twodown() {
      this.end = 3;
    },
    threeup() {
      this.end = 2;
    },
    sub() {
      console.log(this.form);
    },
  },
};
</script>
 
<style lang="scss">
.ups {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
</style>