tab1.page.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. .searchbar-container {
  2. display: flex; /* 使用 Flexbox 布局 */
  3. align-items: center; /* 垂直居中 */
  4. gap: 2px; /* 搜索框和按钮之间的间距 */
  5. }
  6. .searchbar-container ion-searchbar {
  7. flex: 1; /* 搜索框占满剩余空间 */
  8. }
  9. .searchbar-container ion-button {
  10. flex-shrink: 0; /* 按钮宽度保持固定 */
  11. padding: 0 16px; /* 增加按钮的左右内边距 */
  12. font-size: 16px; /* 调整按钮字体大小 */
  13. }
  14. // 轮播图区域
  15. .carousel-container {
  16. position: relative;
  17. max-width: 800px;
  18. margin: 0 auto;
  19. overflow: hidden;
  20. }
  21. .carousel {
  22. display: flex;
  23. transition: transform 0.5s ease-in-out;
  24. }
  25. .slide {
  26. min-width: 100%;
  27. }
  28. .slide img {
  29. width: 100%;
  30. height: auto;
  31. }
  32. .prev, .next {
  33. position: absolute;
  34. top: 50%;
  35. transform: translateY(-50%);
  36. background: rgba(0, 0, 0, 0.5);
  37. color: white;
  38. padding: 16px;
  39. border: none;
  40. cursor: pointer;
  41. }
  42. .prev {
  43. left: 0;
  44. }
  45. .next {
  46. right: 0;
  47. }
  48. .dots {
  49. position: absolute;
  50. bottom: 20px;
  51. left: 50%;
  52. transform: translateX(-50%);
  53. text-align: center;
  54. }
  55. .dot {
  56. display: inline-block;
  57. width: 10px;
  58. height: 10px;
  59. margin: 0 5px;
  60. background: #bbb;
  61. border-radius: 50%;
  62. cursor: pointer;
  63. }
  64. .dot.active {
  65. background: #717171;
  66. }
  67. //
  68. .inquery{
  69. width:100%;
  70. height:100px;
  71. // --background-color: #fd0000;
  72. padding: 5px 0px;
  73. box-sizing: border-box;
  74. margin: 0px 0px;
  75. ion-button{
  76. width: 100%;
  77. height: 100%;
  78. display: inline-block;
  79. }
  80. }
  81. .inquery-ai{
  82. height: 100%;
  83. width: 48%;
  84. display: inline-block;
  85. margin: 0;
  86. padding: 0;
  87. }
  88. .inquery-ai img{
  89. width:50%;
  90. height: 100%;
  91. margin: 0;
  92. padding: 0;
  93. border-radius: 10px;
  94. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  95. }
  96. .inquery-human{
  97. height: 100%;
  98. width: 48%;
  99. display: inline-block;
  100. margin-left: 2%;
  101. padding: 0;
  102. }
  103. .inquery-human img{
  104. width:50%;
  105. height: 100%;
  106. margin: 0;
  107. padding: 0;
  108. border-radius: 10px;
  109. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  110. }
  111. .mid-nav {
  112. display: flex;
  113. justify-content: space-between;
  114. margin-top: 5px;
  115. margin-bottom: 5px;
  116. margin-left: 15px;
  117. margin-right: 15px;
  118. }
  119. .under_slide {
  120. display: flex;
  121. align-items: center;
  122. text-align: right;
  123. font-size: smaller;
  124. }
  125. ion-item {
  126. margin-bottom: 12px; /* 增加医生卡片之间的间距 */
  127. padding: 12px; /* 调整卡片内边距 */
  128. border-radius: 8px; /* 圆角设计 */
  129. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加卡片阴影 */
  130. background-color: #ffffff; /* 卡片背景色 */
  131. }
  132. ion-thumbnail {
  133. width: 60px; /* 缩略图宽度 */
  134. height: 60px; /* 缩略图高度 */
  135. border-radius: 50%; /* 圆形头像 */
  136. }
  137. .doctor-info {
  138. margin-left: 12px; /* 缩略图与文字的间距 */
  139. display: flex;
  140. flex-direction: column;
  141. justify-content: center;
  142. }
  143. .doctor-info h3 {
  144. margin: 0;
  145. font-size: 16px;
  146. font-weight: bold;
  147. }
  148. .doctor-info p {
  149. margin: 4px 0;
  150. font-size: 14px;
  151. color: #666; /* 字体颜色 */
  152. }
  153. // 功能区
  154. .function-area {
  155. margin: 16px 0;
  156. padding: 0 16px;
  157. background: white;
  158. border-radius: 10px;
  159. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  160. width: 100%;
  161. max-width: 960px; /* 最大宽度 */
  162. }
  163. .function-row {
  164. display: flex; // 使用 Flexbox 布局
  165. justify-content: space-between; // 按空间均匀分布
  166. align-items: center; // 垂直居中
  167. overflow-x: auto; // 允许水平滚动
  168. scroll-snap-type: x mandatory; // 启用滚动捕捉
  169. -webkit-overflow-scrolling: touch; // 平滑滚动
  170. padding: 16px 0;
  171. .function-item {
  172. flex: 1 0 20%; // 每个项目占 20% 宽度
  173. min-width: 0; // 确保项目可以缩小
  174. display: flex;
  175. flex-direction: column;
  176. align-items: center;
  177. text-align: center;
  178. scroll-snap-align: start; // 滚动时对齐
  179. .icon {
  180. font-size: 24px;
  181. margin-bottom: 8px;
  182. }
  183. .label {
  184. font-size: 14px;
  185. color: #333;
  186. }
  187. }
  188. }