|
|
@@ -5,7 +5,7 @@
|
|
|
<validationEmail-stepMobile v-if="step === 'mobile'" @stepEvent="setStep" @tokenEvent="loadToken" :info="info"/>
|
|
|
<validationEmail-stepEmail v-if="step === 'email'" @stepEvent="setStep" :info="info"/>
|
|
|
<validationEmail-stepSecurity v-if="step === 'questions'" @stepEvent="setStep" @tokenEvent="loadToken"/>
|
|
|
- <validationEmail-stepNew v-if="step === 'new'" @stepEvent="setStep" @lastEvent="setStepLast" :tokenId="tokenId"/>
|
|
|
+ <validationEmail-stepNew v-if="step === 'new'" @stepEvent="setStep" :tokenId="tokenId"/>
|
|
|
<validationEmail-stepSuccess v-if="step === 'last'" @stepEvent="setStep" :stepLast="stepLast"/>
|
|
|
<step-appeal v-if="step === 'appeal'" @stepEvent="setStep" @lastEvent="setStepLast"/>
|
|
|
</template>
|
|
|
@@ -24,7 +24,6 @@
|
|
|
// console.log(content, 'content')
|
|
|
return content.store.state.option.isMobile ? 'mobile' : 'default'
|
|
|
},
|
|
|
- middleware: 'authenticated',
|
|
|
transition: {
|
|
|
name: 'fade',
|
|
|
mode: 'out-in'
|
|
|
@@ -34,7 +33,7 @@
|
|
|
step: 'select',
|
|
|
info: '',
|
|
|
tokenId: '',
|
|
|
- stepLast: 'new'
|
|
|
+ stepLast: 'last'
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
@@ -49,18 +48,22 @@
|
|
|
StepAppeal
|
|
|
},
|
|
|
mounted () {
|
|
|
- console.log('111')
|
|
|
- if (this.logged.isLogin) {
|
|
|
- if (this.$route.query.token) {
|
|
|
- this.step = 'last'
|
|
|
- } else {
|
|
|
+ if (!this.$route.query.token) {
|
|
|
+ if (this.logged.isLogin) {
|
|
|
this.step = 'select'
|
|
|
+ } else {
|
|
|
+ this.$router.push('/')
|
|
|
}
|
|
|
} else {
|
|
|
- if (this.$route.query.token) {
|
|
|
+ console.log(this.$route.query)
|
|
|
+ console.log('token', this.$route.query)
|
|
|
+ console.log('2', this.$route.query.step)
|
|
|
+ if (this.$route.query.step === '2') {
|
|
|
+ this.step = 'new'
|
|
|
+ console.log('new')
|
|
|
+ } else if (this.$route.query.step === '3') {
|
|
|
this.step = 'last'
|
|
|
- } else {
|
|
|
- this.$router.push('/')
|
|
|
+ this.stepLast = 'last'
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -74,7 +77,12 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ setStepLast (type) {
|
|
|
+ console.log(type)
|
|
|
+ this.stepLast = type
|
|
|
+ },
|
|
|
setStep (step) {
|
|
|
+ console.log(step)
|
|
|
this.step = step
|
|
|
},
|
|
|
setInfo (info) {
|