phoneValidation.vue 927 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <div>
  3. <template v-if="isMobile">
  4. <validationPhone-stepSelect v-if="step === 'select'" @stepEvent="setStep" @setDataEvent="setInfo"/>
  5. </template>
  6. <template v-else>
  7. <accountCenter-header/>
  8. <phone-validation/>
  9. </template>
  10. </div>
  11. </template>
  12. <script>
  13. import AccountCenterHeader from '~components/default/AccountCenterHeader.vue'
  14. import PhoneValidation from '~components/validation/PhoneValidation.vue'
  15. import {ValidationPhoneStepSelect} from '~components/mobile/reset'
  16. export default {
  17. layout (context) {
  18. return context.store.state.option.isMobile ? 'mobile' : 'default'
  19. },
  20. transition: {
  21. name: 'fade',
  22. mode: 'out-in'
  23. },
  24. components: {
  25. AccountCenterHeader,
  26. PhoneValidation,
  27. ValidationPhoneStepSelect
  28. },
  29. computed: {
  30. isMobile () {
  31. return this.$store.state.option.isMobile
  32. }
  33. }
  34. }
  35. </script>