google.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <script lang='ts' setup>
  2. import type { FormInstance, FormRules } from 'element-plus'
  3. import useLogin from '../../useLogin'
  4. const { loginForm, finishCode, errorCodeTxt, seconds, getMailCode, backStep } = useLogin()
  5. const ruleFormRef = ref<FormInstance>()
  6. const rules = ref<FormRules>({
  7. code: [
  8. { required: true, message: 'Please enter a valid email.', trigger: 'blur' },
  9. ],
  10. })
  11. </script>
  12. <template>
  13. <div>
  14. <div class="custom-title-font text-24px fw-800 text-#333 mb-10px flex items-center">
  15. <img src="@/assets/images/login_back_arrow.png" alt="" class="w-16px h-16px mr-4px cursor-pointer" @click="backStep">
  16. Continue with Google
  17. </div>
  18. <div class="text-14px text-#1A1A1A lh-22px mb-20px">
  19. Your Google account is connected to this EJET Spark account. Sign in using the email
  20. </div>
  21. <div class="my-10px text-14px text-#9B6CFF mb-24px">
  22. {{ loginForm.mail }}
  23. </div>
  24. <div class="b-rd-200px bg-#fff text-#333 b-1px b-solid b-#D8D8D8 h-48px lh-48px hover:b-#9B6CFF flex justify-center items-center cursor-pointer mb-24px text-14px fw-500">
  25. <img src="@/assets/images/google_logo.png" alt="" class="w-24px h-24px mr-10px">
  26. Continue with Google
  27. </div>
  28. </div>
  29. </template>
  30. <style lang='less' scoped>
  31. ::v-deep(.login-input) {
  32. &.error-txt{
  33. .el-input__wrapper{
  34. border: 1px solid red!important;
  35. }
  36. }
  37. .el-input__wrapper{
  38. border-radius: 10px;
  39. }
  40. }
  41. </style>