| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <template>
- <div>
- <template v-if="isMobile">
- <step-first v-if="step === 'first'" @stepEvent="setStep"/>
- <step-select v-if="step === 'select'" @stepEvent="setStep"/>
- <step-before v-if="step === 'before'" @stepEvent="setStep"/>
- <step-email v-if="step === 'email'" @stepEvent="setStep"/>
- <step-mobile v-if="step === 'mobile'" @stepEvent="setStep"/>
- <step-appeal v-if="step === 'appeal'" @stepEvent="setStep"/>
- <step-security v-if="step === 'security'" @stepEvent="setStep"/>
- <step-new v-if="step === 'new'" @stepEvent="setStep" :stepLast="stepLast"/>
- <step-Last v-if="step === 'last'" @stepEvent="setStep" :stepLast="stepLast"/>
- </template>
- <template v-else>
- <accountCenter-header/>
- <forgetPassword-validationAccount/>
- </template>
- </div>
- </template>
- <script>
- import AccountCenterHeader from '~components/default/AccountCenterHeader.vue'
- import ForgetPasswordValidationAccount from '~components/reset/ForgetPasswordValidationAccount.vue'
- import {StepFirst, StepSelect, StepBefore, StepEmail, StepMobile, StepAppeal, StepNew, StepSecurity, StepLast} from '~components/mobile/reset'
- export default {
- layout (context) {
- return context.store.state.option.isMobile ? 'mobile' : 'default'
- },
- data () {
- return {
- step: 'before',
- stepLast: 'new'
- }
- },
- components: {
- AccountCenterHeader,
- ForgetPasswordValidationAccount,
- StepFirst,
- StepSelect,
- StepNew,
- StepLast,
- StepSecurity,
- StepBefore,
- StepMobile,
- StepEmail,
- StepAppeal
- },
- mounted () {
- if (this.$store.state.option.isLogin.data.isLogin) {
- this.step = 'select'
- }
- },
- computed: {
- isMobile () {
- return this.$store.state.option.isMobile
- }
- },
- methods: {
- setStep (type) {
- this.step = type
- }
- }
- }
- </script>
|