drug-category.page.html 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <ion-header>
  2. <ion-toolbar>
  3. <ion-buttons slot="start">
  4. <ion-button (click)="dismiss()">
  5. <ion-icon name="arrow-back"></ion-icon>
  6. </ion-button>
  7. </ion-buttons>
  8. <ion-title>{{ categoryName }}</ion-title>
  9. </ion-toolbar>
  10. </ion-header>
  11. <ion-content>
  12. <div class="product-container">
  13. <ng-container *ngFor="let product of products">
  14. <ion-card class="product-card" (click)="openDetailModal(product)">
  15. <ion-card-header class="product-card-header">
  16. <div class="product-tag">{{ product.get('title') || '药品详情' }}</div>
  17. </ion-card-header>
  18. <ion-card-content class="product-card-content">
  19. <div class="product-image-wrapper">
  20. <img [src]="product.get('image')" alt="{{product.get('name')}}" class="product-image">
  21. </div>
  22. <div class="product-info">
  23. <h3 class="product-name">{{ product.get('name') }}</h3>
  24. <div class="product-price">{{ product.get('price') }}</div>
  25. </div>
  26. </ion-card-content>
  27. </ion-card>
  28. </ng-container>
  29. </div>
  30. </ion-content>