diff --git a/src/app/pages/lockscreen/lockscreen.component.html b/src/app/pages/lockscreen/lockscreen.component.html index 35e50bb..bd55be4 100644 --- a/src/app/pages/lockscreen/lockscreen.component.html +++ b/src/app/pages/lockscreen/lockscreen.component.html @@ -1,13 +1,18 @@
-

考试系统

+
+
+ +

消防救援单位信息考核系统

+
+
- - + +
@@ -20,20 +25,13 @@
-
- -
- -
- {{errmsg}} -
- +
+
{{errmsg}}
+ +
-
-

arrow_drop_down_circle

-
\ No newline at end of file diff --git a/src/app/pages/lockscreen/lockscreen.component.scss b/src/app/pages/lockscreen/lockscreen.component.scss index c872d8a..de121e5 100644 --- a/src/app/pages/lockscreen/lockscreen.component.scss +++ b/src/app/pages/lockscreen/lockscreen.component.scss @@ -1,76 +1,31 @@ .content { width: 100%; height: 100%; - max-height: 100%; display: flex; - justify-content:center; - align-items: center; - background: url('../../../assets//images/loginBGC.png'); - background-repeat:no-repeat; - background-size:100% 100%; - -moz-background-size:100% 100%; -} - -.loginBox { - min-width: 1080px; - min-height: 610px; - margin: 0 auto; - width: 70%; - text-align: center; + overflow: hidden; box-sizing: border-box; - position: relative; - - .loginBackground{ - width: 100%; - height: 100%; - margin: 0 auto; - } - .center { - width: 30%; - box-sizing: border-box; - margin: 0 auto; - position: absolute; - top: 24%; - right: 16%; + padding: 1px; + .leftBox { + flex: 70%; + background: url('../../../assets/images/loginBackground.png'); + background-size: 100% 100%; } -} - -.header { - width: 100%; - text-align: center; - position: fixed; - top: 60px; - font-size: 46px; - font-weight: 800; - color: #fff; - font-family: 'NSimSun'; -} -.footer { - width: 100%; - text-align: center; - position: fixed; - bottom: 35px; - font-size: 14px; - color: white; -} -.toLogin{ - color: #B0B0B0; - transform: rotate(90deg); - transform-origin: center center; - position: fixed; - left: 1%; - bottom: 1%; - cursor:pointer; - mat-icon{ - width: 36px; - height: 36px; - font-size: 36px; - cursor:pointer; + .loginBox { + flex: 30%; + position: relative; + display: flex; + // align-items: center; + background-color: #fff; + .center { + width: 60%; + margin: 0 auto; + text-align: center; + box-sizing: border-box; + padding-top: 120px; + } } } - - // 表单内部样式 .forget{ width: 100%; @@ -79,7 +34,7 @@ label { box-sizing: border-box; font-size: 14px; - color: #2196f3; + color: #07CDCF; cursor:pointer; } } @@ -93,7 +48,7 @@ width: 100%; color: white; border-radius: 5px; - background:linear-gradient(to right,#4DA3FE,#52b9fe,#56cdff) + background:linear-gradient(to right,#07CDCF,#07CDCF,#0ad6da); } //input 框 + 字体图标 .input { @@ -102,14 +57,13 @@ position: relative; .role{ box-sizing: border-box; - margin: 0px 15px; + padding: 10px 0; + margin: 0 10px; display: inline-block; - width: 30%; text-align: center; - font-size: 26px; - font-weight: 800; - font-family: 'NSimSun'; - color: #4DA1FE; + font-size: 18px; + font-weight: 550; + color: #07CDCF; cursor:pointer; } input { @@ -119,6 +73,8 @@ height: 36px; padding-left: 30px; } + img { width: 75px; height: 80px; } + h1 { font-size:28px; font-weight:700; margin-top:25px; font-style:italic; } } .icon { width: 24px; @@ -136,8 +92,20 @@ top: 7px; left: 8px; } +.toAdmin { + display: inline-block; + width: 100%; + text-align: center; + font-size: 14px; + font-weight: 550; + color: #07CDCF; + cursor:pointer; + position: absolute; + bottom: 25px; + left: 0; +} //class名是否选中 .isCheck { - border-bottom: 3px solid #4DA1FE; + border-bottom: 3px solid #07CDCF; } \ No newline at end of file diff --git a/src/app/pages/lockscreen/lockscreen.component.ts b/src/app/pages/lockscreen/lockscreen.component.ts index 9ef9b3e..f83430d 100644 --- a/src/app/pages/lockscreen/lockscreen.component.ts +++ b/src/app/pages/lockscreen/lockscreen.component.ts @@ -36,11 +36,7 @@ export class LockscreenComponent implements OnInit { sessionStorage.setItem("token",data.token); sessionStorage.setItem("refreshToken",data.refreshToken); this.token.startUp(); //登陆成功启动定时器刷新token - const config = new MatSnackBarConfig(); - config.verticalPosition = 'top'; - config.duration = 3000 this.router.navigate(['/home/createexam']) //登陆成功跳转页面 - this.snackBar.open('登陆成功','确定',config); },(err) => {this.errmsg = err}) } diff --git a/src/app/pages/login/login.component.html b/src/app/pages/login/login.component.html index 0ddf531..3b7b8fa 100644 --- a/src/app/pages/login/login.component.html +++ b/src/app/pages/login/login.component.html @@ -1,33 +1,31 @@ -
+
-

灭火救援指挥培训系统 (管理员)

-
-
+
+
+ 考核系统管理员登录页面 + +
account_box - +
lock - +
+ +
+
{{errmsg}}
+ + -
- -
- -
- {{errmsg}} -
- - -
+
+
+
-

arrow_drop_down_circle

-
\ No newline at end of file diff --git a/src/app/pages/login/login.component.scss b/src/app/pages/login/login.component.scss index 09c8307..dd3e43a 100644 --- a/src/app/pages/login/login.component.scss +++ b/src/app/pages/login/login.component.scss @@ -1,81 +1,66 @@ -.content { +.login { width: 100%; height: 100%; - max-height: 100%; - background: url('../../../assets//images/loginBackground.jpg'); - background-repeat:no-repeat; + overflow: hidden; + box-sizing: border-box; + padding: 1px; + background: url('../../../assets/images/loginBackground.png'); background-size:100% 100%; - -moz-background-size:100% 100%; } - .loginBox { - margin: 0 auto; - width: 40%; - text-align: center; - box-sizing: border-box; - padding: 8% 0; - .header { - font-size: 34px; - font-weight: 650; - font-family: 'NSimSun'; - } - .center { - padding: 100px 0; - width: 50%; - box-sizing: border-box; - margin: 0 auto; - } -} -.footer { width: 100%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; +} + +.card { + width: 500px; + height: 355px; + border-radius: 10px; + padding-top: 30px; + background-color: #fff; text-align: center; - position: fixed; - bottom: 35px; - color: #858688; - font-size: 14px; + box-shadow:0px 0px 10px 5px #333; + position: relative; + .example-container { width: 60%; margin: 0 auto; } } -.toLogin{ - color: #B0B0B0; - transform: rotate(270deg); - transform-origin: center center; - position: fixed; - left: 1%; - bottom: 1%; - cursor:pointer; - mat-icon{ - width: 36px; - height: 36px; - font-size: 36px; - cursor:pointer; - } +.cardheader{ + font-size: 26px; + font-weight: 700; + font-style: italic; + color: #07CDCF; } - - // 表单内部样式 .forget{ - margin: 30px auto; + width: 100%; + text-align: right; + margin: 15px auto; label { - margin-left: 80%; box-sizing: border-box; font-size: 14px; - color: #2196f3; + color: #07CDCF; cursor:pointer; } } .alert-danger { - margin-bottom: 30px; + margin-bottom: 10px; text-align: left; font-size: 14px; color: red; } .loginBtn { width: 100%; + color: white; + border-radius: 5px; + background:linear-gradient(to right,#07CDCF,#07CDCF,#0ad6da); } //input 框 + 字体图标 .input { width: 100%; - margin: 30px auto; + margin: 35px auto 0; position: relative; input { width: 90%; @@ -100,4 +85,16 @@ position: absolute; top: 7px; left: 8px; +} +.toAdmin { + display: inline-block; + width: 100%; + text-align: center; + font-size: 14px; + font-weight: 550; + color: #07CDCF; + cursor:pointer; + position: absolute; + bottom: 10px; + left: 0; } \ No newline at end of file diff --git a/src/app/pages/login/login.component.ts b/src/app/pages/login/login.component.ts index 8299f2b..83c5cae 100644 --- a/src/app/pages/login/login.component.ts +++ b/src/app/pages/login/login.component.ts @@ -36,11 +36,7 @@ export class LoginComponent implements OnInit { sessionStorage.setItem("token",data.token); sessionStorage.setItem("refreshToken",data.refreshToken); this.token.startUp(); //登陆成功启动定时器刷新token - const config = new MatSnackBarConfig(); - config.verticalPosition = 'top'; - config.duration = 3000 this.router.navigate(['/home/createexam']) //登陆成功跳转页面 - this.snackBar.open('登陆成功','确定',config); },(err) => {this.errmsg = err}) } diff --git a/src/assets/images/login.gif b/src/assets/images/login.gif deleted file mode 100644 index 91438e2..0000000 Binary files a/src/assets/images/login.gif and /dev/null differ diff --git a/src/assets/images/login.png b/src/assets/images/login.png deleted file mode 100644 index 4252287..0000000 Binary files a/src/assets/images/login.png and /dev/null differ diff --git a/src/assets/images/loginBGC.png b/src/assets/images/loginBGC.png deleted file mode 100644 index 42677c3..0000000 Binary files a/src/assets/images/loginBGC.png and /dev/null differ diff --git a/src/assets/images/loginBackground.jpg b/src/assets/images/loginBackground.jpg deleted file mode 100644 index 72a0a3c..0000000 Binary files a/src/assets/images/loginBackground.jpg and /dev/null differ diff --git a/src/assets/images/loginHeader.png b/src/assets/images/loginHeader.png new file mode 100644 index 0000000..8db0891 Binary files /dev/null and b/src/assets/images/loginHeader.png differ