order.wxss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719
  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. display: flex;
  133. align-items: center;
  134. gap: 20rpx;
  135. }
  136. .back-btn {
  137. font-size: 26rpx;
  138. color: #007AFF;
  139. cursor: pointer;
  140. padding: 5rpx 10rpx;
  141. border-radius: 5rpx;
  142. transition: background 0.3s;
  143. }
  144. .back-btn:active {
  145. background: #e6f7ff;
  146. }
  147. .price-list {
  148. background: white;
  149. border-radius: 20rpx;
  150. overflow: hidden;
  151. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  152. }
  153. .price-item {
  154. display: flex;
  155. flex-direction: column;
  156. padding: 25rpx;
  157. border-bottom: 1rpx solid #f0f0f0;
  158. transition: background 0.3s;
  159. }
  160. .price-item:last-child {
  161. border-bottom: none;
  162. }
  163. .price-item:active {
  164. background: #f8f8f8;
  165. }
  166. .price-item .info-row {
  167. display: flex;
  168. justify-content: space-between;
  169. align-items: center;
  170. margin-bottom: 15rpx;
  171. }
  172. .price-item .hospital-info {
  173. display: flex;
  174. flex-direction: column;
  175. flex: 1;
  176. }
  177. .price-item .hospital-info:active {
  178. opacity: 0.7;
  179. }
  180. .price-item .hospital-name {
  181. font-size: 28rpx;
  182. color: #333;
  183. margin-bottom: 8rpx;
  184. }
  185. .price-info {
  186. display: flex;
  187. justify-content: space-between;
  188. align-items: center;
  189. }
  190. .price {
  191. font-size: 32rpx;
  192. color: #FF6B35;
  193. font-weight: bold;
  194. }
  195. .price-item .distance {
  196. font-size: 24rpx;
  197. color: #007AFF;
  198. }
  199. .price-item .quantity-control {
  200. display: flex;
  201. align-items: center;
  202. gap: 15rpx;
  203. flex-shrink: 0;
  204. }
  205. .price-item .quantity-control .btn {
  206. width: 50rpx;
  207. height: 50rpx;
  208. border-radius: 50%;
  209. display: flex;
  210. align-items: center;
  211. justify-content: center;
  212. font-size: 32rpx;
  213. font-weight: bold;
  214. }
  215. .price-item .quantity-control .minus {
  216. background: #f0f0f0;
  217. color: #666;
  218. }
  219. .price-item .quantity-control .plus {
  220. background: #007AFF;
  221. color: white;
  222. }
  223. .price-item .quantity {
  224. font-size: 28rpx;
  225. color: #333;
  226. min-width: 40rpx;
  227. text-align: center;
  228. }
  229. .price-item .order-btn-wrapper {
  230. margin-top: 15rpx;
  231. flex-shrink: 0;
  232. display: flex;
  233. align-items: center;
  234. justify-content: center;
  235. }
  236. .price-item .order-btn {
  237. background: #007AFF;
  238. color: white;
  239. border: none;
  240. border-radius: 4rpx;
  241. padding: 6rpx 12rpx;
  242. font-size: 20rpx;
  243. line-height: 1;
  244. min-width: 60rpx;
  245. height: 40rpx;
  246. display: flex;
  247. align-items: center;
  248. justify-content: center;
  249. margin: 0;
  250. box-sizing: border-box;
  251. }
  252. .hot-medicines {
  253. padding: 20rpx;
  254. }
  255. .section-title {
  256. font-size: 28rpx;
  257. font-weight: bold;
  258. color: #333;
  259. margin-bottom: 20rpx;
  260. padding-left: 10rpx;
  261. border-left: 6rpx solid #007AFF;
  262. }
  263. .medicine-grid {
  264. display: flex;
  265. flex-wrap: wrap;
  266. gap: 20rpx;
  267. width: 100%;
  268. box-sizing: border-box;
  269. }
  270. .medicine-grid .medicine-item {
  271. width: calc(50% - 10rpx);
  272. background: white;
  273. border-radius: 15rpx;
  274. padding: 20rpx;
  275. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  276. box-sizing: border-box;
  277. flex-shrink: 0;
  278. display: flex;
  279. flex-direction: row;
  280. align-items: center;
  281. transition: all 0.3s;
  282. }
  283. .medicine-grid .medicine-item:active {
  284. transform: scale(0.98);
  285. background: #f8f8f8;
  286. }
  287. .medicine-grid .medicine-icon {
  288. width: 60rpx;
  289. height: 60rpx;
  290. margin-right: 15rpx;
  291. flex-shrink: 0;
  292. }
  293. .medicine-grid .medicine-info {
  294. flex: 1;
  295. display: flex;
  296. flex-direction: column;
  297. justify-content: center;
  298. }
  299. .medicine-grid .medicine-name {
  300. font-size: 26rpx;
  301. color: #333;
  302. margin-bottom: 8rpx;
  303. text-align: left;
  304. }
  305. .medicine-grid .medicine-price {
  306. font-size: 24rpx;
  307. color: #FF6B35;
  308. font-weight: bold;
  309. }
  310. .other-medicines {
  311. padding: 20rpx;
  312. margin-top: 20rpx;
  313. }
  314. .other-medicines .medicine-list {
  315. background: white;
  316. border-radius: 15rpx;
  317. overflow: hidden;
  318. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  319. }
  320. .medicine-list-item {
  321. display: flex;
  322. justify-content: space-between;
  323. align-items: center;
  324. padding: 25rpx;
  325. border-bottom: 1rpx solid #f0f0f0;
  326. transition: background 0.3s;
  327. }
  328. .medicine-list-item:last-child {
  329. border-bottom: none;
  330. }
  331. .medicine-list-item:active {
  332. background: #f8f8f8;
  333. }
  334. .medicine-list-info {
  335. flex: 1;
  336. display: flex;
  337. flex-direction: column;
  338. }
  339. .medicine-list-name {
  340. font-size: 28rpx;
  341. color: #333;
  342. margin-bottom: 8rpx;
  343. }
  344. .medicine-list-price {
  345. font-size: 24rpx;
  346. color: #FF6B35;
  347. font-weight: bold;
  348. }
  349. .medicine-list-arrow {
  350. font-size: 32rpx;
  351. color: #ccc;
  352. margin-left: 15rpx;
  353. flex-shrink: 0;
  354. }
  355. .modal {
  356. position: fixed;
  357. top: 0;
  358. left: 0;
  359. right: 0;
  360. bottom: 0;
  361. background: rgba(0, 0, 0, 0.5);
  362. display: flex;
  363. align-items: center;
  364. justify-content: center;
  365. z-index: 1000;
  366. overflow: auto;
  367. padding: 20rpx;
  368. flex-direction: row;
  369. }
  370. .modal-content {
  371. background: white;
  372. border-radius: 20rpx;
  373. width: 90%;
  374. max-width: 600rpx;
  375. max-height: 80vh;
  376. overflow-y: auto;
  377. display: flex;
  378. flex-direction: column;
  379. margin: auto;
  380. align-self: center;
  381. align-items: stretch;
  382. }
  383. .modal-header {
  384. display: flex;
  385. justify-content: space-between;
  386. align-items: center;
  387. padding: 30rpx;
  388. border-bottom: 1rpx solid #f0f0f0;
  389. }
  390. .modal-title {
  391. font-size: 32rpx;
  392. font-weight: bold;
  393. color: #333;
  394. }
  395. .modal-close {
  396. font-size: 48rpx;
  397. color: #999;
  398. line-height: 1;
  399. padding: 0 10rpx;
  400. }
  401. .case-list {
  402. flex: 1;
  403. overflow-y: auto;
  404. padding: 20rpx;
  405. }
  406. .case-item {
  407. display: flex;
  408. justify-content: space-between;
  409. align-items: center;
  410. padding: 25rpx;
  411. background: #f8f8f8;
  412. border-radius: 15rpx;
  413. margin-bottom: 15rpx;
  414. transition: all 0.3s;
  415. }
  416. .case-item:active {
  417. background: #f0f0f0;
  418. }
  419. .case-info {
  420. flex: 1;
  421. display: flex;
  422. flex-direction: column;
  423. }
  424. .case-date {
  425. font-size: 22rpx;
  426. color: #999;
  427. margin-bottom: 8rpx;
  428. }
  429. .case-doctor {
  430. font-size: 26rpx;
  431. color: #333;
  432. margin-bottom: 8rpx;
  433. }
  434. .case-diagnosis {
  435. font-size: 24rpx;
  436. color: #FF6B35;
  437. }
  438. .case-arrow {
  439. font-size: 32rpx;
  440. color: #ccc;
  441. margin-left: 15rpx;
  442. }
  443. .modal-content .medicine-list {
  444. flex: 1;
  445. overflow-y: auto;
  446. padding: 20rpx;
  447. background: transparent;
  448. }
  449. .modal-content .medicine-item {
  450. display: flex;
  451. justify-content: space-between;
  452. align-items: center;
  453. padding: 25rpx;
  454. background: white;
  455. border-radius: 15rpx;
  456. margin-bottom: 15rpx;
  457. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  458. }
  459. .modal-content .medicine-info {
  460. flex: 1;
  461. display: flex;
  462. flex-direction: column;
  463. }
  464. .modal-content .medicine-name {
  465. font-size: 28rpx;
  466. color: #333;
  467. margin-bottom: 8rpx;
  468. }
  469. .modal-content .medicine-price {
  470. font-size: 26rpx;
  471. color: #FF6B35;
  472. font-weight: bold;
  473. }
  474. .medicine-action {
  475. display: flex;
  476. align-items: center;
  477. }
  478. .quantity-control {
  479. display: flex;
  480. align-items: center;
  481. gap: 15rpx;
  482. }
  483. .quantity-control .btn {
  484. width: 50rpx;
  485. height: 50rpx;
  486. border-radius: 50%;
  487. display: flex;
  488. align-items: center;
  489. justify-content: center;
  490. font-size: 32rpx;
  491. font-weight: bold;
  492. }
  493. .quantity-control .minus {
  494. background: #f0f0f0;
  495. color: #666;
  496. }
  497. .quantity-control .plus {
  498. background: #007AFF;
  499. color: white;
  500. }
  501. .quantity {
  502. font-size: 28rpx;
  503. color: #333;
  504. min-width: 40rpx;
  505. text-align: center;
  506. }
  507. /* 送货地址样式 */
  508. .address-section {
  509. padding: 20rpx 30rpx;
  510. background: white;
  511. border-top: 1rpx solid #f0f0f0;
  512. }
  513. .address-title {
  514. font-size: 28rpx;
  515. font-weight: bold;
  516. color: #333;
  517. margin-bottom: 20rpx;
  518. padding-left: 10rpx;
  519. border-left: 6rpx solid #007AFF;
  520. }
  521. .address-input-wrapper {
  522. display: flex;
  523. flex-direction: column;
  524. gap: 15rpx;
  525. }
  526. .address-input {
  527. width: 100%;
  528. padding: 20rpx;
  529. background: #f8f8f8;
  530. border-radius: 10rpx;
  531. font-size: 28rpx;
  532. color: #333;
  533. border: 1rpx solid #e8e8e8;
  534. }
  535. .address-input:focus {
  536. border-color: #007AFF;
  537. background: white;
  538. }
  539. .address-actions {
  540. display: flex;
  541. justify-content: flex-end;
  542. }
  543. .address-btn {
  544. font-size: 26rpx;
  545. color: #007AFF;
  546. padding: 10rpx 20rpx;
  547. border-radius: 20rpx;
  548. background: #e6f7ff;
  549. }
  550. .address-btn:active {
  551. background: #bae7ff;
  552. }
  553. .modal-footer {
  554. padding: 20rpx 30rpx;
  555. border-top: 1rpx solid #f0f0f0;
  556. background: white;
  557. }
  558. .total-price {
  559. font-size: 32rpx;
  560. font-weight: bold;
  561. color: #FF6B35;
  562. margin-bottom: 20rpx;
  563. text-align: right;
  564. }
  565. .action-buttons {
  566. display: flex;
  567. gap: 20rpx;
  568. }
  569. .action-buttons .btn {
  570. flex: 1;
  571. border-radius: 50rpx;
  572. padding: 25rpx 0;
  573. font-size: 28rpx;
  574. font-weight: bold;
  575. border: none;
  576. }
  577. .action-buttons .cancel {
  578. background: #f0f0f0;
  579. color: #666;
  580. }
  581. .action-buttons .confirm {
  582. background: #007AFF;
  583. color: white;
  584. }
  585. /* 比价确认信息样式 */
  586. .price-confirm-info {
  587. padding: 20rpx 30rpx;
  588. background: #f8f8f8;
  589. border-radius: 10rpx;
  590. margin: 20rpx 30rpx;
  591. }
  592. .confirm-item {
  593. display: flex;
  594. justify-content: space-between;
  595. align-items: center;
  596. padding: 15rpx 0;
  597. border-bottom: 1rpx solid #e8e8e8;
  598. }
  599. .confirm-item:last-child {
  600. border-bottom: none;
  601. }
  602. .confirm-label {
  603. font-size: 26rpx;
  604. color: #666;
  605. font-weight: 500;
  606. }
  607. .confirm-value {
  608. font-size: 26rpx;
  609. color: #333;
  610. font-weight: bold;
  611. }
  612. .confirm-value.price {
  613. color: #FF6B35;
  614. font-size: 30rpx;
  615. }