auth-modal.vue 1020 B

1234567891011121314151617181920212223242526272829303132333435
  1. <!-- -->
  2. <template>
  3. <view v-if="authType !== ''">
  4. <ct-popup :show="authType !== 'necessaryInfo'" round="10" :showClose="true" @close="closeAuthModal">
  5. <login></login>
  6. </ct-popup>
  7. <ct-popup :show="authType === 'necessaryInfo'" round="0" :showClose="false" @close="closeAuthModal">
  8. <necessaryInfo></necessaryInfo>
  9. </ct-popup>
  10. <ct-popup :show="authType === 'selectUserType'" round="0" :showClose="false" @close="closeAuthModal">
  11. <selectUserType></selectUserType>
  12. </ct-popup>
  13. </view>
  14. </template>
  15. <script setup>
  16. import { closeAuthModal } from '@/hooks/useModal'
  17. import ctPopup from '@/components/ui/ct-popup'
  18. import { modalStore } from '@/store/modal';
  19. import login from './authModal/login'
  20. import necessaryInfo from './authModal/necessaryInfo'
  21. import selectUserType from './authModal/selectUserType'
  22. const modal = modalStore()
  23. import { computed } from 'vue'
  24. // 授权弹窗类型
  25. const authType = computed(() => modal.auth)
  26. </script>
  27. <style lang="scss" scoped>
  28. </style>