edit-info.page.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <ion-header [translucent]="true">
  2. <ion-toolbar>
  3. <ion-title>资料编辑</ion-title>
  4. </ion-toolbar>
  5. </ion-header>
  6. <ion-content [fullscreen]="true">
  7. <ion-header collapse="condense">
  8. <ion-toolbar>
  9. <ion-title size="large">资料编辑</ion-title>
  10. </ion-toolbar>
  11. </ion-header>
  12. <ion-card>
  13. <ion-card-header>
  14. <ion-card-title>{{currentUser?.get('username')}} - {{currentUser?.id}}</ion-card-title>
  15. </ion-card-header>
  16. <ion-card-content>
  17. <ion-list>
  18. <ion-item>
  19. <ion-input label="姓名" type="text" [(ngModel)]="userInfo.name"></ion-input>
  20. </ion-item>
  21. <ion-item>
  22. <ion-input label="手机" type="tel" [(ngModel)]="userInfo.mobile"></ion-input>
  23. </ion-item>
  24. <ion-item>
  25. <ion-select label="性别" [(ngModel)]="userInfo.gender">
  26. <ion-select-option value="男">男</ion-select-option>
  27. <ion-select-option value="女">女</ion-select-option>
  28. </ion-select>
  29. </ion-item>
  30. <ion-item>
  31. <ion-label>生日</ion-label>
  32. <ion-datetime-button datetime="birthday"></ion-datetime-button>
  33. <ion-modal [keepContentsMounted]="true">
  34. <ng-template>
  35. <ion-datetime id="birthday" displayFormat="MM/DD/YYYY" [(ngModel)]="userInfo.birthday"></ion-datetime>
  36. </ng-template>
  37. </ion-modal>
  38. </ion-item>
  39. </ion-list>
  40. </ion-card-content>
  41. </ion-card>
  42. <ion-button expand="block" (click)="save()">保存</ion-button>
  43. <ion-button expand="block" (click)="cancel()">取消</ion-button>
  44. </ion-content>