|
@@ -0,0 +1,33 @@
|
|
|
+<ion-header [translucent]="true">
|
|
|
+ <ion-toolbar>
|
|
|
+ <ion-title>register</ion-title>
|
|
|
+ </ion-toolbar>
|
|
|
+ </ion-header>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <ion-content class="ion-text-center">
|
|
|
+ <ion-card>
|
|
|
+ <ion-card-header>
|
|
|
+ 注册
|
|
|
+ </ion-card-header>
|
|
|
+ <ion-card-content>
|
|
|
+ <ion-item>
|
|
|
+ <ion-label position="floating">用户名</ion-label>
|
|
|
+ <ion-input type="text" [(ngModel)]="username"></ion-input>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item>
|
|
|
+ <ion-label position="floating">密码</ion-label>
|
|
|
+ <ion-input type="password" [(ngModel)]="password"></ion-input>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item>
|
|
|
+ <ion-label position="floating">确认密码</ion-label>
|
|
|
+ <ion-input type="password" [(ngModel)]="confirmPassword"></ion-input>
|
|
|
+ </ion-item>
|
|
|
+ <ion-button expand="full" (click)="register()">确认注册</ion-button>
|
|
|
+ <ion-button expand="full" (click)="goToLogin()">返回登录</ion-button>
|
|
|
+ <ion-text *ngIf="registerFailed" color="danger">注册失败</ion-text>
|
|
|
+ </ion-card-content>
|
|
|
+ </ion-card>
|
|
|
+ </ion-content>
|
|
|
+
|