| | |
| | | <div class="login-container"> |
| | | <div class="login-wrapper"> |
| | | <div class="info-wrapper enter-x"> |
| | | <div class="title-wrapper"> |
| | | <div class="logo"> |
| | | <img src="../assets/icons/logo.png" alt=""> |
| | | </div> |
| | | <p class="title">运维考核平台</p> |
| | | </div> |
| | | <div class="logo-wrapper"> |
| | | <img src="../assets/svg/login-box-bg.svg" alt=""> |
| | | </div> |
| | | <div class="title-wrapper"> |
| | | <p class="title">自贡公安天网运维平台</p> |
| | | </div> |
| | | </div> |
| | | <div class="form-wrapper"> |
| | |
| | | return { |
| | | codeUrl: "", |
| | | loginForm: { |
| | | username: "admin", |
| | | password: "admin123", |
| | | username: "", |
| | | password: "", |
| | | rememberMe: false, |
| | | code: "", |
| | | uuid: "" |
| | |
| | | this.loginInfo = loginInfo.user |
| | | //如果返回为1正常跳转 |
| | | if (this.loginInfo.firstLogin == 1) { |
| | | this.$router.push({ path: "/" }).catch(() => { }); |
| | | return; |
| | | this.$router.push({ path: this.redirect || "/" }).catch(() => { }); |
| | | // this.$router.push({ path: "/" }).catch(() => { }); |
| | | // return; |
| | | this.$router.push({ path: this.redirect || "/screen" }).catch(() => { }); |
| | | } else { |
| | | localStorage.setItem('firstLogin', 0) |
| | | } |
| | |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | position: relative; |
| | | |
| | | .logo-wrapper { |
| | | transform: translateX(-50px); |
| | | transform: translateX(-80px); |
| | | opacity: 0; |
| | | animation: enter-x 0.3s ease forwards; |
| | | |
| | |
| | | } |
| | | |
| | | .title-wrapper { |
| | | margin-top: 30px; |
| | | transform: translateX(-50px); |
| | | transform: translateX(-80px); |
| | | opacity: 0; |
| | | animation: enter-x 0.3s ease forwards; |
| | | animation-delay: 0.1s; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 50px; |
| | | |
| | | .title { |
| | | text-align: left; |
| | | font-size: 30px; |
| | | color: #fff; |
| | | margin-left: 10px; |
| | | } |
| | | } |
| | | } |
| | |
| | | align-items: center; |
| | | |
| | | .title { |
| | | transform: translateX(50px); |
| | | transform: translateX(80px); |
| | | opacity: 0; |
| | | animation: enter-x 0.3s ease forwards; |
| | | } |
| | | |
| | | .login-form { |
| | | transform: translateX(50px); |
| | | transform: translateX(80px); |
| | | opacity: 0; |
| | | animation: enter-x 0.3s ease forwards; |
| | | animation-delay: 0.1s; |