|
@@ -1,47 +1,32 @@
|
|
|
-<ion-header [translucent]="true">
|
|
|
+<ion-header>
|
|
|
<ion-toolbar>
|
|
|
- <ion-title>资料编辑</ion-title>
|
|
|
+ <ion-title>编辑信息</ion-title>
|
|
|
</ion-toolbar>
|
|
|
</ion-header>
|
|
|
|
|
|
-<ion-content [fullscreen]="true">
|
|
|
- <ion-header collapse="condense">
|
|
|
- <ion-toolbar>
|
|
|
- <ion-title size="large">资料编辑</ion-title>
|
|
|
- </ion-toolbar>
|
|
|
- </ion-header>
|
|
|
-
|
|
|
- <ion-card>
|
|
|
- <ion-card-header>
|
|
|
- <ion-card-title>{{currentUser?.get('username')}} - {{currentUser?.id}}</ion-card-title>
|
|
|
- </ion-card-header>
|
|
|
- <ion-card-content>
|
|
|
- <ion-list>
|
|
|
- <ion-item>
|
|
|
- <ion-input label="姓名" type="text" [(ngModel)]="userInfo.name"></ion-input>
|
|
|
- </ion-item>
|
|
|
- <ion-item>
|
|
|
- <ion-input label="手机" type="tel" [(ngModel)]="userInfo.mobile"></ion-input>
|
|
|
- </ion-item>
|
|
|
- <ion-item>
|
|
|
- <ion-select label="性别" [(ngModel)]="userInfo.gender">
|
|
|
- <ion-select-option value="男">男</ion-select-option>
|
|
|
- <ion-select-option value="女">女</ion-select-option>
|
|
|
- </ion-select>
|
|
|
- </ion-item>
|
|
|
- <ion-item>
|
|
|
- <ion-label>生日</ion-label>
|
|
|
- <ion-datetime-button datetime="birthday"></ion-datetime-button>
|
|
|
- <ion-modal [keepContentsMounted]="true">
|
|
|
- <ng-template>
|
|
|
- <ion-datetime id="birthday" displayFormat="MM/DD/YYYY" [(ngModel)]="userInfo.birthday"></ion-datetime>
|
|
|
- </ng-template>
|
|
|
- </ion-modal>
|
|
|
- </ion-item>
|
|
|
- </ion-list>
|
|
|
- </ion-card-content>
|
|
|
- </ion-card>
|
|
|
-
|
|
|
- <ion-button expand="block" (click)="save()">保存</ion-button>
|
|
|
- <ion-button expand="block" (click)="cancel()">取消</ion-button>
|
|
|
+<ion-content>
|
|
|
+ <ion-list>
|
|
|
+ <ion-item>
|
|
|
+ <ion-label position="floating">姓名</ion-label>
|
|
|
+ <ion-input [(ngModel)]="userInfo.name"></ion-input>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item>
|
|
|
+ <ion-label position="floating">手机号码</ion-label>
|
|
|
+ <ion-input [(ngModel)]="userInfo.mobile"></ion-input>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item>
|
|
|
+ <ion-label position="floating">性别</ion-label>
|
|
|
+ <ion-select [(ngModel)]="userInfo.gender">
|
|
|
+ <ion-select-option value="male">男</ion-select-option>
|
|
|
+ <ion-select-option value="female">女</ion-select-option>
|
|
|
+ <ion-select-option value="other">其他</ion-select-option>
|
|
|
+ </ion-select>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item>
|
|
|
+ <ion-label position="floating">生日</ion-label>
|
|
|
+ <ion-datetime displayFormat="YYYY-MM-DD" [(ngModel)]="userInfo.birthday"></ion-datetime>
|
|
|
+ </ion-item>
|
|
|
+ </ion-list>
|
|
|
+ <ion-button expand="full" (click)="save()">保存</ion-button>
|
|
|
+ <ion-button expand="full" (click)="cancel()">取消</ion-button>
|
|
|
</ion-content>
|