|
@@ -1,47 +1,53 @@
|
|
|
-<ion-header [translucent]="true">
|
|
|
- <ion-toolbar>
|
|
|
- <ion-title>资料编辑</ion-title>
|
|
|
- </ion-toolbar>
|
|
|
-</ion-header>
|
|
|
+<ion-content [fullscreen]="true" class="content-fullscreen">
|
|
|
+ <ion-grid class="edit">
|
|
|
+ <ion-row>
|
|
|
+ <ion-col size="12" class="header-col">
|
|
|
+ <h2>资料编辑</h2>
|
|
|
+ </ion-col>
|
|
|
+ </ion-row>
|
|
|
|
|
|
-<ion-content [fullscreen]="true">
|
|
|
- <ion-header collapse="condense">
|
|
|
- <ion-toolbar>
|
|
|
- <ion-title size="large">资料编辑</ion-title>
|
|
|
- </ion-toolbar>
|
|
|
- </ion-header>
|
|
|
+ <ion-row>
|
|
|
+ <ion-col size="12">
|
|
|
+ <ion-card class="card-full-width" >
|
|
|
+ <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-col>
|
|
|
+ </ion-row>
|
|
|
|
|
|
- <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-row class="button-row">
|
|
|
+ <ion-col size="6" class="button-col">
|
|
|
+ <ion-button expand="block" (click)="save()">保存</ion-button>
|
|
|
+ </ion-col>
|
|
|
+ <ion-col size="6" class="button-col">
|
|
|
+ <ion-button expand="block" (click)="cancel()">取消</ion-button>
|
|
|
+ </ion-col>
|
|
|
+ </ion-row>
|
|
|
+ </ion-grid>
|
|
|
</ion-content>
|