tab2.page.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <ion-header>
  2. <ion-toolbar color="" class="header">
  3. <ion-buttons slot="start">
  4. <ion-button>
  5. <ion-icon name="menu"></ion-icon>
  6. </ion-button>
  7. </ion-buttons>
  8. <ion-title>User Profile</ion-title>
  9. <ion-buttons slot="end">
  10. <ion-button>
  11. <ion-icon name="scan"></ion-icon>
  12. </ion-button>
  13. <ion-button>
  14. <ion-icon name="settings"></ion-icon>
  15. </ion-button>
  16. </ion-buttons>
  17. </ion-toolbar>
  18. </ion-header>
  19. <ion-content>
  20. <div class="user-profile">
  21. <div class="user-info">
  22. <img src="assets/user-avatar.jpg" alt="User Avatar">
  23. <h3>不吃粉面菜蛋</h3>
  24. <p>ID:0210033</p>
  25. <p>个人简介</p>
  26. <div class="info-icons">
  27. <div class="icon-wrapper">
  28. <ion-icon name="male"></ion-icon>
  29. <span>21</span>
  30. </div>
  31. <div class="action-buttons">
  32. <span>关注 104</span>
  33. <span>粉丝 62</span>
  34. <span>获赞 896</span>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="user-actions">
  39. <ion-button color ="rgba(255, 255, 255, 0.4)">
  40. <ion-icon name="cart"></ion-icon>
  41. 购物车
  42. </ion-button>
  43. <ion-button color="rgba(255, 255, 255, 0.4)">
  44. <ion-icon name="document"></ion-icon>
  45. 我的订单
  46. </ion-button>
  47. <ion-button color="rgba(255, 255, 255, 0.4)">
  48. <ion-icon name="time"></ion-icon>
  49. 浏览历史
  50. </ion-button>
  51. </div>
  52. </div>
  53. <div class="content">
  54. <ion-segment>
  55. <ion-segment-button value="works" checked>
  56. 作品
  57. </ion-segment-button>
  58. <ion-segment-button value="likes">
  59. 点赞
  60. </ion-segment-button>
  61. <ion-segment-button value="favorites">
  62. 收藏
  63. </ion-segment-button>
  64. </ion-segment>
  65. <ion-grid>
  66. <ion-row>
  67. <ion-col size="4" *ngFor="let item of items">
  68. <ion-card>
  69. <img src="{{item.image}}" alt="Item Image">
  70. <ion-card-content>
  71. <ion-icon name="heart"></ion-icon> {{item.likes}}
  72. </ion-card-content>
  73. </ion-card>
  74. </ion-col>
  75. </ion-row>
  76. </ion-grid>
  77. </div>
  78. </ion-content>
  79. <ion-footer>
  80. <ion-toolbar color="light">
  81. <ion-buttons slot="start">
  82. <ion-button [routerLink]="'/tabs/tab1'" routerDirection="root">
  83. <ion-icon name="home"></ion-icon>
  84. </ion-button>
  85. <ion-button [routerLink]="'/tabs/tab2'" routerDirection="root">
  86. <ion-icon name="cart"></ion-icon>
  87. </ion-button>
  88. <ion-button [routerLink]="'/tabs/tab3'" routerDirection="root">
  89. <ion-icon name="chatbox"></ion-icon>
  90. </ion-button>
  91. <ion-button [routerLink]="'/tabs/tab4'" routerDirection="root">
  92. <ion-icon name="person"></ion-icon>
  93. </ion-button>
  94. </ion-buttons>
  95. </ion-toolbar>
  96. </ion-footer>