submitRequest.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <script lang='ts' setup>
  2. import useLoginAndDownload from '../../useLoginAndDownload'
  3. import { useUserStore } from '@/stores/modules/user'
  4. const { onSubmitRequest } = useLoginAndDownload()
  5. const { userInfo } = storeToRefs(useUserStore())
  6. const userName = computed(() => {
  7. return (userInfo.value?.firstName || userInfo.value?.lastName) ? `${userInfo.value?.firstName} ${userInfo.value?.lastName}` : 'EJET Spark'
  8. })
  9. </script>
  10. <template>
  11. <div>
  12. <div class="custom-title-font text-24px fw-800 text-#333 mb-10px">
  13. Submit Catalog Request
  14. </div>
  15. <div class="text-14px text-#1A1A1A lh-22px mb-22px">
  16. You are requesting the catalog with your EJET Spark account below.
  17. </div>
  18. <div class="flex flex-col gap-20px">
  19. <div class="flex py-15px px-35px b-rd-10px b-#D8D8D b-1px b-solid cursor-pointer hover:b-#9B6CFF">
  20. <!-- 获取首字母 -->
  21. <div class="w-50px h-50px bg-#F2E5F2 text-#9B6CFF text-24px flex justify-center b-rd-50% items-center mr-28px">
  22. {{ userName.charAt(0) }}
  23. </div>
  24. <div>
  25. <div class="text-18px fw-bold text-#333 custom-title-font">
  26. {{ userName }}
  27. </div>
  28. <div class="text-#9B6CFF mt-8px">
  29. {{ userInfo?.email }}
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. <el-button
  35. class="!w-full !h-50px mt-24px !text-16px !fw-500 !b-rd-10px !bg-#9B6CFF !text-#fff"
  36. @click="onSubmitRequest"
  37. >
  38. Request Catalog
  39. </el-button>
  40. </div>
  41. </template>
  42. <style lang='less' scoped>
  43. ::v-deep(.login-input) {
  44. .el-input__wrapper{
  45. border-radius: 10px;
  46. }
  47. }
  48. </style>