list.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <script lang='ts' setup>
  2. import useLoginAndDownload from '../../useLoginAndDownload'
  3. import { useCommonStore } from '@/stores/modules/common'
  4. const commonStore = useCommonStore()
  5. const { accountList } = storeToRefs(commonStore)
  6. const { onSelectAccount } = useLoginAndDownload()
  7. function selectOtherLogin() {
  8. commonStore.setLoginType('choice')
  9. }
  10. </script>
  11. <template>
  12. <div>
  13. <div class="custom-title-font text-24px fw-800 text-#333 mb-10px">
  14. <span class="custom-title-bg03">Sign In</span> to EJET Spark
  15. </div>
  16. <div class="text-14px text-#1A1A1A lh-22px mb-22px">
  17. You alredy have the following EJET Spark accounts, select one to continue.
  18. </div>
  19. <div class="flex flex-col gap-20px">
  20. <div v-for="item, index in accountList" :key="index" class="flex py-15px px-35px b-rd-10px b-#D8D8D b-1px b-solid cursor-pointer hover:b-#9B6CFF" @click="onSelectAccount(item)">
  21. <!-- 获取首字母 -->
  22. <div class="w-50px h-50px bg-#F2E5F2 text-#9B6CFF text-24px flex justify-center b-rd-50% items-center mr-28px">
  23. {{ item.name.charAt(0).toUpperCase() }}
  24. </div>
  25. <div>
  26. <div class="text-18px fw-bold text-#333 custom-title-font">
  27. {{ item.name }}
  28. </div>
  29. <div class="text-#9B6CFF mt-8px">
  30. {{ item.email }}
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="mt-20px text-#333">
  36. Continue with another account. <span class="text-#9B6CFF cursor-pointer hover:underline" @click="selectOtherLogin">Click here⁠.</span>
  37. </div>
  38. </div>
  39. </template>
  40. <style lang='less' scoped>
  41. ::v-deep(.login-input) {
  42. .el-input__wrapper{
  43. border-radius: 10px;
  44. }
  45. }
  46. </style>