Commit ca6ca2ca by nlp97

上一步

parent 923a45b4
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2020-11-24 16:18:58 * @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-03-20 17:30:58 * @LastEditTime: 2022-03-21 12:44:37
* @Description: * @Description:
--> -->
<template> <template>
...@@ -29,6 +29,16 @@ ...@@ -29,6 +29,16 @@
block block
type="info" type="info"
native-type="button" native-type="button"
v-if="page != 1 && page != 2 && page != 8"
@click="back()"
>上一步</van-button
>
<van-button
class="index_form_footer_next"
round
block
type="info"
native-type="button"
v-if="page != 1 && page != 2 && page != 7 && page != 8" v-if="page != 1 && page != 2 && page != 7 && page != 8"
@click="next()" @click="next()"
>下一步</van-button >下一步</van-button
...@@ -68,6 +78,10 @@ export default { ...@@ -68,6 +78,10 @@ export default {
}, },
mounted() {}, mounted() {},
methods: { methods: {
back() {
let pageS = this.page;
this.$store.dispatch("user/setpage", pageS - 1);
},
next() { next() {
// let pageS = this.page + 1; // let pageS = this.page + 1;
...@@ -258,19 +272,18 @@ export default { ...@@ -258,19 +272,18 @@ export default {
height: 100%; height: 100%;
&_footer { &_footer {
/* position: absolute; */
/* bottom: 20px; */
width: 100%; width: 100%;
padding-top: 30px; padding-top: 30px;
padding-bottom: 30px; padding-bottom: 30px;
display: flex;
flex-direction: row;
justify-content: space-around;
&_next { &_next {
width: 319px; width: 25%;
height: 48px; height: 48px;
background: #0091ff; background: #0091ff;
border-radius: 24px; border-radius: 24px;
margin: 0 auto;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment