tab1.page.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <ion-header [translucent]="true">
  2. </ion-header>
  3. <ion-content [fullscreen]="true">
  4. <ion-header collapse="condense">
  5. <ion-toolbar>
  6. <ion-searchbar placeholder="搜索"></ion-searchbar>
  7. </ion-toolbar>
  8. </ion-header>
  9. <!-- 方框 -->
  10. <ion-card (click)="openModal()">
  11. <ion-card-content>
  12. <ion-grid>
  13. <ion-row>
  14. <ion-col size="3">
  15. <div class="info-box">初始</div>
  16. <div class="info-value">--KG</div>
  17. </ion-col>
  18. <ion-col size="3">
  19. <div class="info-box">当前</div>
  20. <div class="info-value">--KG</div>
  21. </ion-col>
  22. <ion-col size="3">
  23. <div class="info-box">目标</div>
  24. <div class="info-value">--KG</div>
  25. </ion-col>
  26. <ion-col size="3">
  27. <div class="info-box">赏金</div>
  28. <div class="info-value">--元</div>
  29. </ion-col>
  30. </ion-row>
  31. </ion-grid>
  32. </ion-card-content>
  33. </ion-card>
  34. <!-- 3D效果的圆 -->
  35. <div class="wave-container">
  36. <div class="wave-circle">
  37. <div class="wave">
  38. <div class="wave-inner"></div>
  39. </div>
  40. </div>
  41. </div>
  42. <!-- 每日小习惯 -->
  43. <div class="daily-habit">
  44. <div class="daily-habit-line"></div>
  45. <div class="daily-habit-text">每日小习惯</div>
  46. </div>
  47. <!-- 大方框 -->
  48. <ion-card>
  49. <ion-card-content>
  50. <ion-grid>
  51. <ion-row>
  52. <ion-col size="3">
  53. <button class="habit-button" (click)="toggleButtonColor('运动')">
  54. <ion-icon name="dumbbell"></ion-icon>
  55. <div class="habit-label">运动</div>
  56. </button>
  57. </ion-col>
  58. <ion-col size="3">
  59. <ion-button shape="round" class="habit-button" (click)="toggleButtonColor('少吃')">
  60. <ion-icon name="nutrition"></ion-icon>
  61. <div>少吃</div>
  62. </ion-button>
  63. </ion-col>
  64. <ion-col size="3">
  65. <ion-button shape="round" class="habit-button" (click)="toggleButtonColor('喝水')">
  66. <ion-icon name="water"></ion-icon>
  67. <div>喝水</div>
  68. </ion-button>
  69. </ion-col>
  70. <ion-col size="3">
  71. <ion-button shape="round" class="habit-button" (click)="toggleButtonColor('吃蔬菜')">
  72. <ion-icon name="leaf"></ion-icon>
  73. <div>吃蔬菜</div>
  74. </ion-button>
  75. </ion-col>
  76. </ion-row>
  77. <ion-row>
  78. <ion-col size="3">
  79. <ion-button shape="round" class="habit-button" (click)="toggleButtonColor('水果')">
  80. <ion-icon name="apple"></ion-icon>
  81. <div>水果</div>
  82. </ion-button>
  83. </ion-col>
  84. <ion-col size="3">
  85. <ion-button shape="round" class="habit-button" (click)="toggleButtonColor('经常站立')">
  86. <ion-icon name="walk"></ion-icon>
  87. <div>经常站立</div>
  88. </ion-button>
  89. </ion-col>
  90. </ion-row>
  91. </ion-grid>
  92. </ion-card-content>
  93. </ion-card>
  94. </ion-content>