hospital.wxss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. .container {
  2. width: 100%;
  3. align-items: stretch;
  4. padding: 0;
  5. box-sizing: border-box;
  6. background-color: #f5f5f5;
  7. }
  8. .custom-navbar {
  9. background: white;
  10. padding: 20rpx 30rpx;
  11. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  12. position: sticky;
  13. top: 0;
  14. z-index: 100;
  15. }
  16. .navbar-content {
  17. display: flex;
  18. align-items: center;
  19. justify-content: space-between;
  20. height: 88rpx;
  21. }
  22. .back-btn {
  23. width: 60rpx;
  24. height: 60rpx;
  25. display: flex;
  26. align-items: center;
  27. justify-content: center;
  28. }
  29. .back-icon {
  30. font-size: 48rpx;
  31. color: #333;
  32. font-weight: bold;
  33. }
  34. .navbar-title {
  35. flex: 1;
  36. text-align: center;
  37. font-size: 32rpx;
  38. font-weight: bold;
  39. color: #333;
  40. }
  41. .navbar-right {
  42. width: 60rpx;
  43. }
  44. .hospital-info {
  45. background: white;
  46. margin: 20rpx;
  47. border-radius: 20rpx;
  48. overflow: hidden;
  49. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  50. }
  51. .hospital-image {
  52. width: 100%;
  53. height: 300rpx;
  54. }
  55. .hospital-details {
  56. padding: 30rpx;
  57. }
  58. .hospital-name {
  59. font-size: 32rpx;
  60. font-weight: bold;
  61. color: #333;
  62. margin-bottom: 15rpx;
  63. }
  64. .hospital-address {
  65. font-size: 26rpx;
  66. color: #666;
  67. margin-bottom: 20rpx;
  68. display: block;
  69. }
  70. .hospital-meta {
  71. display: flex;
  72. gap: 30rpx;
  73. }
  74. .rating {
  75. font-size: 26rpx;
  76. color: #FF6B35;
  77. font-weight: bold;
  78. }
  79. .distance {
  80. font-size: 26rpx;
  81. color: #007AFF;
  82. }
  83. .cases-section {
  84. background: white;
  85. margin: 20rpx;
  86. border-radius: 20rpx;
  87. padding: 30rpx;
  88. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  89. }
  90. .section-title {
  91. display: flex;
  92. justify-content: space-between;
  93. align-items: center;
  94. margin-bottom: 25rpx;
  95. padding-bottom: 15rpx;
  96. border-bottom: 1rpx solid #f0f0f0;
  97. }
  98. .section-title text:first-child {
  99. font-size: 28rpx;
  100. font-weight: bold;
  101. color: #333;
  102. padding-left: 10rpx;
  103. border-left: 6rpx solid #007AFF;
  104. }
  105. .case-count {
  106. font-size: 24rpx;
  107. color: #999;
  108. }
  109. .case-list {
  110. display: flex;
  111. flex-direction: column;
  112. }
  113. .case-item {
  114. display: flex;
  115. justify-content: space-between;
  116. align-items: center;
  117. padding: 25rpx;
  118. background: #f8f8f8;
  119. border-radius: 15rpx;
  120. margin-bottom: 15rpx;
  121. transition: all 0.3s;
  122. }
  123. .case-item:active {
  124. background: #f0f0f0;
  125. transform: scale(0.98);
  126. }
  127. .case-header {
  128. flex: 1;
  129. display: flex;
  130. flex-direction: column;
  131. margin-bottom: 10rpx;
  132. }
  133. .case-date {
  134. font-size: 22rpx;
  135. color: #999;
  136. margin-bottom: 8rpx;
  137. }
  138. .case-doctor {
  139. font-size: 26rpx;
  140. color: #333;
  141. font-weight: bold;
  142. }
  143. .case-body {
  144. flex: 1;
  145. display: flex;
  146. flex-direction: column;
  147. }
  148. .case-diagnosis {
  149. font-size: 24rpx;
  150. color: #FF6B35;
  151. margin-bottom: 8rpx;
  152. }
  153. .case-medicines {
  154. font-size: 24rpx;
  155. color: #666;
  156. }
  157. .case-arrow {
  158. font-size: 32rpx;
  159. color: #ccc;
  160. margin-left: 15rpx;
  161. }
  162. .modal {
  163. position: fixed;
  164. top: 0;
  165. left: 0;
  166. right: 0;
  167. bottom: 0;
  168. background: rgba(0, 0, 0, 0.5);
  169. display: flex;
  170. align-items: center;
  171. justify-content: center;
  172. z-index: 1000;
  173. }
  174. .modal-content {
  175. background: white;
  176. border-radius: 20rpx;
  177. width: 90%;
  178. max-height: 80%;
  179. overflow: hidden;
  180. display: flex;
  181. flex-direction: column;
  182. }
  183. .modal-header {
  184. display: flex;
  185. justify-content: space-between;
  186. align-items: center;
  187. padding: 30rpx;
  188. border-bottom: 1rpx solid #f0f0f0;
  189. }
  190. .modal-title {
  191. font-size: 32rpx;
  192. font-weight: bold;
  193. color: #333;
  194. }
  195. .modal-close {
  196. font-size: 48rpx;
  197. color: #999;
  198. line-height: 1;
  199. padding: 0 10rpx;
  200. }
  201. .modal-body {
  202. flex: 1;
  203. overflow-y: auto;
  204. padding: 30rpx;
  205. }
  206. .case-detail {
  207. display: flex;
  208. flex-direction: column;
  209. }
  210. .detail-row {
  211. display: flex;
  212. align-items: center;
  213. margin-bottom: 20rpx;
  214. }
  215. .detail-label {
  216. font-size: 26rpx;
  217. color: #666;
  218. min-width: 150rpx;
  219. }
  220. .detail-value {
  221. font-size: 26rpx;
  222. color: #333;
  223. flex: 1;
  224. }
  225. .detail-value.diagnosis {
  226. color: #FF6B35;
  227. font-weight: bold;
  228. }
  229. .detail-section {
  230. margin-top: 30rpx;
  231. padding-top: 20rpx;
  232. border-top: 1rpx solid #f0f0f0;
  233. }
  234. .detail-section .detail-label {
  235. display: block;
  236. margin-bottom: 15rpx;
  237. font-size: 28rpx;
  238. font-weight: bold;
  239. color: #333;
  240. }
  241. .modal-content .medicine-list {
  242. display: flex;
  243. flex-direction: column;
  244. background: #f8f8f8;
  245. border-radius: 15rpx;
  246. padding: 20rpx;
  247. }
  248. .modal-content .medicine-item {
  249. display: flex;
  250. justify-content: space-between;
  251. align-items: center;
  252. padding: 15rpx 0;
  253. border-bottom: 1rpx solid #f0f0f0;
  254. }
  255. .modal-content .medicine-item:last-child {
  256. border-bottom: none;
  257. }
  258. .modal-content .medicine-name {
  259. font-size: 26rpx;
  260. color: #333;
  261. }
  262. .modal-content .medicine-price {
  263. font-size: 26rpx;
  264. color: #FF6B35;
  265. font-weight: bold;
  266. }
  267. .modal-footer {
  268. display: flex;
  269. gap: 20rpx;
  270. padding: 20rpx 30rpx 30rpx;
  271. border-top: 1rpx solid #f0f0f0;
  272. }
  273. .modal-footer .btn {
  274. flex: 1;
  275. border-radius: 50rpx;
  276. padding: 25rpx 0;
  277. font-size: 28rpx;
  278. font-weight: bold;
  279. border: none;
  280. }
  281. .modal-footer .cancel {
  282. background: #f0f0f0;
  283. color: #666;
  284. }
  285. .modal-footer .confirm {
  286. background: #007AFF;
  287. color: white;
  288. }