order.wxss 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  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: 20rpx;
  195. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  196. display: flex;
  197. flex-direction: row;
  198. align-items: center;
  199. transition: all 0.3s;
  200. }
  201. .medicine-grid .medicine-item:active {
  202. transform: scale(0.98);
  203. background: #f8f8f8;
  204. }
  205. .medicine-grid .medicine-icon {
  206. width: 60rpx;
  207. height: 60rpx;
  208. margin-right: 15rpx;
  209. flex-shrink: 0;
  210. }
  211. .medicine-grid .medicine-info {
  212. flex: 1;
  213. display: flex;
  214. flex-direction: column;
  215. justify-content: center;
  216. }
  217. .medicine-grid .medicine-name {
  218. font-size: 26rpx;
  219. color: #333;
  220. margin-bottom: 8rpx;
  221. text-align: left;
  222. }
  223. .medicine-grid .medicine-price {
  224. font-size: 24rpx;
  225. color: #FF6B35;
  226. font-weight: bold;
  227. }
  228. .modal {
  229. position: fixed;
  230. top: 0;
  231. left: 0;
  232. right: 0;
  233. bottom: 0;
  234. background: rgba(0, 0, 0, 0.5);
  235. display: flex;
  236. align-items: center;
  237. justify-content: center;
  238. z-index: 1000;
  239. }
  240. .modal-content {
  241. background: white;
  242. border-radius: 20rpx;
  243. width: 90%;
  244. max-height: 80%;
  245. overflow: hidden;
  246. display: flex;
  247. flex-direction: column;
  248. }
  249. .modal-header {
  250. display: flex;
  251. justify-content: space-between;
  252. align-items: center;
  253. padding: 30rpx;
  254. border-bottom: 1rpx solid #f0f0f0;
  255. }
  256. .modal-title {
  257. font-size: 32rpx;
  258. font-weight: bold;
  259. color: #333;
  260. }
  261. .modal-close {
  262. font-size: 48rpx;
  263. color: #999;
  264. line-height: 1;
  265. padding: 0 10rpx;
  266. }
  267. .case-list {
  268. flex: 1;
  269. overflow-y: auto;
  270. padding: 20rpx;
  271. }
  272. .case-item {
  273. display: flex;
  274. justify-content: space-between;
  275. align-items: center;
  276. padding: 25rpx;
  277. background: #f8f8f8;
  278. border-radius: 15rpx;
  279. margin-bottom: 15rpx;
  280. transition: all 0.3s;
  281. }
  282. .case-item:active {
  283. background: #f0f0f0;
  284. }
  285. .case-info {
  286. flex: 1;
  287. display: flex;
  288. flex-direction: column;
  289. }
  290. .case-date {
  291. font-size: 22rpx;
  292. color: #999;
  293. margin-bottom: 8rpx;
  294. }
  295. .case-doctor {
  296. font-size: 26rpx;
  297. color: #333;
  298. margin-bottom: 8rpx;
  299. }
  300. .case-diagnosis {
  301. font-size: 24rpx;
  302. color: #FF6B35;
  303. }
  304. .case-arrow {
  305. font-size: 32rpx;
  306. color: #ccc;
  307. margin-left: 15rpx;
  308. }
  309. .modal-content .medicine-list {
  310. flex: 1;
  311. overflow-y: auto;
  312. padding: 20rpx;
  313. background: transparent;
  314. }
  315. .modal-content .medicine-item {
  316. display: flex;
  317. justify-content: space-between;
  318. align-items: center;
  319. padding: 25rpx;
  320. background: white;
  321. border-radius: 15rpx;
  322. margin-bottom: 15rpx;
  323. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  324. }
  325. .modal-content .medicine-info {
  326. flex: 1;
  327. display: flex;
  328. flex-direction: column;
  329. }
  330. .modal-content .medicine-name {
  331. font-size: 28rpx;
  332. color: #333;
  333. margin-bottom: 8rpx;
  334. }
  335. .modal-content .medicine-price {
  336. font-size: 26rpx;
  337. color: #FF6B35;
  338. font-weight: bold;
  339. }
  340. .medicine-action {
  341. display: flex;
  342. align-items: center;
  343. }
  344. .quantity-control {
  345. display: flex;
  346. align-items: center;
  347. gap: 15rpx;
  348. }
  349. .quantity-control .btn {
  350. width: 50rpx;
  351. height: 50rpx;
  352. border-radius: 50%;
  353. display: flex;
  354. align-items: center;
  355. justify-content: center;
  356. font-size: 32rpx;
  357. font-weight: bold;
  358. }
  359. .quantity-control .minus {
  360. background: #f0f0f0;
  361. color: #666;
  362. }
  363. .quantity-control .plus {
  364. background: #007AFF;
  365. color: white;
  366. }
  367. .quantity {
  368. font-size: 28rpx;
  369. color: #333;
  370. min-width: 40rpx;
  371. text-align: center;
  372. }
  373. /* 送货地址样式 */
  374. .address-section {
  375. padding: 20rpx 30rpx;
  376. background: white;
  377. border-top: 1rpx solid #f0f0f0;
  378. }
  379. .address-title {
  380. font-size: 28rpx;
  381. font-weight: bold;
  382. color: #333;
  383. margin-bottom: 20rpx;
  384. padding-left: 10rpx;
  385. border-left: 6rpx solid #007AFF;
  386. }
  387. .address-input-wrapper {
  388. display: flex;
  389. flex-direction: column;
  390. gap: 15rpx;
  391. }
  392. .address-input {
  393. width: 100%;
  394. padding: 20rpx;
  395. background: #f8f8f8;
  396. border-radius: 10rpx;
  397. font-size: 28rpx;
  398. color: #333;
  399. border: 1rpx solid #e8e8e8;
  400. }
  401. .address-input:focus {
  402. border-color: #007AFF;
  403. background: white;
  404. }
  405. .address-actions {
  406. display: flex;
  407. justify-content: flex-end;
  408. }
  409. .address-btn {
  410. font-size: 26rpx;
  411. color: #007AFF;
  412. padding: 10rpx 20rpx;
  413. border-radius: 20rpx;
  414. background: #e6f7ff;
  415. }
  416. .address-btn:active {
  417. background: #bae7ff;
  418. }
  419. .modal-footer {
  420. padding: 20rpx 30rpx;
  421. border-top: 1rpx solid #f0f0f0;
  422. background: white;
  423. }
  424. .total-price {
  425. font-size: 32rpx;
  426. font-weight: bold;
  427. color: #FF6B35;
  428. margin-bottom: 20rpx;
  429. text-align: right;
  430. }
  431. .action-buttons {
  432. display: flex;
  433. gap: 20rpx;
  434. }
  435. .action-buttons .btn {
  436. flex: 1;
  437. border-radius: 50rpx;
  438. padding: 25rpx 0;
  439. font-size: 28rpx;
  440. font-weight: bold;
  441. border: none;
  442. }
  443. .action-buttons .cancel {
  444. background: #f0f0f0;
  445. color: #666;
  446. }
  447. .action-buttons .confirm {
  448. background: #007AFF;
  449. color: white;
  450. }
  451. /* 比价确认信息样式 */
  452. .price-confirm-info {
  453. padding: 20rpx 30rpx;
  454. background: #f8f8f8;
  455. border-radius: 10rpx;
  456. margin: 20rpx 30rpx;
  457. }
  458. .confirm-item {
  459. display: flex;
  460. justify-content: space-between;
  461. align-items: center;
  462. padding: 15rpx 0;
  463. border-bottom: 1rpx solid #e8e8e8;
  464. }
  465. .confirm-item:last-child {
  466. border-bottom: none;
  467. }
  468. .confirm-label {
  469. font-size: 26rpx;
  470. color: #666;
  471. font-weight: 500;
  472. }
  473. .confirm-value {
  474. font-size: 26rpx;
  475. color: #333;
  476. font-weight: bold;
  477. }
  478. .confirm-value.price {
  479. color: #FF6B35;
  480. font-size: 30rpx;
  481. }