|
|
@ -16,9 +16,7 @@ |
|
|
|
<form (ngSubmit)="onSubmit(form.value)" #form="ngForm" class="example-container"> |
|
|
|
<form (ngSubmit)="onSubmit(form.value)" #form="ngForm" class="example-container"> |
|
|
|
|
|
|
|
|
|
|
|
<mat-form-field> |
|
|
|
<mat-form-field> |
|
|
|
<input matInput id="name" name="name" |
|
|
|
<input matInput id="name" name="name" required ngModel #name="ngModel" placeholder="请输入账号"> |
|
|
|
required |
|
|
|
|
|
|
|
ngModel #name="ngModel" placeholder="请输入账号"> |
|
|
|
|
|
|
|
</mat-form-field> |
|
|
|
</mat-form-field> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <div *ngIf="name.invalid && (name.dirty || name.touched)" |
|
|
|
<!-- <div *ngIf="name.invalid && (name.dirty || name.touched)" |
|
|
@ -29,11 +27,11 @@ |
|
|
|
</div> --> |
|
|
|
</div> --> |
|
|
|
|
|
|
|
|
|
|
|
<mat-form-field> |
|
|
|
<mat-form-field> |
|
|
|
<input matInput id="email" name="email" |
|
|
|
<input matInput id="email" name="email" required |
|
|
|
required pattern="^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$" |
|
|
|
pattern="^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$" ngModel #email="ngModel" |
|
|
|
ngModel #email="ngModel" placeholder="请输入邮箱"> |
|
|
|
placeholder="请输入邮箱"> |
|
|
|
</mat-form-field> |
|
|
|
</mat-form-field> |
|
|
|
<!-- |
|
|
|
<!-- |
|
|
|
<div *ngIf="email.invalid && (email.dirty || email.touched)" |
|
|
|
<div *ngIf="email.invalid && (email.dirty || email.touched)" |
|
|
|
class="alert-danger"> |
|
|
|
class="alert-danger"> |
|
|
|
<div *ngIf="email.errors.required"> |
|
|
|
<div *ngIf="email.errors.required"> |
|
|
@ -45,9 +43,8 @@ |
|
|
|
</div> --> |
|
|
|
</div> --> |
|
|
|
|
|
|
|
|
|
|
|
<mat-form-field> |
|
|
|
<mat-form-field> |
|
|
|
<input matInput id="password" name="password" type='password' |
|
|
|
<input matInput id="password" name="password" type='password' required minlength="8" ngModel |
|
|
|
required minlength="8" |
|
|
|
#password="ngModel" placeholder="请输入密码"> |
|
|
|
ngModel #password="ngModel" placeholder="请输入密码"> |
|
|
|
|
|
|
|
</mat-form-field> |
|
|
|
</mat-form-field> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <div *ngIf="password.invalid && (password.dirty || password.touched)" |
|
|
|
<!-- <div *ngIf="password.invalid && (password.dirty || password.touched)" |
|
|
@ -62,7 +59,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<mat-checkbox style="margin-top: 25px;">请同意不扩散核武器条约条约</mat-checkbox> |
|
|
|
<mat-checkbox style="margin-top: 25px;">请同意不扩散核武器条约条约</mat-checkbox> |
|
|
|
|
|
|
|
|
|
|
|
<button type="submit" [disabled]="!form.form.valid" class="loginbtn"mat-button>注册</button> |
|
|
|
<button type="submit" [disabled]="!form.form.valid" class="loginbtn" mat-button>注册</button> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
|
|
<div class="applyfor"> |
|
|
|
<div class="applyfor"> |
|
|
@ -76,6 +73,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
</mat-card> |
|
|
|
</mat-card> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |