login.page.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <ion-content [fullscreen]="true" class="ion-text-center">
  2. <div class="login-container">
  3. <ion-card class="login-card">
  4. <ion-card-header>
  5. <ion-card-title>登录/注册</ion-card-title>
  6. </ion-card-header>
  7. <ion-card-content>
  8. <ion-list>
  9. <ion-item lines="none">
  10. <ion-label position="floating" class="label-login">账号</ion-label>
  11. <ion-input [(ngModel)]="username" placeholder="请输入用户名"></ion-input>
  12. </ion-item>
  13. <ion-item lines="none">
  14. <ion-label position="floating" class="label-login">密码</ion-label>
  15. <ion-input [(ngModel)]="password" type="password" placeholder="请输入密码"></ion-input>
  16. </ion-item>
  17. </ion-list>
  18. </ion-card-content>
  19. <ion-row class="ion-login">
  20. <ion-col size="6">
  21. <ion-button expand="block" (click)="login()" color="primary">登录</ion-button>
  22. </ion-col>
  23. <ion-col size="6">
  24. <ion-button expand="block" (click)="register()" color="primary">注册</ion-button>
  25. </ion-col>
  26. </ion-row>
  27. <!-- 返回按钮 -->
  28. <ion-row class="ion-back">
  29. <ion-col size="12">
  30. <ion-button expand="block" (click)="back()" color="primary">返回</ion-button>
  31. </ion-col>
  32. </ion-row>
  33. </ion-card>
  34. </div>
  35. </ion-content>