tab1.page.html 680 B

1234567891011121314151617181920212223
  1. <ion-header>
  2. <ion-toolbar>
  3. <ion-title>
  4. Photos
  5. </ion-title>
  6. </ion-toolbar>
  7. </ion-header>
  8. <ion-content>
  9. <ion-searchbar (ionInput)="onSearch($event)"></ion-searchbar>
  10. <!-- 图片上传按钮和标签输入框 -->
  11. <ion-button (click)="openFilePicker()">
  12. Upload Photo
  13. </ion-button>
  14. <ion-input placeholder="Tags (comma separated)" [(ngModel)]="newPhotoTags"></ion-input>
  15. <div class="photo-container">
  16. <div class="photo-wrapper" *ngFor="let photo of displayedPhotos; let i = index">
  17. <ion-img [src]="photo.url" alt="Photo {{photo.id}}" (click)="openFullscreen(photo.url)"></ion-img>
  18. </div>
  19. </div>
  20. </ion-content>