forgotPasswordEnt.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <div class="box">
  3. <navBar v-if="!isMobile" :showLoginBtn="false" class="navBar"></navBar>
  4. <div class="content pa-10">
  5. <div class="resume-header">
  6. <div class="resume-title">企业修改密码</div>
  7. </div>
  8. <editPasswordPage :showCancelBtn="false" openVerify @cancel="router.push('/login')">
  9. <template #custom>
  10. <div class="font-size-14 text-end">
  11. <span class="color-primary cursor-pointer" @click="router.push('/login')">回到登录页</span>
  12. </div>
  13. </template>
  14. </editPasswordPage>
  15. </div>
  16. </div>
  17. </template>
  18. <script setup>
  19. defineOptions({ name: 'forgotPasswordEnt'})
  20. import { useRouter } from 'vue-router'
  21. import navBar from '@/layout/personal/navBar.vue'
  22. import editPasswordPage from '@/views/login/components/editPasswordEnt.vue'
  23. import { ref, onMounted } from 'vue'
  24. const router = useRouter()
  25. const isMobile = ref(false)
  26. onMounted(() => {
  27. const userAgent = navigator.userAgent
  28. isMobile.value = /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i.test(userAgent)
  29. })
  30. </script>
  31. <style scoped lang="scss">
  32. .navBar {
  33. position: absolute;
  34. top: 0;
  35. z-index: 2;
  36. }
  37. .box {
  38. position: relative;
  39. width: 100%;
  40. height: 100%;
  41. background-image: url('https://minio.menduner.com/dev/menduner/login-bgc.jpg');
  42. background-size: cover;
  43. display: flex;
  44. justify-content: center;
  45. align-items: center;
  46. }
  47. .content {
  48. width: 450px;
  49. height: 450px;
  50. background-color: #fff;
  51. border-radius: 10px;
  52. }
  53. </style>