finish.vue 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <script lang='ts' setup>
  2. import { useCommonStore } from '@/stores/modules/common'
  3. import { downloadFileByA } from '@/utils/common/download'
  4. const commonStore = useCommonStore()
  5. const { downloadCatalog } = storeToRefs(commonStore)
  6. const isDownloading = ref(false)
  7. async function startDownload() {
  8. if (downloadCatalog.value) {
  9. isDownloading.value = true
  10. await downloadFileByA(downloadCatalog.value.pdf, `${downloadCatalog.value.title || ''}.pdf`)
  11. const timer = setTimeout(() => {
  12. isDownloading.value = false
  13. clearTimeout(timer)
  14. }, 5000)
  15. }
  16. else { console.error('No download catalog available') }
  17. }
  18. startDownload()
  19. </script>
  20. <template>
  21. <div>
  22. <div class="custom-title-font text-24px fw-800 text-#333 mb-10px flex items-center">
  23. {{ isDownloading ? 'Downloading...' : 'Download Successfully!👏' }}
  24. </div>
  25. <div class="text-14px text-#1A1A1A lh-22px mb-20px">
  26. Please feel free to contact us to customize your exclusive product solution.
  27. </div>
  28. <div class="b-rd-200px bg-#fff text-#333 py-14px px-46px b-1px b-solid b-#D8D8D8 hover:b-#9B6CFF flex !bg-#fff items-center mb-24px">
  29. <div class="p-14px b-rd-50% bg-#F2E5F2 mr-26px">
  30. <img src="@/assets/images/email.png" alt="" class="w-24px h-24px ">
  31. </div>
  32. <div>
  33. <div class="text-18px fw-bold custom-title-font">
  34. Email
  35. </div>
  36. <div class="text-#9B6CFF lh-24px">
  37. spark@ejet.com
  38. </div>
  39. </div>
  40. </div>
  41. <div class="b-rd-200px bg-#fff b-1px py-14px px-46px text-#333 b-solid b-#D8D8D8 hover:b-#9B6CFF flex items-center">
  42. <div class="p-14px b-rd-50% bg-#F2E5F2 mr-26px">
  43. <img src="@/assets/images/wechat.png" class="w-24px h-24px" alt="">
  44. </div>
  45. <div>
  46. <div class="text-18px fw-bold custom-title-font">
  47. WhatsApp
  48. </div>
  49. <div class="text-#9B6CFF lh-24px">
  50. +1 (234) 567-890
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </template>
  56. <style lang='less' scoped>
  57. ::v-deep(.login-input) {
  58. &.error-txt{
  59. .el-input__wrapper{
  60. border: 1px solid red!important;
  61. }
  62. }
  63. .el-input__wrapper{
  64. border-radius: 10px;
  65. }
  66. }
  67. </style>