|
@@ -10,7 +10,7 @@
|
|
|
<el-step title="注册套餐"></el-step>
|
|
|
</el-steps>
|
|
|
</div>
|
|
|
- <div class="contentSty">
|
|
|
+ <div class="contentSty" ref="content">
|
|
|
<!-- 动态组件 -->
|
|
|
<component
|
|
|
:is="currentComponent"
|
|
@@ -104,9 +104,13 @@ export default {
|
|
|
methods: {
|
|
|
next() {
|
|
|
this.activeStep++;
|
|
|
+ //重置滚动条
|
|
|
+ this.$refs.content.scrollTop = 0;
|
|
|
},
|
|
|
previous() {
|
|
|
this.activeStep--;
|
|
|
+ //重置滚动条
|
|
|
+ this.$refs.content.scrollTop = 0;
|
|
|
},
|
|
|
changeComponents(componentName) {
|
|
|
this.currentComponent = componentName;
|