order-detail.wxss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  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. .section-title {
  45. font-size: 28rpx;
  46. font-weight: bold;
  47. margin-bottom: 20rpx;
  48. color: #333;
  49. padding-left: 10rpx;
  50. border-left: 6rpx solid #007AFF;
  51. }
  52. .order-info-section {
  53. background: white;
  54. padding: 30rpx;
  55. margin: 20rpx;
  56. border-radius: 20rpx;
  57. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  58. }
  59. .info-card {
  60. background: #f8f8f8;
  61. border-radius: 15rpx;
  62. padding: 25rpx;
  63. }
  64. .info-row {
  65. display: flex;
  66. margin-bottom: 20rpx;
  67. align-items: center;
  68. }
  69. .info-row:last-child {
  70. margin-bottom: 0;
  71. }
  72. .info-label {
  73. font-size: 26rpx;
  74. color: #666;
  75. width: 150rpx;
  76. flex-shrink: 0;
  77. }
  78. .info-value {
  79. font-size: 26rpx;
  80. color: #333;
  81. flex: 1;
  82. }
  83. .info-value.address {
  84. color: #666;
  85. font-size: 24rpx;
  86. line-height: 1.6;
  87. }
  88. .info-value.status {
  89. color: #007AFF;
  90. font-weight: bold;
  91. }
  92. .info-value.status.delivering {
  93. color: #fa8c16;
  94. }
  95. .info-value.status.completed {
  96. color: #52c41a;
  97. }
  98. .medicines-section {
  99. background: white;
  100. padding: 30rpx;
  101. margin: 20rpx;
  102. border-radius: 20rpx;
  103. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  104. }
  105. .medicine-list {
  106. background: #f8f8f8;
  107. border-radius: 15rpx;
  108. padding: 20rpx;
  109. }
  110. .medicine-item {
  111. display: flex;
  112. align-items: center;
  113. padding: 20rpx;
  114. background: white;
  115. border-radius: 10rpx;
  116. margin-bottom: 15rpx;
  117. }
  118. .medicine-item:last-child {
  119. margin-bottom: 0;
  120. }
  121. .medicine-icon {
  122. width: 60rpx;
  123. height: 60rpx;
  124. display: flex;
  125. align-items: center;
  126. justify-content: center;
  127. margin-right: 20rpx;
  128. font-size: 36rpx;
  129. }
  130. .medicine-info {
  131. flex: 1;
  132. }
  133. .medicine-name {
  134. font-size: 28rpx;
  135. color: #333;
  136. font-weight: bold;
  137. }
  138. .price-section {
  139. background: white;
  140. padding: 30rpx;
  141. margin: 20rpx;
  142. border-radius: 20rpx;
  143. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  144. }
  145. .price-card {
  146. background: #f8f8f8;
  147. border-radius: 15rpx;
  148. padding: 25rpx;
  149. }
  150. .price-row {
  151. display: flex;
  152. justify-content: space-between;
  153. margin-bottom: 20rpx;
  154. align-items: center;
  155. }
  156. .price-row:last-child {
  157. margin-bottom: 0;
  158. }
  159. .price-label {
  160. font-size: 26rpx;
  161. color: #666;
  162. }
  163. .price-value {
  164. font-size: 28rpx;
  165. color: #333;
  166. font-weight: bold;
  167. }
  168. .price-row.total {
  169. border-top: 1rpx solid #e8e8e8;
  170. padding-top: 20rpx;
  171. margin-top: 20rpx;
  172. }
  173. .price-value.final {
  174. font-size: 32rpx;
  175. color: #FF6B35;
  176. }
  177. .tracking-section {
  178. background: white;
  179. padding: 30rpx;
  180. margin: 20rpx;
  181. border-radius: 20rpx;
  182. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  183. }
  184. .tracking-card {
  185. background: #f8f8f8;
  186. border-radius: 15rpx;
  187. padding: 25rpx;
  188. }
  189. .tracking-status {
  190. text-align: center;
  191. margin-bottom: 30rpx;
  192. padding-bottom: 20rpx;
  193. border-bottom: 1rpx solid #e8e8e8;
  194. }
  195. .status-text {
  196. font-size: 28rpx;
  197. color: #007AFF;
  198. font-weight: bold;
  199. }
  200. .tracking-steps {
  201. display: flex;
  202. flex-direction: column;
  203. gap: 25rpx;
  204. }
  205. .step-item {
  206. display: flex;
  207. align-items: center;
  208. }
  209. .step-icon {
  210. width: 50rpx;
  211. height: 50rpx;
  212. display: flex;
  213. align-items: center;
  214. justify-content: center;
  215. margin-right: 20rpx;
  216. font-size: 32rpx;
  217. color: #ccc;
  218. font-weight: bold;
  219. border-radius: 50%;
  220. background: white;
  221. border: 2rpx solid #e8e8e8;
  222. }
  223. .step-icon.active {
  224. color: #52c41a;
  225. border-color: #52c41a;
  226. background: #f6ffed;
  227. }
  228. .step-text {
  229. font-size: 26rpx;
  230. color: #333;
  231. }
  232. /* 地图样式 */
  233. .map-section {
  234. margin-top: 30rpx;
  235. }
  236. .map-container {
  237. border-radius: 15rpx;
  238. overflow: hidden;
  239. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
  240. background: #f0f0f0;
  241. min-height: 400rpx;
  242. }
  243. .delivery-map {
  244. width: 100%;
  245. height: 400rpx;
  246. display: block;
  247. }
  248. .map-legend {
  249. display: flex;
  250. justify-content: space-around;
  251. margin-top: 20rpx;
  252. padding: 20rpx;
  253. background: #f8f8f8;
  254. border-radius: 10rpx;
  255. }
  256. .legend-item {
  257. display: flex;
  258. align-items: center;
  259. }
  260. .legend-icon {
  261. width: 24rpx;
  262. height: 24rpx;
  263. border-radius: 50%;
  264. margin-right: 10rpx;
  265. }
  266. .legend-icon.hospital {
  267. background: #ff4d4f;
  268. border: 2rpx solid #ff4d4f;
  269. }
  270. .legend-icon.drone {
  271. background: #007AFF;
  272. border: 2rpx solid #007AFF;
  273. }
  274. .legend-icon.route {
  275. width: 40rpx;
  276. height: 4rpx;
  277. background: #007AFF;
  278. border-radius: 2rpx;
  279. }
  280. .legend-text {
  281. font-size: 24rpx;
  282. color: #666;
  283. }
  284. .action-section {
  285. background: white;
  286. padding: 30rpx;
  287. margin: 20rpx;
  288. border-radius: 20rpx;
  289. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  290. }
  291. .action-btn {
  292. width: 100%;
  293. padding: 25rpx 0;
  294. border-radius: 10rpx;
  295. font-size: 28rpx;
  296. text-align: center;
  297. border: none;
  298. margin-bottom: 20rpx;
  299. }
  300. .action-btn:last-child {
  301. margin-bottom: 0;
  302. }
  303. .action-btn.primary {
  304. background: #007AFF;
  305. color: white;
  306. }
  307. .action-btn.secondary {
  308. background: #52c41a;
  309. color: white;
  310. }
  311. .action-btn.danger {
  312. background: #ff4d4f;
  313. color: white;
  314. }