enterpriseCertification.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <div>
  3. <template v-if="isMobile">
  4. <step-one v-if="step === 'first'"
  5. @stepEvent="setStep"/>
  6. <step-last v-if="step === 'await'" :step="step"/>
  7. </template>
  8. <template v-else>
  9. <accountCenter-header/>
  10. <enterprise-certification/>
  11. </template>
  12. </div>
  13. </template>
  14. <script>
  15. import AccountCenterHeader from '~components/default/AccountCenterHeader.vue'
  16. import EnterpriseCertification from '~components/certification/EnterpriseCertification.vue'
  17. import {stepOne, stepLast} from '~components/mobile/enterpriseCertification'
  18. export default {
  19. layout (content) {
  20. return content.store.state.option.isMobile ? 'mobile' : 'default'
  21. },
  22. components: {
  23. AccountCenterHeader,
  24. EnterpriseCertification,
  25. stepOne,
  26. stepLast
  27. },
  28. transition: {
  29. name: 'fade',
  30. mode: 'out-in'
  31. },
  32. data () {
  33. return {
  34. step: 'first'
  35. }
  36. },
  37. computed: {
  38. isMobile () {
  39. return this.$store.state.option.isMobile
  40. }
  41. },
  42. methods: {
  43. setStep (step) {
  44. this.step = step
  45. }
  46. }
  47. }
  48. </script>