realNameCertification.vue 1.1 KB

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