tab4.page.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <ion-header>
  2. <ion-toolbar color="light" class="header">
  3. <ion-searchbar placeholder="搜索"></ion-searchbar>
  4. <ion-buttons slot="end">
  5. <ion-button>
  6. <ion-icon name="ellipsis-horizontal"></ion-icon>
  7. </ion-button>
  8. </ion-buttons>
  9. <ion-button color="light">
  10. <ion-icon name="document"></ion-icon>
  11. 我的订单
  12. </ion-button>
  13. <ion-button color="light">
  14. <ion-icon name="cart"></ion-icon>
  15. 购物车
  16. </ion-button>
  17. <ion-button color="light">
  18. <ion-icon name="ticket"></ion-icon>
  19. 红包/卡券
  20. </ion-button>
  21. <ion-button color="light">
  22. <ion-icon name="time"></ion-icon>
  23. 浏览记录
  24. </ion-button>
  25. </ion-toolbar>
  26. </ion-header>
  27. <ion-content>
  28. <ion-segment [(ngModel)]="segmentModel">
  29. <ion-segment-button value="aiRecommend">
  30. AI推荐
  31. </ion-segment-button>
  32. <ion-segment-button value="seasonHot">
  33. 当季热门
  34. </ion-segment-button>
  35. <ion-segment-button value="styleChange">
  36. 风格转换
  37. </ion-segment-button>
  38. <ion-segment-button value="selectedProducts">
  39. 精选商品
  40. </ion-segment-button>
  41. <ion-segment-button value="favoriteProducts">
  42. 收藏商品
  43. </ion-segment-button>
  44. </ion-segment>
  45. <!-- Content for each segment -->
  46. <ion-grid *ngIf="segmentModel === 'aiRecommend'">
  47. <!-- AI推荐内容 -->
  48. <ion-row>
  49. <ion-col size="6" *ngFor="let item of aiRecommendItems">
  50. <ion-card>
  51. <img src="{{item.image}}" />
  52. <ion-card-content>
  53. <ion-label>{{item.label}}</ion-label>
  54. </ion-card-content>
  55. </ion-card>
  56. </ion-col>
  57. </ion-row>
  58. </ion-grid>
  59. <ion-grid *ngIf="segmentModel === 'seasonHot'">
  60. <!-- 当季热门内容 -->
  61. </ion-grid>
  62. <ion-grid *ngIf="segmentModel === 'styleChange'">
  63. <!-- 风格转换内容 -->
  64. </ion-grid>
  65. <ion-grid *ngIf="segmentModel === 'selectedProducts'">
  66. <!-- 精选商品内容 -->
  67. </ion-grid>
  68. <ion-grid *ngIf="segmentModel === 'favoriteProducts'">
  69. <!-- 收藏商品内容 -->
  70. </ion-grid>
  71. </ion-content>
  72. <ion-footer>
  73. <ion-toolbar color="light">
  74. <ion-buttons slot="start">
  75. <ion-button [class.active]="selectedTab === 'home'" (click)="selectTab('home')">
  76. <ion-icon name="home"></ion-icon>
  77. </ion-button>
  78. <ion-button [class.active]="selectedTab === 'shop'" (click)="selectTab('shop')">
  79. <ion-icon name="cart"></ion-icon>
  80. </ion-button>
  81. </ion-buttons>
  82. <ion-buttons slot="end">
  83. <ion-button [class.active]="selectedTab === 'message'" (click)="selectTab('message')">
  84. <ion-icon name="chatbox"></ion-icon>
  85. </ion-button>
  86. <ion-button [class.active]="selectedTab === 'profile'" (click)="selectTab('profile')">
  87. <ion-icon name="person"></ion-icon>
  88. </ion-button>
  89. </ion-buttons>
  90. </ion-toolbar>
  91. </ion-footer>