model-user-edit.component.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <ion-card>
  2. <ion-card-header>
  3. <ion-card-title>编辑个人资料</ion-card-title>
  4. <ion-card-subtitle>完善你的个人信息</ion-card-subtitle>
  5. </ion-card-header>
  6. <ion-card-content>
  7. <ion-item>
  8. <ion-icon slot="start" name="person-outline"></ion-icon>
  9. <ion-label position="stacked">用户名</ion-label>
  10. <ion-input type="text" [value]="userData.username" disabled></ion-input>
  11. </ion-item>
  12. <ion-item>
  13. <ion-icon slot="start" name="person-circle-outline"></ion-icon>
  14. <ion-label position="stacked">真实姓名</ion-label>
  15. <ion-input type="text" [value]="userData.realname" (ionChange)="userDataChange('realname',$event)"
  16. placeholder="请输入真实姓名">
  17. </ion-input>
  18. </ion-item>
  19. <ion-item>
  20. <ion-icon slot="start" name="transgender-outline"></ion-icon>
  21. <ion-label position="stacked">性别</ion-label>
  22. <ion-input type="text" [value]="userData.gender" (ionChange)="userDataChange('gender',$event)"
  23. placeholder="请输入性别">
  24. </ion-input>
  25. </ion-item>
  26. <ion-item>
  27. <ion-icon slot="start" name="calendar-outline"></ion-icon>
  28. <ion-label position="stacked">年龄</ion-label>
  29. <ion-input type="number" [value]="userData.age" (ionChange)="userDataChange('age',$event)"
  30. placeholder="请输入年龄">
  31. </ion-input>
  32. </ion-item>
  33. <div class="button-group">
  34. <ion-button expand="block" (click)="save()">保存</ion-button>
  35. <ion-button expand="block" fill="outline" (click)="cancel()">取消</ion-button>
  36. </div>
  37. </ion-card-content>
  38. </ion-card>