tab2.page.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <ion-header [translucent]="true">
  2. <ion-toolbar>
  3. <ion-title>
  4. 健康科普
  5. </ion-title>
  6. </ion-toolbar>
  7. </ion-header>
  8. <ion-content class="knowledge" [fullscreen]="true">
  9. <div class="search-bar">
  10. <input type="text" placeholder="输入关键词搜索科普文章">
  11. </div>
  12. <div class="content">
  13. <ion-card>
  14. <ion-card-header>
  15. <ion-card-title>
  16. <ion-segment [scrollable]="true" value="hotdot" [value]="type" (ionChange)="typeChange($event)">
  17. <ion-segment-button value="hotdot" content-id="hotdot">
  18. <ion-label>热点</ion-label>
  19. </ion-segment-button>
  20. <ion-segment-button value="export" content-id="export">
  21. <ion-label>专家科普</ion-label>
  22. </ion-segment-button>
  23. <ion-segment-button value="sleep" content-id="sleep">
  24. <ion-label>睡眠</ion-label>
  25. </ion-segment-button>
  26. <ion-segment-button value="life" content-id="life">
  27. <ion-label>生活</ion-label>
  28. </ion-segment-button>
  29. <ion-segment-button value="male" content-id="male">
  30. <ion-label>男性</ion-label>
  31. </ion-segment-button>
  32. <ion-segment-button value="female" content-id="female">
  33. <ion-label>女性</ion-label>
  34. </ion-segment-button>
  35. </ion-segment>
  36. </ion-card-title>
  37. <!-- <ion-card-subtitle>请输入账号密码</ion-card-subtitle> -->
  38. </ion-card-header>
  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. <div class="knowledge-cards">
  64. </div>
  65. </ion-content>