tab1.page.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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" (click)="navigateToTreePage()">
  36. <div class="wave-circle">
  37. <div class="wave">
  38. <div class="wave-inner">
  39. <span class="start-self-discipline">开始自律</span>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <!-- 每日小习惯 -->
  45. <div class="daily-habit">
  46. <div class="daily-habit-line"></div>
  47. <div class="daily-habit-text">每日小习惯</div>
  48. </div>
  49. <!-- 大方框 -->
  50. <ion-card>
  51. <ion-card-content>
  52. <ion-grid>
  53. <ion-row>
  54. <ion-col size="3">
  55. <button class="habit-button" (click)="toggleButtonColor('运动')">
  56. <ion-icon name="dumbbell"></ion-icon>
  57. <div class="habit-label">运动</div>
  58. </button>
  59. </ion-col>
  60. <ion-col size="3">
  61. <ion-button shape="round" class="habit-button" (click)="toggleButtonColor('少吃')">
  62. <ion-icon name="nutrition"></ion-icon>
  63. <div>少吃</div>
  64. </ion-button>
  65. </ion-col>
  66. <ion-col size="3">
  67. <ion-button shape="round" class="habit-button" (click)="toggleButtonColor('喝水')">
  68. <ion-icon name="water"></ion-icon>
  69. <div>喝水</div>
  70. </ion-button>
  71. </ion-col>
  72. <ion-col size="3">
  73. <ion-button shape="round" class="habit-button" (click)="toggleButtonColor('吃蔬菜')">
  74. <ion-icon name="leaf"></ion-icon>
  75. <div>吃蔬菜</div>
  76. </ion-button>
  77. </ion-col>
  78. </ion-row>
  79. <ion-row>
  80. <ion-col size="3">
  81. <ion-button shape="round" class="habit-button" (click)="toggleButtonColor('水果')">
  82. <ion-icon name="apple"></ion-icon>
  83. <div>水果</div>
  84. </ion-button>
  85. </ion-col>
  86. <ion-col size="3">
  87. <ion-button shape="round" class="habit-button" (click)="toggleButtonColor('经常站立')">
  88. <ion-icon name="walk"></ion-icon>
  89. <div>经常站立</div>
  90. </ion-button>
  91. </ion-col>
  92. </ion-row>
  93. </ion-grid>
  94. </ion-card-content>
  95. </ion-card>
  96. </ion-content>