tab2.page.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <ion-header [translucent]="true">
  2. <ion-toolbar>
  3. <ion-title>
  4. 相册
  5. </ion-title>
  6. </ion-toolbar>
  7. </ion-header>
  8. <ion-content [fullscreen]="true">
  9. <ion-header collapse="condense">
  10. <ion-toolbar>
  11. <ion-title size="large">Tab 2</ion-title>
  12. </ion-toolbar>
  13. </ion-header>
  14. <div class="image-container">
  15. <!-- 第七张照片 -->
  16. <div class="photo-section">
  17. <div class="time-display">
  18. <!-- 第七张照片的时间 -->
  19. <p>2024-07-07 14:00</p>
  20. </div>
  21. <ion-img src="assets/photos/photo7.jpg" class="top-image" (click)="openImageInNewTab('assets/photos/photo7.jpg')"></ion-img>
  22. </div>
  23. <!-- 前六张照片 -->
  24. <div class="photo-section">
  25. <div class="time-display">
  26. <!-- 前六张照片的时间 -->
  27. <p>2024-07-07 12:00</p>
  28. </div>
  29. <div class="bottom-images">
  30. <ion-card *ngFor="let photo of ['photo6.jpg', 'photo5.jpg', 'photo4.jpg', 'photo3.jpg', 'photo2.jpg', 'photo1.jpg']" (click)="openImageInNewTab('assets/photos/' + photo)">
  31. <ion-img src="assets/photos/{{ photo }}"></ion-img>
  32. </ion-card>
  33. </div>
  34. </div>
  35. </div>
  36. </ion-content>