enterpriseRegistration.vue 977 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <div>
  3. <template v-if="isMobile">
  4. <header-mobile/>
  5. <registerEnterprise-mobile/>
  6. <footer-mobile/>
  7. </template>
  8. <template v-else>
  9. <accountCenter-header/>
  10. <enterprise-registration/>
  11. </template>
  12. </div>
  13. </template>
  14. <script>
  15. import AccountCenterHeader from '~components/default/AccountCenterHeader.vue'
  16. import EnterpriseRegistration from '~components/register/EnterpriseRegistration.vue'
  17. import { HeaderMobile, FooterMobile } from '~components/mobile'
  18. import registerEnterpriseMobile from '~components/mobile/registerEnterprise'
  19. export default {
  20. layout (context) {
  21. return context.store.state.option.isMobile ? 'mobile' : 'default'
  22. },
  23. components: {
  24. AccountCenterHeader,
  25. EnterpriseRegistration,
  26. registerEnterpriseMobile,
  27. HeaderMobile,
  28. FooterMobile
  29. },
  30. computed: {
  31. isMobile () {
  32. return this.$store.state.option.isMobile
  33. }
  34. }
  35. }
  36. </script>