14 changed files with 130 additions and 182 deletions
@ -1,52 +1,32 @@ |
|||||||
<div class="login"> |
<div class="content"> |
||||||
<div class="loginbox"> |
<div class="loginBox"> |
||||||
|
<h1 class="header">指挥长 (员) 战术战法培训系统</h1> |
||||||
<div class="intro"> |
|
||||||
<p>数据采集管理平台</p> |
|
||||||
<!-- <span> |
|
||||||
数字化预案编制管理应用平台集重点单位的数字化预案资源的管理、分析及调用为一体,可实现辖区内预案使用的高效化、集约化、统一化、标准化管理。同时,可将消防现有的三维预案、图片式预案、卡片式预案、二维预案、视频预案等接入至系统中进行更加全面、真实、直观、生动的展示各项单位预案数据,方便进行预案资源调用,更好的服务实战指挥。 |
|
||||||
</span> --> |
|
||||||
</div> |
|
||||||
|
|
||||||
<div class="card"> |
|
||||||
<div class="loginImg"> |
|
||||||
<img src="../../../assets/images/login.gif"> |
|
||||||
|
|
||||||
<p class="cardheader">登录</p> |
|
||||||
</div> |
|
||||||
|
|
||||||
<mat-card> |
|
||||||
|
|
||||||
|
<div class="center"> |
||||||
<form (ngSubmit)="onSubmit(form.value)" #form="ngForm" class="example-container"> |
<form (ngSubmit)="onSubmit(form.value)" #form="ngForm" class="example-container"> |
||||||
<mat-icon class="icon">account_box</mat-icon> |
|
||||||
<mat-icon class="icon2">lock</mat-icon> |
|
||||||
<mat-form-field> |
|
||||||
<input matInput id="name" name="name" |
|
||||||
required |
|
||||||
ngModel #name="ngModel" placeholder="请输入账号"> |
|
||||||
</mat-form-field> |
|
||||||
|
|
||||||
<mat-form-field> |
<div class="input"> |
||||||
<input matInput id="password" name="password" type='password' |
<mat-icon class="icon">account_box</mat-icon> |
||||||
required minlength="8" |
<input id="name" name="name" required ngModel placeholder="请输入账号"> |
||||||
ngModel #password="ngModel" placeholder="请输入密码"> |
</div> |
||||||
</mat-form-field> |
|
||||||
|
<div class="input"> |
||||||
|
<mat-icon class="icon2">lock</mat-icon> |
||||||
|
<input id="password" name="password" type='password' required ngModel placeholder="请输入密码"> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="forget"> |
||||||
|
<label (click)='forget()'>忘记密码?</label> |
||||||
|
</div> |
||||||
|
|
||||||
<div *ngIf="errmsg" class="alert-danger"> |
<div *ngIf="errmsg" class="alert-danger"> |
||||||
{{errmsg}} |
{{errmsg}} |
||||||
</div> |
</div> |
||||||
<a href="javascript:void(0);" (click)='open()'> |
|
||||||
忘记密码? |
<button type="submit" [disabled]="!form.form.valid" class="loginBtn" mat-raised-button color="primary">登录</button> |
||||||
</a> |
|
||||||
<button type="submit" [disabled]="!form.form.valid" class="loginbtn"mat-button>登录</button> |
|
||||||
</form> |
</form> |
||||||
|
</div> |
||||||
|
|
||||||
<div class="website"> |
|
||||||
<p>北京安信科创有限公司提供技术支持和维护</p> |
|
||||||
</div> |
|
||||||
|
|
||||||
</mat-card> |
|
||||||
</div> |
|
||||||
|
|
||||||
</div> |
</div> |
||||||
|
<p class="footer">Copyright 2019 北京安信科创软件有限公司出品</p> |
||||||
</div> |
</div> |
@ -1,115 +1,88 @@ |
|||||||
|
.content { |
||||||
.login { |
|
||||||
width: 100%; |
width: 100%; |
||||||
height: 100%; |
height: 100%; |
||||||
// background: url('../../../assets/images/bg_login.jpg'); |
max-height: 100%; |
||||||
|
background: url('../../../assets//images/loginBackground.jpg'); |
||||||
.loginbox { |
background-repeat:no-repeat; |
||||||
width: 100%; |
background-size:100% 100%; |
||||||
height: 100%; |
-moz-background-size:100% 100%; |
||||||
background-color: #000; |
} |
||||||
background: rgba(0,0,0,0.5);/*盒子背景透明*/ |
|
||||||
position: relative; |
|
||||||
} |
|
||||||
|
|
||||||
.intro { |
.loginBox { |
||||||
width: 35%; |
margin: 0 auto; |
||||||
position: fixed; |
width: 40%; |
||||||
top:35%; |
text-align: center; |
||||||
left: 15%; |
box-sizing: border-box; |
||||||
p { |
padding: 8% 0; |
||||||
font-size: 36px; |
.header { |
||||||
color:white; |
font-size: 34px; |
||||||
margin-bottom: 35px; |
font-weight: 650; |
||||||
} |
font-family: 'NSimSun'; |
||||||
span { |
|
||||||
font-size: 16px; |
|
||||||
color:white; |
|
||||||
opacity: 0.5; |
|
||||||
} |
|
||||||
} |
} |
||||||
|
.center { |
||||||
.card{ |
padding: 100px 0; |
||||||
width: 460px; |
width: 50%; |
||||||
height: 100%; |
box-sizing: border-box; |
||||||
background-color: #fff; |
margin: 0 auto; |
||||||
position: absolute; |
|
||||||
right: 0; |
|
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
.footer { |
||||||
.example-container { |
|
||||||
display: flex; |
|
||||||
flex-direction: column; |
|
||||||
width: 100%; |
width: 100%; |
||||||
} |
text-align: center; |
||||||
.loginbtn { |
position: fixed; |
||||||
margin-top: 25px; |
bottom: 35px; |
||||||
height: 35px; |
color: #858688; |
||||||
background-color:#039be5; |
font-size: 14px; |
||||||
border-radius: 15px; |
|
||||||
color: #fff;; |
|
||||||
} |
|
||||||
.mat-card { |
|
||||||
box-shadow: 0 0 0; |
|
||||||
margin-top: 140px; |
|
||||||
} |
} |
||||||
|
|
||||||
.applyfor { |
|
||||||
font-size: 16px; |
|
||||||
a { |
|
||||||
color: #039be5; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
.website { |
|
||||||
font-size: 14px; |
// 表单内部样式 |
||||||
text-align: center; |
.forget{ |
||||||
margin-top: 60px; |
margin: 30px auto; |
||||||
|
label { |
||||||
|
margin-left: 80%; |
||||||
|
box-sizing: border-box; |
||||||
|
font-size: 14px; |
||||||
|
color: #2196f3; |
||||||
|
cursor:pointer; |
||||||
|
} |
||||||
} |
} |
||||||
.alert-danger { |
.alert-danger { |
||||||
|
margin-bottom: 30px; |
||||||
|
text-align: left; |
||||||
font-size: 14px; |
font-size: 14px; |
||||||
color: red; |
color: red; |
||||||
} |
} |
||||||
.cardheader{ |
.loginBtn { |
||||||
font-size: 26px; |
width: 100%; |
||||||
font-weight: 500; |
|
||||||
margin-top: 20px; |
|
||||||
} |
|
||||||
.mat-card { |
|
||||||
margin-top: 10px; |
|
||||||
padding-left: 20px; |
|
||||||
} |
|
||||||
.mat-form-field { |
|
||||||
padding-left: 20px;; |
|
||||||
} |
|
||||||
.loginImg { |
|
||||||
margin-top: 90px; |
|
||||||
text-align: center; |
|
||||||
} |
} |
||||||
.mat-input-element { |
//input 框 + 字体图标 |
||||||
|
.input { |
||||||
|
width: 100%; |
||||||
|
margin: 30px auto; |
||||||
position: relative; |
position: relative; |
||||||
|
input { |
||||||
|
width: 90%; |
||||||
|
border-radius: 5px; |
||||||
|
border: 1px solid #999; |
||||||
|
height: 36px; |
||||||
|
padding-left: 30px; |
||||||
|
} |
||||||
} |
} |
||||||
.mat-card .example-container .icon { |
.icon { |
||||||
width: 24px; |
width: 24px; |
||||||
color: #666; |
color: #B5BBBC; |
||||||
font-size: 24px; |
font-size: 24px; |
||||||
position: absolute; |
position: absolute; |
||||||
top:36px; |
top: 7px; |
||||||
left: 15px; |
left: 8px; |
||||||
} |
} |
||||||
.mat-card .example-container .icon2 { |
.icon2 { |
||||||
width: 24px; |
width: 24px; |
||||||
color: #666; |
color: #B5BBBC; |
||||||
font-size: 24px; |
font-size: 24px; |
||||||
position: absolute; |
position: absolute; |
||||||
top:100px; |
top: 7px; |
||||||
left: 15px; |
left: 8px; |
||||||
} |
|
||||||
a { |
|
||||||
font-size: 14px; |
|
||||||
color: #0066FF; |
|
||||||
margin-left: 250px; |
|
||||||
} |
} |
After Width: | Height: | Size: 71 KiB |
Loading…
Reference in new issue