| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- <template>
- <div class="account">
- <div class="account-container">
- <div class="account-wrap-logo">
- <img src="@/assets/images/login/comnova-EYES2.png" alt="" />
- </div>
- <div class="account-wrap-login">
- <div class="login-pic">
- <div>
- <img src="~@/assets/images/login/login-pic.png" />
- </div>
- </div>
- <div class="login-form">
- <div class="login-form-container">
- <div class="account-top"> 欢迎您进入<br />安全管控开放平台 </div>
- <LoginForm v-if="tab === 'login'" ref="LoginFormRef" @go-register="changeGoRegister" />
- <RegisterForm v-else ref="RegisterFormRef" @back-login="changeBackLogin" />
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script lang="ts" setup>
- import { ref } from 'vue';
- import LoginForm from './LoginForm2.vue';
- import RegisterForm from './RegisterForm2.vue';
- const tab = ref('login');
- function changeBackLogin() {
- tab.value = 'login';
- }
- function changeGoRegister() {
- tab.value = 'register';
- }
- </script>
- <style lang="scss" scoped>
- .account {
- width: 100%;
- margin: 0 auto;
- &-container {
- width: 100%;
- min-height: 100vh;
- display: flex;
- flex-wrap: wrap;
- justify-content: center;
- padding: 15px;
- background: #fff;
- // background: -webkit-linear-gradient(-135deg, #c850c0, #4158d0);
- // background: -o-linear-gradient(-135deg, #c850c0, #4158d0);
- // background: -moz-linear-gradient(-135deg, #c850c0, #4158d0);
- // background: linear-gradient(-135deg, #c850c0, #4158d0);
- }
- &-wrap-logo {
- width: 1271px;
- @media (max-width: 1271px) {
- width: 100%;
- }
- }
- &-wrap-login {
- width: 1271px;
- height: 554px;
- background: #fff;
- // border-radius: 10px;
- overflow: hidden;
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- padding: 30px 95px 33px 95px;
- .login-pic {
- display: flex;
- // align-items: center;
- // flex-direction: column;
- // justify-content: center;
- img {
- max-width: 100%;
- }
- }
- .login-form {
- width: 350px;
- display: flex;
- flex-direction: column;
- &-container {
- margin: auto;
- width: 100%;
- }
- &-title {
- padding-bottom: 15px;
- text-align: center;
- }
- }
- @media (max-width: 1271px) {
- padding: 30px 0px 33px 0px;
- justify-content: center;
- }
- @media (max-width: 1010px) {
- .login-pic {
- display: none;
- }
- .login-form {
- width: min(100%, 350px);
- margin: auto;
- }
- }
- .account-top {
- text-align: center;
- font-size: 46px;
- font-family: YouSheBiaoTiHei;
- color: #1890ff;
- line-height: 60px;
- margin-bottom: 60px;
- @media (max-width: 400px) {
- font-size: 40px;
- }
- &-logo {
- text-align: center;
- margin-bottom: 10px;
- display: flex;
- align-items: center;
- justify-content: center;
- img {
- width: 45px;
- }
- .project-title {
- background: linear-gradient(92.06deg, #33c2ff -17.9%, #1e6fff 43.39%, #1e6fff 99.4%);
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- font-size: 24px;
- line-height: 1.25;
- font-weight: 500;
- margin-left: 10px;
- }
- }
- &-desc {
- font-size: 14px;
- color: #808695;
- margin-bottom: 20px;
- }
- }
- }
- // @media (max-width: 640px) {
- // &-wrap-login {
- // width: 100%;
- // padding: 30px;
- // height: auto;
- // }
- // }
- }
- </style>
|