inquiry-human.component.scss 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. ion-header {
  2. --background: #5c97ff;
  3. --color: white;
  4. }
  5. ion-title {
  6. font-size: 20px;
  7. font-weight: bold;
  8. text-align: center;
  9. }
  10. .segment-control {
  11. margin: 16px;
  12. }
  13. .doctor-card {
  14. margin: 8px 0;
  15. border-radius: 12px;
  16. box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  17. transition: transform 0.2s;
  18. }
  19. .doctor-card:hover {
  20. transform: translateY(-5px);
  21. }
  22. .doctor-header {
  23. display: flex;
  24. align-items: center;
  25. gap: 8px;
  26. h2 {
  27. margin: 0;
  28. font-size: 18px;
  29. font-weight: bold;
  30. }
  31. .title, .specialty {
  32. font-size: 14px;
  33. color: #555;
  34. }
  35. }
  36. .hospital-info {
  37. display: flex;
  38. align-items: center;
  39. gap: 8px;
  40. font-size: 14px;
  41. color: #666;
  42. }
  43. .expertise {
  44. font-size: 14px;
  45. display: -webkit-box;
  46. -webkit-box-orient: vertical;
  47. overflow: hidden;
  48. -webkit-line-clamp: 2;
  49. }
  50. .stats {
  51. display: flex;
  52. gap: 16px;
  53. font-size: 14px;
  54. div {
  55. display: flex;
  56. align-items: center;
  57. gap: 4px;
  58. }
  59. }
  60. .consultation-types {
  61. display: flex;
  62. gap: 8px;
  63. overflow-x: auto;
  64. padding: 8px 0;
  65. ion-button {
  66. --padding-start: 16px;
  67. --padding-end: 16px;
  68. height: 32px;
  69. font-size: 14px;
  70. white-space: nowrap;
  71. }
  72. }
  73. .doctor-detail-card {
  74. border-radius: 12px;
  75. box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  76. }
  77. .doctor-header1 {
  78. display: flex;
  79. justify-content: space-between;
  80. margin-bottom: 12px;
  81. font-size: 12px;
  82. color: #666;
  83. .verification-badge {
  84. display: flex;
  85. align-items: center;
  86. gap: 4px;
  87. ion-icon {
  88. color: #52c41a;
  89. }
  90. }
  91. .qualification-badge {
  92. display: flex;
  93. align-items: center;
  94. gap: 4px;
  95. color: #52c41a;
  96. }
  97. }
  98. .doctor-info1 {
  99. display: flex;
  100. justify-content: space-between;
  101. margin-bottom: 16px;
  102. .left-section {
  103. flex: 1;
  104. .name-title {
  105. display: flex;
  106. align-items: center;
  107. gap: 8px;
  108. margin-bottom: 8px;
  109. h2 {
  110. margin: 0;
  111. font-size: 16px;
  112. font-weight: 500;
  113. }
  114. ion-badge {
  115. --padding-start: 4px;
  116. --padding-end: 4px;
  117. }
  118. }
  119. .position, .hospital {
  120. display: flex;
  121. align-items: center;
  122. gap: 8px;
  123. margin-bottom: 6px;
  124. color: #666;
  125. font-size: 14px;
  126. }
  127. .stats {
  128. display: flex;
  129. align-items: center;
  130. gap: 16px;
  131. margin: 8px 0;
  132. font-size: 14px;
  133. .rating {
  134. display: flex;
  135. align-items: center;
  136. gap: 4px;
  137. .number {
  138. color: #f90;
  139. font-weight: 500;
  140. }
  141. }
  142. }
  143. .tags {
  144. display: flex;
  145. flex-wrap: wrap;
  146. gap: 8px;
  147. margin-top: 8px;
  148. ion-chip {
  149. height: 24px;
  150. --background: rgba(230, 230, 243, 0.7);
  151. --color: #333;
  152. border-radius: 10px;
  153. }
  154. }
  155. }
  156. .right-section {
  157. display: flex;
  158. flex-direction: column;
  159. align-items: center;
  160. gap: 8px;
  161. ion-avatar {
  162. width: 64px;
  163. height: 64px;
  164. }
  165. ion-button {
  166. --border-color: #666;
  167. --color: #666;
  168. font-size: 12px;
  169. }
  170. }
  171. }
  172. .info-section {
  173. margin: 16px 0;
  174. padding: 12px;
  175. background: #f9f9f9;
  176. border-radius: 12px;
  177. box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  178. }
  179. .info-header {
  180. margin-bottom: 8px;
  181. }
  182. .info-header h1 {
  183. font-size: 18px;
  184. color: #333;
  185. }
  186. .info-content p {
  187. color: #555;
  188. line-height: 1.6;
  189. }
  190. .guarantee {
  191. display: flex;
  192. justify-content: space-around;
  193. margin-top: 12px;
  194. font-size: 14px;
  195. color: gray;
  196. p {
  197. margin: 0;
  198. }
  199. }
  200. .consult-options {
  201. padding: 16px;
  202. background: #fff;
  203. margin: 0 10px;
  204. border-radius: 12px;
  205. box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  206. }
  207. .option-grid {
  208. display: grid;
  209. grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  210. gap: 12px;
  211. }
  212. .option-item {
  213. position: relative;
  214. border: 1px solid #e8e8e8;
  215. border-radius: 8px;
  216. padding: 12px;
  217. cursor: pointer;
  218. transition: all 0.3s;
  219. text-align: center;
  220. &.selected {
  221. border-color: var(--ion-color-primary);
  222. background-color: var(--ion-color-primary-tint);
  223. .icon-wrapper ion-icon {
  224. color: var(--ion-color-primary);
  225. }
  226. .title1 {
  227. color: var(--ion-color-primary);
  228. }
  229. }
  230. &.disabled {
  231. opacity: 0.6;
  232. cursor: not-allowed;
  233. .icon-wrapper ion-icon {
  234. color: #999;
  235. }
  236. .title1 {
  237. color: #999;
  238. }
  239. }
  240. }
  241. .option-content {
  242. display: flex;
  243. flex-direction: column;
  244. align-items: center;
  245. }
  246. .icon-wrapper {
  247. position: relative;
  248. margin-bottom: 8px;
  249. ion-icon {
  250. font-size: 24px;
  251. color: #666;
  252. }
  253. .check-icon {
  254. position: absolute;
  255. top: -4px;
  256. right: -4px;
  257. font-size: 16px;
  258. color: var(--ion-color-primary);
  259. background: #fff;
  260. border-radius: 50%;
  261. }
  262. }
  263. .title1 {
  264. font-size: 14px;
  265. color: #333;
  266. margin-bottom: 4px;
  267. }
  268. .price {
  269. font-size: 12px;
  270. color: var(--ion-color-primary);
  271. }
  272. .status {
  273. font-size: 12px;
  274. color: #999;
  275. }
  276. .consult-button {
  277. border-radius: 10px;
  278. }
  279. /* 收款码模态框的样式 */
  280. .payment-modal {
  281. --width: 90%; /* 增加模态框宽度到90% */
  282. --max-width: 800px; /* 增加模态框最大宽度到800px */
  283. --border-radius: 12px; /* 模态框圆角 */
  284. }
  285. /* 收款码内容区域的布局 */
  286. .payment-content {
  287. display: flex; /* 使用Flex布局 */
  288. justify-content: center; /* 水平居中 */
  289. align-items: center; /* 垂直居中 */
  290. flex-direction: column; /* 垂直排列 */
  291. }
  292. /* 收款码容器的样式 */
  293. .payment-codes {
  294. display: flex; /* 使用Flex布局 */
  295. flex-direction: row; /* 水平排列,确保收款码并排 */
  296. align-items: center; /* 居中对齐 */
  297. justify-content: center; /* 水平居中对齐容器内的收款码 */
  298. gap: 32px; /* 两个收款码之间的间距 */
  299. width: 100%; /* 设置容器宽度为100%,确保收款码在模态框中居中 */
  300. }
  301. /* 收款码图片的样式 */
  302. .payment-image {
  303. width: 250px; /* 增加图片宽度到250px */
  304. height: auto; /* 高度自适应,保持图片比例 */
  305. border: 1px solid #ddd; /* 边框 */
  306. border-radius: 8px; /* 圆角 */
  307. }
  308. /* 响应式设计:屏幕宽度小于等于768px时的样式调整 */
  309. @media (max-width: 768px) {
  310. /* 医生信息部分改为垂直排列 */
  311. .doctor-info1 {
  312. flex-direction: column;
  313. align-items: flex-start;
  314. }
  315. /* 右侧操作部分改为水平排列 */
  316. .right-section {
  317. flex-direction: row;
  318. align-items: center;
  319. }
  320. /* 保证服务部分改为垂直排列 */
  321. .guarantee {
  322. flex-direction: column;
  323. align-items: flex-start;
  324. }
  325. /* 收款码容器在小屏幕上改为垂直排列 */
  326. .payment-codes {
  327. flex-direction: column; /* 垂直排列 */
  328. gap: 16px; /* 减小间距 */
  329. }
  330. /* 收款码图片在小屏幕上调整宽度 */
  331. .payment-image {
  332. width: 80%; /* 调整图片宽度以适应小屏幕 */
  333. max-width: none; /* 移除最大宽度限制 */
  334. }
  335. }