tab2.page.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <ion-header [translucent]="true">
  2. <ion-toolbar>
  3. <div class="search-bar">
  4. <input type="text" placeholder="输入关键词搜索科普文章">
  5. </div>
  6. <div class="header">
  7. <ion-card>
  8. <ion-card-header>
  9. <ion-card-title>
  10. <ion-segment [scrollable]="true" value="hotdot" [value]="type" (ionChange)="typeChange($event)">
  11. <ion-segment-button value="hotdot" content-id="hotdot">
  12. <ion-label>热点</ion-label>
  13. </ion-segment-button>
  14. <ion-segment-button value="export" content-id="export">
  15. <ion-label>专家科普</ion-label>
  16. </ion-segment-button>
  17. <ion-segment-button value="sleep" content-id="sleep">
  18. <ion-label>睡眠</ion-label>
  19. </ion-segment-button>
  20. <ion-segment-button value="life" content-id="life">
  21. <ion-label>生活</ion-label>
  22. </ion-segment-button>
  23. <ion-segment-button value="male" content-id="male">
  24. <ion-label>男性</ion-label>
  25. </ion-segment-button>
  26. <ion-segment-button value="female" content-id="female">
  27. <ion-label>女性</ion-label>
  28. </ion-segment-button>
  29. </ion-segment>
  30. </ion-card-title>
  31. </ion-card-header>
  32. </ion-card>
  33. </div>
  34. </ion-toolbar>
  35. </ion-header>
  36. <ion-content class="knowledge" [fullscreen]="true">
  37. <div class="content">
  38. <ion-card>
  39. <ion-card-content>
  40. <ion-segment-view>
  41. <ion-segment-content id="hotdot">
  42. <app-article-card *ngFor="let card of cards" [card]="card"></app-article-card>
  43. </ion-segment-content>
  44. <ion-segment-content id="export">
  45. <app-article-card *ngFor="let card of cards" [card]="card"></app-article-card>
  46. </ion-segment-content>
  47. <ion-segment-content id="sleep">
  48. <app-article-card *ngFor="let card of cards" [card]="card"></app-article-card>
  49. </ion-segment-content>
  50. <ion-segment-content id="life">
  51. <app-article-card *ngFor="let card of cards" [card]="card"></app-article-card>
  52. </ion-segment-content>
  53. <ion-segment-content id="male">
  54. <app-article-card *ngFor="let card of cards" [card]="card"></app-article-card>
  55. </ion-segment-content>
  56. <ion-segment-content id="female">
  57. <app-article-card *ngFor="let card of cards" [card]="card"></app-article-card>
  58. </ion-segment-content>
  59. </ion-segment-view>
  60. </ion-card-content>
  61. </ion-card>
  62. </div>
  63. </ion-content>