From f4180dac4dc2f763c29b92941a8eb5a02c2a26ec Mon Sep 17 00:00:00 2001
From: yaoyanan <794433246@qq.com>
Date: Thu, 25 Mar 2021 18:49:54 +0800
Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5pc=E9=80=82=E9=85=8D?=
=?UTF-8?q?=E8=B0=83=E8=AF=95=EF=BC=88logo=E9=9C=80=E5=AE=8C=E5=96=84?=
=?UTF-8?q?=EF=BC=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/components/layouts/UserLayout.vue | 182 ++++++------------
jero-web/src/views/user/Login.vue | 85 ++++----
.../src/views/user/alteration/Alteration.vue | 3 +
jero-web/src/views/user/alteration/Step2.vue | 18 +-
4 files changed, 109 insertions(+), 179 deletions(-)
diff --git a/jero-web/src/components/layouts/UserLayout.vue b/jero-web/src/components/layouts/UserLayout.vue
index 41a618b2..ec615116 100644
--- a/jero-web/src/components/layouts/UserLayout.vue
+++ b/jero-web/src/components/layouts/UserLayout.vue
@@ -2,7 +2,13 @@
-
+
+

+
+ 合众未来
+ HEZHONGWEILAI
+
+
@@ -27,6 +33,16 @@
document.body.classList.remove('userLayout')
},
}
+ var comO,logo,logoImg
+ window.onresize = function(){
+ comO = document.getElementsByClassName("company")[0]
+ logo = document.getElementsByClassName("logo")[0]
+ logoImg = document.getElementsByClassName("logo-img")[0]
+ console.log(logo.width)
+ comO.style.left = (logoImg.width + 10) + 'px'
+ comO.style.height = logoImg.height + 'px'
+ logo.style.height = logoImg.height + 'px'
+ }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/jero-web/src/views/user/Login.vue b/jero-web/src/views/user/Login.vue
index 3e0b9317..1eedf707 100644
--- a/jero-web/src/views/user/Login.vue
+++ b/jero-web/src/views/user/Login.vue
@@ -28,7 +28,6 @@
type="password"
autocomplete="false"
placeholder="请输入密码"
- @paste.native.capture.prevent="handleOperate"
>
@@ -36,7 +35,7 @@
-
+
@@ -50,26 +49,29 @@
-
-
+
-
- 自动登录
+
+
+ 自动登录
+
-
+
-
- 忘记密码
-
+
+
+ 忘记密码
+
+
-
+
@@ -78,7 +80,6 @@
size="large"
type="primary"
htmlType="submit"
- class="login-button"
:loading="loginBtn"
@click.stop.prevent="handleSubmit"
:disabled="loginBtn">
@@ -162,14 +163,12 @@
//登录成功
this.loginSuccess()
}).catch((err) => {
- if (err.code === 500 && err.message === '验证码错误') {
+ if (err.code === 500) {
// 刷新验证码
this.handleChangeCheckCode();
}
that.requestFailed(err);
});
-
-
}else {
that.loginBtn = false;
}
@@ -201,7 +200,6 @@
setTimeout(hide, 0);
this.cmsFailed(res.message);
}
- console.log(res);
setTimeout(hide, 500);
})
.catch(err => {
@@ -215,15 +213,6 @@
}
);
},
- stepCaptchaSuccess () {
- this.loginSuccess()
- },
- stepCaptchaCancel () {
- this.Logout().then(() => {
- this.loginBtn = false
- this.stepCaptchaVisible = false
- })
- },
handleChangeCheckCode(){
this.currdatetime = new Date().getTime();
getAction(`/sys/randomImage/${this.currdatetime}`).then(res=>{
@@ -239,10 +228,7 @@
})
},
loginSuccess () {
- this.$router.push({ path: "/dashboard/analysis" }).catch((res)=>{
- console.log(res)
- // console.log('登录跳转首页出错,这个错误从哪里来的')
- })
+ this.$router.push({ path: "/dashboard/analysis" }).catch((res)=>{})
this.$notification.success({
message: '欢迎',
description: `${timeFix()},欢迎回来`,
@@ -283,9 +269,6 @@
inputCodeChange(e){
this.inputCodeContent = e.target.value
},
- loginSelectOk(){
- this.loginSuccess()
- },
getRouterData(){
this.$nextTick(() => {
if (this.$route.params.username) {
@@ -304,11 +287,14 @@
padding-left: 40px;
}
.ant-row{
- margin-bottom: 5%;
+ margin-bottom: 4%;
}
.user-layout-login{
- width: 550px;
- height: 650px;
+ width: 24%;
+ height: 56%;
+ padding: 3% 0 3% 0;
+ min-width: 400px;
+ min-height: 460px;
background: #fff;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
@@ -325,29 +311,28 @@
width: 100%;
height: 100%;
overflow: hidden;
+ display: flex;
+ justify-content: space-between;
+ flex-direction: column;
.title{
display: block;
color: #1891FF;
- font-size: 34px;
- font-weight: 700;
- margin: 12% 0 9% 0;
+ font-size: 28px;
+ font-weight: 500;
+ margin: 0 0 5% 0;
text-align: center;
}
- .login-button{
- margin: 5% 0 0 0;
+ .login-btn{
+ margin-bottom: 0;
+ font-size: 10px;
}
}
}
- @media screen and (max-width:1920px){ // 分辨率<=1920px
- .user-layout-login {
- width: 550px;
- height: 650px;
- }
- }
- @media screen and (max-width:1366px){ // 分辨率<=1366px
- .user-layout-login {
- width: 450px;
- height: 532px;
+ @media all and (max-width:600px){ // 分辨率<=600px
+ .user-layout-login{
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%,-50%);
}
}
diff --git a/jero-web/src/views/user/alteration/Alteration.vue b/jero-web/src/views/user/alteration/Alteration.vue
index 001d720a..d2b512cb 100644
--- a/jero-web/src/views/user/alteration/Alteration.vue
+++ b/jero-web/src/views/user/alteration/Alteration.vue
@@ -63,4 +63,7 @@
max-width: 750px;
margin: 16px auto;
}
+ .ant-steps-item{
+ overflow: hidden;
+ }
\ No newline at end of file
diff --git a/jero-web/src/views/user/alteration/Step2.vue b/jero-web/src/views/user/alteration/Step2.vue
index 78b89848..a8db118b 100644
--- a/jero-web/src/views/user/alteration/Step2.vue
+++ b/jero-web/src/views/user/alteration/Step2.vue
@@ -4,31 +4,32 @@
+
-
-
+
+
-
+