tab2.page.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. .user-card {
  2. background: linear-gradient(135deg, #4a90e2 0%, #63b8ff 100%);
  3. border-radius: 16px;
  4. color: white;
  5. .user-avatar {
  6. width: 48px;
  7. height: 48px;
  8. margin-bottom: 8px;
  9. }
  10. }
  11. .data-card {
  12. position: relative;
  13. border-radius: 12px;
  14. .metric-item {
  15. padding: 12px;
  16. &.abnormal {
  17. background: #fff3f3;
  18. border-radius: 8px;
  19. }
  20. }
  21. .metric-header {
  22. display: flex;
  23. justify-content: space-between;
  24. align-items: center;
  25. margin-bottom: 8px;
  26. }
  27. .metric-value {
  28. font-size: 24px;
  29. font-weight: bold;
  30. .unit {
  31. font-size: 14px;
  32. color: var(--ion-color-medium);
  33. }
  34. }
  35. .reference {
  36. font-size: 12px;
  37. }
  38. }
  39. .task-card {
  40. ion-item {
  41. --padding-start: 0;
  42. --inner-padding-end: 0;
  43. }
  44. ion-progress-bar {
  45. flex: 1;
  46. margin-left: 16px;
  47. }
  48. .recommended {
  49. background: #f5f9ff;
  50. border-radius: 8px;
  51. }
  52. }
  53. .chart-container {
  54. height: 200px;
  55. padding: 16px;
  56. }
  57. .doctor-card {
  58. border-radius: 15px;
  59. box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  60. overflow: hidden;
  61. margin: 16px;
  62. max-width: 400px;
  63. }
  64. .card-content {
  65. display: flex;
  66. padding: 20px;
  67. background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
  68. }
  69. .doctor-avatar {
  70. margin-right: 16px;
  71. }
  72. .avatar-image {
  73. width: 80px;
  74. height: 80px;
  75. border-radius: 50%;
  76. object-fit: cover;
  77. border: 3px solid #fff;
  78. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  79. }
  80. .doctor-info {
  81. flex: 1;
  82. }
  83. .doctor-name {
  84. margin: 0 0 4px 0;
  85. font-size: 1.2rem;
  86. font-weight: bold;
  87. color: #2c3e50;
  88. }
  89. .doctor-title {
  90. margin: 0 0 8px 0;
  91. font-size: 0.9rem;
  92. color: #7f8c8d;
  93. }
  94. .doctor-specialty {
  95. margin-bottom: 8px;
  96. }
  97. .doctor-desc {
  98. margin: 8px 0 0 0;
  99. font-size: 0.85rem;
  100. color: #34495e;
  101. line-height: 1.4;
  102. }
  103. .consult-btn {
  104. --border-radius: 0 0 15px 15px;
  105. font-weight: bold;
  106. --padding-top: 12px;
  107. --padding-bottom: 12px;
  108. }
  109. // 健康数据卡片样式
  110. .health-data-card {
  111. margin-top: 16px;
  112. .data-section {
  113. margin: 8px 0;
  114. box-shadow: none;
  115. ion-card-header {
  116. padding-bottom: 0;
  117. ion-card-title {
  118. font-size: 1.1rem;
  119. display: flex;
  120. align-items: center;
  121. ion-icon {
  122. margin-right: 8px;
  123. }
  124. }
  125. }
  126. }
  127. .loading-spinner {
  128. display: flex;
  129. justify-content: center;
  130. padding: 16px;
  131. }
  132. ion-badge {
  133. font-weight: normal;
  134. }
  135. }
  136. /* 医生卡片样式 */
  137. .doctor-card {
  138. border-radius: 16px;
  139. box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  140. margin-bottom: 24px;
  141. .card-content {
  142. display: flex;
  143. padding: 16px;
  144. .doctor-avatar {
  145. position: relative;
  146. margin-right: 16px;
  147. .avatar-image {
  148. width: 80px;
  149. height: 80px;
  150. border-radius: 50%;
  151. object-fit: cover;
  152. border: 3px solid var(--ion-color-primary);
  153. }
  154. .verified-badge {
  155. position: absolute;
  156. bottom: 0;
  157. right: 0;
  158. background: white;
  159. border-radius: 50%;
  160. padding: 4px;
  161. font-size: 16px;
  162. }
  163. }
  164. .doctor-info {
  165. flex: 1;
  166. .doctor-name {
  167. margin: 0 0 4px 0;
  168. font-weight: bold;
  169. color: var(--ion-color-primary);
  170. }
  171. .doctor-title {
  172. margin: 0 0 8px 0;
  173. font-size: 14px;
  174. color: var(--ion-color-medium);
  175. }
  176. .doctor-specialty {
  177. margin-bottom: 8px;
  178. ion-chip {
  179. margin: 0 4px 4px 0;
  180. }
  181. }
  182. .doctor-desc {
  183. margin: 8px 0;
  184. font-size: 14px;
  185. color: var(--ion-color-dark);
  186. }
  187. .doctor-stats {
  188. display: flex;
  189. flex-wrap: wrap;
  190. gap: 8px;
  191. ion-badge {
  192. padding: 6px 8px;
  193. font-weight: normal;
  194. ion-icon {
  195. margin-right: 4px;
  196. }
  197. }
  198. }
  199. }
  200. }
  201. .consult-btn {
  202. margin: 0 16px 16px;
  203. --border-radius: 12px;
  204. font-weight: bold;
  205. }
  206. }
  207. /* 历史记录列表样式 */
  208. ion-list {
  209. ion-item {
  210. --padding-start: 0;
  211. --inner-padding-end: 0;
  212. --border-radius: 12px;
  213. margin-bottom: 8px;
  214. ion-avatar {
  215. width: 48px;
  216. height: 48px;
  217. }
  218. ion-label {
  219. h2 {
  220. font-weight: 600;
  221. }
  222. p {
  223. color: var(--ion-color-medium);
  224. font-size: 14px;
  225. }
  226. }
  227. }
  228. }
  229. /* 空状态提示样式 */
  230. .empty-state {
  231. text-align: center;
  232. .empty-content {
  233. padding: 24px 0;
  234. ion-icon {
  235. font-size: 48px;
  236. margin-bottom: 16px;
  237. }
  238. h3 {
  239. color: var(--ion-color-medium);
  240. margin: 8px 0;
  241. }
  242. p {
  243. color: var(--ion-color-medium);
  244. margin-bottom: 16px;
  245. }
  246. }
  247. }