order.wxss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. .container {
  2. width: 100%;
  3. align-items: stretch;
  4. padding: 0;
  5. box-sizing: border-box;
  6. background-color: #f5f5f5;
  7. }
  8. .tab-bar {
  9. display: flex;
  10. background: white;
  11. border-bottom: 1rpx solid #f0f0f0;
  12. }
  13. .tab-item {
  14. flex: 1;
  15. text-align: center;
  16. padding: 30rpx 0;
  17. font-size: 28rpx;
  18. color: #666;
  19. position: relative;
  20. transition: all 0.3s;
  21. }
  22. .tab-item.active {
  23. color: #007AFF;
  24. font-weight: bold;
  25. }
  26. .tab-item.active::after {
  27. content: '';
  28. position: absolute;
  29. bottom: 0;
  30. left: 50%;
  31. transform: translateX(-50%);
  32. width: 60rpx;
  33. height: 6rpx;
  34. background: #007AFF;
  35. border-radius: 3rpx;
  36. }
  37. .tab-content {
  38. flex: 1;
  39. overflow-y: auto;
  40. }
  41. .search-section {
  42. padding: 20rpx;
  43. background: white;
  44. }
  45. .search-box {
  46. display: flex;
  47. align-items: center;
  48. background: #f8f8f8;
  49. border-radius: 50rpx;
  50. padding: 15rpx 25rpx;
  51. }
  52. .search-icon {
  53. width: 32rpx;
  54. height: 32rpx;
  55. margin-right: 15rpx;
  56. }
  57. .search-input {
  58. flex: 1;
  59. font-size: 28rpx;
  60. color: #333;
  61. }
  62. .hospital-list {
  63. padding: 20rpx;
  64. }
  65. .hospital-item {
  66. display: flex;
  67. background: white;
  68. border-radius: 20rpx;
  69. padding: 25rpx;
  70. margin-bottom: 20rpx;
  71. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  72. transition: all 0.3s;
  73. }
  74. .hospital-item:active {
  75. transform: scale(0.98);
  76. box-shadow: 0 1rpx 5rpx rgba(0, 0, 0, 0.1);
  77. }
  78. .hospital-image {
  79. width: 160rpx;
  80. height: 120rpx;
  81. border-radius: 15rpx;
  82. margin-right: 20rpx;
  83. flex-shrink: 0;
  84. }
  85. .hospital-info {
  86. flex: 1;
  87. display: flex;
  88. flex-direction: column;
  89. justify-content: space-between;
  90. }
  91. .hospital-name {
  92. font-size: 28rpx;
  93. font-weight: bold;
  94. color: #333;
  95. margin-bottom: 8rpx;
  96. }
  97. .hospital-address {
  98. font-size: 24rpx;
  99. color: #999;
  100. margin-bottom: 10rpx;
  101. overflow: hidden;
  102. text-overflow: ellipsis;
  103. white-space: nowrap;
  104. }
  105. .hospital-details {
  106. display: flex;
  107. gap: 20rpx;
  108. font-size: 22rpx;
  109. }
  110. .rating {
  111. color: #FF6B35;
  112. font-weight: bold;
  113. }
  114. .distance {
  115. color: #007AFF;
  116. }
  117. .case-count {
  118. color: #52c41a;
  119. }
  120. .price-comparison {
  121. padding: 20rpx;
  122. }
  123. .medicine-title {
  124. background: white;
  125. border-radius: 20rpx;
  126. padding: 25rpx;
  127. margin-bottom: 20rpx;
  128. font-size: 28rpx;
  129. font-weight: bold;
  130. color: #333;
  131. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  132. }
  133. .price-list {
  134. background: white;
  135. border-radius: 20rpx;
  136. overflow: hidden;
  137. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  138. }
  139. .price-item {
  140. display: flex;
  141. justify-content: space-between;
  142. align-items: center;
  143. padding: 25rpx;
  144. border-bottom: 1rpx solid #f0f0f0;
  145. transition: background 0.3s;
  146. }
  147. .price-item:last-child {
  148. border-bottom: none;
  149. }
  150. .price-item:active {
  151. background: #f8f8f8;
  152. }
  153. .price-item .hospital-info {
  154. display: flex;
  155. flex-direction: column;
  156. }
  157. .price-item .hospital-name {
  158. font-size: 28rpx;
  159. color: #333;
  160. margin-bottom: 8rpx;
  161. }
  162. .price {
  163. font-size: 32rpx;
  164. color: #FF6B35;
  165. font-weight: bold;
  166. }
  167. .select-btn {
  168. background: #007AFF;
  169. color: white;
  170. padding: 12rpx 30rpx;
  171. border-radius: 30rpx;
  172. font-size: 24rpx;
  173. }
  174. .hot-medicines {
  175. padding: 20rpx;
  176. }
  177. .section-title {
  178. font-size: 28rpx;
  179. font-weight: bold;
  180. color: #333;
  181. margin-bottom: 20rpx;
  182. padding-left: 10rpx;
  183. border-left: 6rpx solid #007AFF;
  184. }
  185. .medicine-grid {
  186. display: flex;
  187. flex-wrap: wrap;
  188. gap: 20rpx;
  189. }
  190. .medicine-grid .medicine-item {
  191. width: calc(50% - 10rpx);
  192. background: white;
  193. border-radius: 15rpx;
  194. padding: 25rpx;
  195. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  196. display: flex;
  197. flex-direction: column;
  198. align-items: center;
  199. transition: all 0.3s;
  200. }
  201. .medicine-grid .medicine-item:active {
  202. transform: scale(0.95);
  203. }
  204. .medicine-grid .medicine-name {
  205. font-size: 26rpx;
  206. color: #333;
  207. margin-bottom: 10rpx;
  208. text-align: center;
  209. }
  210. .medicine-grid .medicine-price {
  211. font-size: 24rpx;
  212. color: #FF6B35;
  213. font-weight: bold;
  214. }
  215. .modal {
  216. position: fixed;
  217. top: 0;
  218. left: 0;
  219. right: 0;
  220. bottom: 0;
  221. background: rgba(0, 0, 0, 0.5);
  222. display: flex;
  223. align-items: center;
  224. justify-content: center;
  225. z-index: 1000;
  226. }
  227. .modal-content {
  228. background: white;
  229. border-radius: 20rpx;
  230. width: 90%;
  231. max-height: 80%;
  232. overflow: hidden;
  233. display: flex;
  234. flex-direction: column;
  235. }
  236. .modal-header {
  237. display: flex;
  238. justify-content: space-between;
  239. align-items: center;
  240. padding: 30rpx;
  241. border-bottom: 1rpx solid #f0f0f0;
  242. }
  243. .modal-title {
  244. font-size: 32rpx;
  245. font-weight: bold;
  246. color: #333;
  247. }
  248. .modal-close {
  249. font-size: 48rpx;
  250. color: #999;
  251. line-height: 1;
  252. padding: 0 10rpx;
  253. }
  254. .case-list {
  255. flex: 1;
  256. overflow-y: auto;
  257. padding: 20rpx;
  258. }
  259. .case-item {
  260. display: flex;
  261. justify-content: space-between;
  262. align-items: center;
  263. padding: 25rpx;
  264. background: #f8f8f8;
  265. border-radius: 15rpx;
  266. margin-bottom: 15rpx;
  267. transition: all 0.3s;
  268. }
  269. .case-item:active {
  270. background: #f0f0f0;
  271. }
  272. .case-info {
  273. flex: 1;
  274. display: flex;
  275. flex-direction: column;
  276. }
  277. .case-date {
  278. font-size: 22rpx;
  279. color: #999;
  280. margin-bottom: 8rpx;
  281. }
  282. .case-doctor {
  283. font-size: 26rpx;
  284. color: #333;
  285. margin-bottom: 8rpx;
  286. }
  287. .case-diagnosis {
  288. font-size: 24rpx;
  289. color: #FF6B35;
  290. }
  291. .case-arrow {
  292. font-size: 32rpx;
  293. color: #ccc;
  294. margin-left: 15rpx;
  295. }
  296. .modal-content .medicine-list {
  297. flex: 1;
  298. overflow-y: auto;
  299. padding: 20rpx;
  300. background: transparent;
  301. }
  302. .modal-content .medicine-item {
  303. display: flex;
  304. justify-content: space-between;
  305. align-items: center;
  306. padding: 25rpx;
  307. background: white;
  308. border-radius: 15rpx;
  309. margin-bottom: 15rpx;
  310. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  311. }
  312. .modal-content .medicine-info {
  313. flex: 1;
  314. display: flex;
  315. flex-direction: column;
  316. }
  317. .modal-content .medicine-name {
  318. font-size: 28rpx;
  319. color: #333;
  320. margin-bottom: 8rpx;
  321. }
  322. .modal-content .medicine-price {
  323. font-size: 26rpx;
  324. color: #FF6B35;
  325. font-weight: bold;
  326. }
  327. .medicine-action {
  328. display: flex;
  329. align-items: center;
  330. }
  331. .quantity-control {
  332. display: flex;
  333. align-items: center;
  334. gap: 15rpx;
  335. }
  336. .quantity-control .btn {
  337. width: 50rpx;
  338. height: 50rpx;
  339. border-radius: 50%;
  340. display: flex;
  341. align-items: center;
  342. justify-content: center;
  343. font-size: 32rpx;
  344. font-weight: bold;
  345. }
  346. .quantity-control .minus {
  347. background: #f0f0f0;
  348. color: #666;
  349. }
  350. .quantity-control .plus {
  351. background: #007AFF;
  352. color: white;
  353. }
  354. .quantity {
  355. font-size: 28rpx;
  356. color: #333;
  357. min-width: 40rpx;
  358. text-align: center;
  359. }
  360. .modal-footer {
  361. padding: 20rpx 30rpx;
  362. border-top: 1rpx solid #f0f0f0;
  363. background: white;
  364. }
  365. .total-price {
  366. font-size: 32rpx;
  367. font-weight: bold;
  368. color: #FF6B35;
  369. margin-bottom: 20rpx;
  370. text-align: right;
  371. }
  372. .action-buttons {
  373. display: flex;
  374. gap: 20rpx;
  375. }
  376. .action-buttons .btn {
  377. flex: 1;
  378. border-radius: 50rpx;
  379. padding: 25rpx 0;
  380. font-size: 28rpx;
  381. font-weight: bold;
  382. border: none;
  383. }
  384. .action-buttons .cancel {
  385. background: #f0f0f0;
  386. color: #666;
  387. }
  388. .action-buttons .confirm {
  389. background: #007AFF;
  390. color: white;
  391. }