profile.wxss 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. .container {
  2. width: 100%;
  3. align-items: stretch;
  4. padding: 0;
  5. box-sizing: border-box;
  6. background-color: #f5f5f5;
  7. }
  8. .user-header {
  9. background: linear-gradient(135deg, #007AFF 0%, #00D4FF 100%);
  10. padding: 60rpx 30rpx 40rpx;
  11. display: flex;
  12. align-items: center;
  13. position: relative;
  14. }
  15. .user-avatar {
  16. margin-right: 25rpx;
  17. }
  18. .avatar {
  19. width: 120rpx;
  20. height: 120rpx;
  21. border-radius: 50%;
  22. border: 4rpx solid rgba(255, 255, 255, 0.3);
  23. }
  24. .user-info {
  25. flex: 1;
  26. display: flex;
  27. flex-direction: column;
  28. }
  29. .user-name {
  30. font-size: 36rpx;
  31. font-weight: bold;
  32. color: white;
  33. margin-bottom: 10rpx;
  34. }
  35. .user-phone {
  36. font-size: 26rpx;
  37. color: rgba(255, 255, 255, 0.8);
  38. }
  39. .user-status {
  40. background: rgba(255, 255, 255, 0.2);
  41. padding: 8rpx 20rpx;
  42. border-radius: 20rpx;
  43. }
  44. .status-text {
  45. font-size: 22rpx;
  46. color: white;
  47. }
  48. .auth-section {
  49. background: white;
  50. margin: 20rpx;
  51. border-radius: 20rpx;
  52. padding: 30rpx;
  53. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  54. }
  55. .section-title {
  56. font-size: 28rpx;
  57. font-weight: bold;
  58. color: #333;
  59. margin-bottom: 20rpx;
  60. padding-left: 10rpx;
  61. border-left: 6rpx solid #007AFF;
  62. }
  63. .auth-list {
  64. display: flex;
  65. flex-direction: column;
  66. }
  67. .auth-item {
  68. display: flex;
  69. justify-content: space-between;
  70. align-items: center;
  71. padding: 25rpx 0;
  72. border-bottom: 1rpx solid #f0f0f0;
  73. }
  74. .auth-item:last-child {
  75. border-bottom: none;
  76. }
  77. .auth-info {
  78. display: flex;
  79. align-items: center;
  80. flex: 1;
  81. }
  82. .auth-icon {
  83. width: 50rpx;
  84. height: 50rpx;
  85. margin-right: 20rpx;
  86. }
  87. .auth-text {
  88. display: flex;
  89. flex-direction: column;
  90. }
  91. .auth-title {
  92. font-size: 28rpx;
  93. color: #333;
  94. margin-bottom: 5rpx;
  95. }
  96. .auth-desc {
  97. font-size: 22rpx;
  98. color: #999;
  99. }
  100. .auth-switch {
  101. transform: scale(0.8);
  102. }
  103. .medical-section {
  104. background: white;
  105. margin: 20rpx;
  106. border-radius: 20rpx;
  107. padding: 30rpx;
  108. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  109. }
  110. .medical-item {
  111. display: flex;
  112. justify-content: space-between;
  113. align-items: center;
  114. padding: 25rpx 0;
  115. border-bottom: 1rpx solid #f0f0f0;
  116. }
  117. .medical-info {
  118. display: flex;
  119. align-items: center;
  120. flex: 1;
  121. }
  122. .medical-icon {
  123. width: 50rpx;
  124. height: 50rpx;
  125. margin-right: 20rpx;
  126. }
  127. .medical-text {
  128. display: flex;
  129. flex-direction: column;
  130. }
  131. .medical-title {
  132. font-size: 28rpx;
  133. color: #333;
  134. margin-bottom: 5rpx;
  135. }
  136. .medical-desc {
  137. font-size: 22rpx;
  138. color: #999;
  139. }
  140. .medical-switch {
  141. transform: scale(0.8);
  142. }
  143. .medical-action {
  144. display: flex;
  145. justify-content: space-between;
  146. align-items: center;
  147. padding: 25rpx 0;
  148. }
  149. .action-text {
  150. font-size: 28rpx;
  151. color: #007AFF;
  152. }
  153. .action-arrow {
  154. font-size: 28rpx;
  155. color: #ccc;
  156. }
  157. .order-section {
  158. background: white;
  159. margin: 20rpx;
  160. border-radius: 20rpx;
  161. padding: 30rpx;
  162. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  163. }
  164. .order-stats {
  165. display: flex;
  166. justify-content: space-around;
  167. padding: 20rpx 0;
  168. margin-bottom: 20rpx;
  169. }
  170. .stat-item {
  171. display: flex;
  172. flex-direction: column;
  173. align-items: center;
  174. flex: 1;
  175. }
  176. .stat-number {
  177. font-size: 36rpx;
  178. font-weight: bold;
  179. color: #007AFF;
  180. margin-bottom: 10rpx;
  181. }
  182. .stat-label {
  183. font-size: 22rpx;
  184. color: #666;
  185. }
  186. .recent-orders {
  187. margin-top: 20rpx;
  188. }
  189. .recent-title {
  190. display: flex;
  191. justify-content: space-between;
  192. align-items: center;
  193. margin-bottom: 20rpx;
  194. font-size: 26rpx;
  195. font-weight: bold;
  196. color: #333;
  197. }
  198. .view-all {
  199. font-size: 24rpx;
  200. color: #007AFF;
  201. font-weight: normal;
  202. }
  203. .order-list {
  204. display: flex;
  205. flex-direction: column;
  206. }
  207. .order-item {
  208. display: flex;
  209. justify-content: space-between;
  210. align-items: center;
  211. padding: 20rpx;
  212. background: #f8f8f8;
  213. border-radius: 15rpx;
  214. margin-bottom: 15rpx;
  215. }
  216. .order-info {
  217. flex: 1;
  218. display: flex;
  219. flex-direction: column;
  220. }
  221. .order-hospital {
  222. font-size: 26rpx;
  223. color: #333;
  224. font-weight: bold;
  225. margin-bottom: 8rpx;
  226. }
  227. .order-date {
  228. font-size: 22rpx;
  229. color: #999;
  230. margin-bottom: 8rpx;
  231. }
  232. .order-medicines {
  233. font-size: 24rpx;
  234. color: #666;
  235. overflow: hidden;
  236. text-overflow: ellipsis;
  237. white-space: nowrap;
  238. }
  239. .order-status {
  240. display: flex;
  241. flex-direction: column;
  242. align-items: flex-end;
  243. margin-left: 15rpx;
  244. }
  245. .status-badge {
  246. font-size: 22rpx;
  247. padding: 5rpx 15rpx;
  248. border-radius: 20rpx;
  249. margin-bottom: 8rpx;
  250. }
  251. .status-badge.delivering {
  252. background: #e6f7ff;
  253. color: #1890ff;
  254. }
  255. .status-badge.completed {
  256. background: #f6ffed;
  257. color: #52c41a;
  258. }
  259. .status-badge.pending {
  260. background: #fff7e6;
  261. color: #fa8c16;
  262. }
  263. .order-price {
  264. font-size: 26rpx;
  265. color: #FF6B35;
  266. font-weight: bold;
  267. }
  268. .diagnosis-section {
  269. background: white;
  270. margin: 20rpx;
  271. border-radius: 20rpx;
  272. padding: 30rpx;
  273. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  274. }
  275. .diagnosis-stats {
  276. display: flex;
  277. justify-content: space-around;
  278. padding: 20rpx 0;
  279. margin-bottom: 20rpx;
  280. }
  281. .recent-diagnosis {
  282. display: flex;
  283. flex-direction: column;
  284. }
  285. .diagnosis-item {
  286. display: flex;
  287. justify-content: space-between;
  288. align-items: center;
  289. padding: 20rpx;
  290. background: #f8f8f8;
  291. border-radius: 15rpx;
  292. margin-bottom: 15rpx;
  293. }
  294. .diagnosis-info {
  295. flex: 1;
  296. display: flex;
  297. flex-direction: column;
  298. }
  299. .diagnosis-date {
  300. font-size: 22rpx;
  301. color: #999;
  302. margin-bottom: 8rpx;
  303. }
  304. .diagnosis-symptoms {
  305. font-size: 26rpx;
  306. color: #333;
  307. margin-bottom: 8rpx;
  308. overflow: hidden;
  309. text-overflow: ellipsis;
  310. white-space: nowrap;
  311. }
  312. .diagnosis-result {
  313. font-size: 24rpx;
  314. color: #FF6B35;
  315. }
  316. .diagnosis-arrow {
  317. font-size: 32rpx;
  318. color: #ccc;
  319. margin-left: 15rpx;
  320. }
  321. .settings-section {
  322. background: white;
  323. margin: 20rpx;
  324. border-radius: 20rpx;
  325. padding: 30rpx;
  326. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  327. }
  328. .settings-list {
  329. display: flex;
  330. flex-direction: column;
  331. }
  332. .setting-item {
  333. display: flex;
  334. align-items: center;
  335. padding: 25rpx 0;
  336. border-bottom: 1rpx solid #f0f0f0;
  337. transition: background 0.3s;
  338. }
  339. .setting-item:last-child {
  340. border-bottom: none;
  341. }
  342. .setting-item:active {
  343. background: #f8f8f8;
  344. }
  345. .setting-icon {
  346. width: 40rpx;
  347. height: 40rpx;
  348. margin-right: 20rpx;
  349. }
  350. .setting-text {
  351. flex: 1;
  352. font-size: 28rpx;
  353. color: #333;
  354. }
  355. .setting-arrow {
  356. font-size: 28rpx;
  357. color: #ccc;
  358. }
  359. .logout-section {
  360. padding: 30rpx 20rpx;
  361. margin-bottom: 30rpx;
  362. }
  363. .logout-btn {
  364. width: 100%;
  365. background: white;
  366. color: #FF6B35;
  367. border: 1rpx solid #FF6B35;
  368. border-radius: 50rpx;
  369. padding: 28rpx 0;
  370. font-size: 28rpx;
  371. font-weight: bold;
  372. }
  373. .logout-btn:active {
  374. background: #fff5f0;
  375. }
  376. .modal {
  377. position: fixed;
  378. top: 0;
  379. left: 0;
  380. right: 0;
  381. bottom: 0;
  382. background: rgba(0, 0, 0, 0.5);
  383. display: flex;
  384. align-items: center;
  385. justify-content: center;
  386. z-index: 1000;
  387. }
  388. .modal-content {
  389. background: white;
  390. border-radius: 20rpx;
  391. width: 85%;
  392. overflow: hidden;
  393. }
  394. .modal-header {
  395. display: flex;
  396. justify-content: space-between;
  397. align-items: center;
  398. padding: 30rpx;
  399. border-bottom: 1rpx solid #f0f0f0;
  400. }
  401. .modal-title {
  402. font-size: 32rpx;
  403. font-weight: bold;
  404. color: #333;
  405. }
  406. .modal-close {
  407. font-size: 48rpx;
  408. color: #999;
  409. line-height: 1;
  410. padding: 0 10rpx;
  411. }
  412. .modal-body {
  413. padding: 50rpx 30rpx;
  414. display: flex;
  415. flex-direction: column;
  416. align-items: center;
  417. }
  418. .fingerprint-icon,
  419. .face-icon {
  420. width: 200rpx;
  421. height: 200rpx;
  422. margin-bottom: 30rpx;
  423. }
  424. .modal-text {
  425. font-size: 32rpx;
  426. font-weight: bold;
  427. color: #333;
  428. margin-bottom: 15rpx;
  429. }
  430. .modal-desc {
  431. font-size: 24rpx;
  432. color: #999;
  433. text-align: center;
  434. }
  435. .modal-footer {
  436. display: flex;
  437. padding: 20rpx 30rpx 30rpx;
  438. gap: 20rpx;
  439. }
  440. .modal-footer .btn {
  441. flex: 1;
  442. border-radius: 50rpx;
  443. padding: 25rpx 0;
  444. font-size: 28rpx;
  445. font-weight: bold;
  446. border: none;
  447. }
  448. .modal-footer .cancel {
  449. background: #f0f0f0;
  450. color: #666;
  451. }
  452. .modal-footer .confirm {
  453. background: #007AFF;
  454. color: white;
  455. }