form.css 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. .popup-mask[data-v-af3fbef1] {
  2. position: fixed;
  3. top: 0;
  4. left: 0;
  5. right: 0;
  6. bottom: 0;
  7. background-color: rgba(0, 0, 0, 0.4); /* 半透明遮罩 */
  8. z-index: 999;
  9. display: flex;
  10. align-items: center;
  11. justify-content: center;
  12. }
  13. .popup-content[data-v-af3fbef1] {
  14. width: 80%; /* 宽度大概屏幕 80% */
  15. max-height: 70%;
  16. background-color: #fff;
  17. border-radius: 0.5rem;
  18. display: flex;
  19. flex-direction: column;
  20. overflow: hidden;
  21. }
  22. .popup-header[data-v-af3fbef1] {
  23. height: 3.125rem;
  24. display: flex;
  25. align-items: center;
  26. justify-content: center;
  27. position: relative;
  28. border-bottom: 0.0625rem solid #eee;
  29. }
  30. .popup-title[data-v-af3fbef1] {
  31. font-size: 1rem;
  32. font-weight: bold;
  33. color: #333;
  34. }
  35. .close-icon[data-v-af3fbef1] {
  36. position: absolute;
  37. right: 0.9375rem;
  38. top: 50%;
  39. transform: translateY(-50%);
  40. font-size: 1.25rem;
  41. color: #999;
  42. line-height: 1;
  43. padding: 0.3125rem; /* 增加点击区域 */
  44. }
  45. .popup-body[data-v-af3fbef1] {
  46. padding: 0.9375rem;
  47. font-size: 0.875rem;
  48. color: #666;
  49. line-height: 1.6;
  50. max-height: 18.75rem; /* 限制高度滚动 */
  51. box-sizing: border-box;
  52. }
  53. .popup-footer[data-v-af3fbef1] {
  54. padding: 0.9375rem;
  55. border-top: 0.0625rem solid #eee;
  56. }
  57. .confirm-btn[data-v-af3fbef1] {
  58. background: linear-gradient(90deg, #FF6F00 0%, #FF5722 100%);
  59. color: #fff;
  60. font-size: 0.9375rem;
  61. font-weight: bold;
  62. height: 2.5rem;
  63. line-height: 2.5rem;
  64. border-radius: 0.25rem;
  65. box-shadow: 0 0.125rem 0.3125rem rgba(255, 87, 34, 0.2);
  66. }
  67. .confirm-btn[data-v-af3fbef1]::after {
  68. border: none;
  69. }
  70. /* 页面背景 */
  71. body {
  72. background-color: #F5F6F8;
  73. }
  74. .container {
  75. padding: 0.625rem;
  76. /* 底部留白给按钮 */
  77. }
  78. /* 卡片通用样式 */
  79. .card {
  80. background-color: #fff;
  81. border-radius: 0.625rem;
  82. padding: 0.9375rem;
  83. margin-bottom: 0.625rem;
  84. }
  85. /* 表单行 */
  86. .form-item {
  87. display: flex;
  88. align-items: center;
  89. margin-bottom: 0.9375rem;
  90. }
  91. .form-item:last-child {
  92. margin-bottom: 0;
  93. }
  94. /* 标签宽度固定 */
  95. .label {
  96. width: 3.75rem;
  97. font-size: 0.9375rem;
  98. font-weight: bold;
  99. color: #333;
  100. margin-right: 0.625rem;
  101. flex-shrink: 0;
  102. }
  103. /* 灰色输入框容器 */
  104. .input-box {
  105. flex: 1;
  106. height: 2.5rem;
  107. background-color: #F8F8F8;
  108. /* 灰色背景 */
  109. border-radius: 0.25rem;
  110. display: flex;
  111. align-items: center;
  112. padding: 0 0.625rem;
  113. font-size: 0.875rem;
  114. color: #333;
  115. }
  116. .input {
  117. flex: 1;
  118. height: 100%;
  119. font-size: 0.875rem;
  120. }
  121. /* 特殊样式: 手机号前缀 */
  122. .prefix-area {
  123. display: flex;
  124. align-items: center;
  125. margin-right: 0.625rem;
  126. height: 100%;
  127. /* 确保高度撑满 */
  128. }
  129. .prefix {
  130. color: #333;
  131. margin-right: 0.15625rem;
  132. }
  133. .arrow-down {
  134. font-size: 0.625rem;
  135. color: #999;
  136. line-height: 1;
  137. /* 消除行高影响 */
  138. }
  139. /* 特殊样式: 获取验证码 */
  140. .get-code-text {
  141. color: #FF5722;
  142. font-size: 0.875rem;
  143. font-weight: bold;
  144. margin-left: 0.625rem;
  145. }
  146. /* 特殊样式: 性别单选 */
  147. .gender-group {
  148. display: flex;
  149. align-items: center;
  150. }
  151. .radio-item {
  152. display: flex;
  153. align-items: center;
  154. margin-right: 1.25rem;
  155. font-size: 0.9375rem;
  156. color: #333;
  157. }
  158. .radio-icon {
  159. margin-right: 0.3125rem;
  160. font-size: 1rem;
  161. color: #ccc;
  162. /* 默认灰色 */
  163. }
  164. .radio-icon.active {
  165. color: #FF5722;
  166. /* 选中橙色 */
  167. }
  168. .radio-label.active {
  169. color: #FF5722;
  170. font-weight: bold;
  171. }
  172. /* 特殊样式: 箭头与图标 */
  173. .arrow-right {
  174. color: #ccc;
  175. font-size: 0.75rem;
  176. margin-left: auto;
  177. /* 推到最右 */
  178. }
  179. .eye-icon {
  180. padding: 0.3125rem;
  181. color: #ccc;
  182. }
  183. /* 服务类型区域 */
  184. .section-title {
  185. font-size: 0.9375rem;
  186. font-weight: bold;
  187. color: #333;
  188. margin-bottom: 0.625rem;
  189. }
  190. .service-types {
  191. display: flex;
  192. justify-content: space-between;
  193. margin-bottom: 0.9375rem;
  194. }
  195. .type-btn {
  196. width: 30%;
  197. /* 三等分 */
  198. height: 2.5rem;
  199. background-color: #F8F8F8;
  200. border-radius: 0.25rem;
  201. display: flex;
  202. align-items: center;
  203. justify-content: center;
  204. font-size: 0.875rem;
  205. color: #333;
  206. font-weight: 500;
  207. }
  208. .type-btn.selected {
  209. background-color: #FFF3E0;
  210. /* 浅橙背景 */
  211. color: #FF5722;
  212. font-weight: bold;
  213. }
  214. /* 底部操作区 (非固定) */
  215. .footer-actions {
  216. margin-top: 1.25rem;
  217. padding: 0 0.3125rem;
  218. padding-bottom: 1.875rem;
  219. /* 底部留白 */
  220. }
  221. /* 底部协议 */
  222. .agreement-row {
  223. display: flex;
  224. align-items: center;
  225. margin-bottom: 0.9375rem;
  226. /* 增加间距 */
  227. }
  228. .checkbox {
  229. width: 1rem;
  230. height: 1rem;
  231. border: 0.0625rem solid #ccc;
  232. border-radius: 0.125rem;
  233. margin-right: 0.46875rem;
  234. display: flex;
  235. align-items: center;
  236. justify-content: center;
  237. }
  238. .checkbox.checked {
  239. border-color: #FF5722;
  240. background-color: #FF5722;
  241. }
  242. .check-mark {
  243. color: #fff;
  244. font-size: 0.6875rem;
  245. }
  246. .agree-text {
  247. font-size: 0.8125rem;
  248. color: #999;
  249. }
  250. /* 底部按钮 */
  251. .footer-btn-area {
  252. width: 100%;
  253. margin-top: 1.25rem;
  254. /* 增加上间距 */
  255. }
  256. .submit-btn {
  257. background: linear-gradient(90deg, #FF6F00 0%, #FF5722 100%);
  258. color: #fff;
  259. font-size: 0.875rem;
  260. /* 14号字体 */
  261. font-weight: bold;
  262. height: 2.8125rem;
  263. line-height: 2.8125rem;
  264. border-radius: 1.40625rem;
  265. box-shadow: 0 0.3125rem 0.625rem rgba(255, 87, 34, 0.2);
  266. }
  267. .submit-btn::after {
  268. border: none;
  269. }
  270. /* 自定义日期选择器弹窗 */
  271. .picker-mask {
  272. position: fixed;
  273. top: 0;
  274. left: 0;
  275. right: 0;
  276. bottom: 0;
  277. background-color: rgba(0, 0, 0, 0.5);
  278. z-index: 999;
  279. visibility: hidden;
  280. opacity: 0;
  281. transition: all 0.3s;
  282. }
  283. .picker-mask.show {
  284. visibility: visible;
  285. opacity: 1;
  286. }
  287. .picker-content {
  288. position: absolute;
  289. bottom: 0;
  290. left: 0;
  291. width: 100%;
  292. background-color: #fff;
  293. border-radius: 0.625rem 0.625rem 0 0;
  294. transform: translateY(100%);
  295. transition: all 0.3s;
  296. }
  297. .picker-mask.show .picker-content {
  298. transform: translateY(0);
  299. }
  300. .picker-header {
  301. display: flex;
  302. justify-content: space-between;
  303. align-items: center;
  304. padding: 0.9375rem;
  305. border-bottom: 1px solid #eee;
  306. font-size: 1rem;
  307. }
  308. .picker-btn-cancel {
  309. color: #999;
  310. }
  311. .picker-title {
  312. font-weight: bold;
  313. color: #333;
  314. }
  315. .picker-btn-confirm {
  316. color: #FF5722;
  317. font-weight: bold;
  318. }
  319. .picker-view {
  320. width: 100%;
  321. height: 12.5rem;
  322. }
  323. .picker-item {
  324. line-height: 50px;
  325. /* picker-view-column 默认高度需要配合 */
  326. text-align: center;
  327. font-size: 1rem;
  328. color: #333;
  329. }
  330. /* 猴子图标样式 (复用 eye-icon 容器) */
  331. .monkey-icon {
  332. padding: 0.3125rem;
  333. display: flex;
  334. align-items: center;
  335. justify-content: center;
  336. }
  337. .svg-icon {
  338. width: 1.25rem;
  339. height: 1.25rem;
  340. }
  341. /* 弹窗通用列表 (覆盖) */
  342. .picker-content {
  343. height: 25rem;
  344. /* 增加高度以容纳层级 */
  345. display: flex;
  346. flex-direction: column;
  347. }
  348. .picker-body {
  349. flex: 1;
  350. display: flex;
  351. overflow: hidden;
  352. padding: 0 0.9375rem 0.9375rem;
  353. }
  354. /* 左侧:已选路径垂直时间轴 */
  355. .timeline-area {
  356. width: 6.25rem;
  357. border-right: 1px solid #f5f5f5;
  358. padding-right: 0.625rem;
  359. display: flex;
  360. flex-direction: column;
  361. }
  362. .timeline-item {
  363. position: relative;
  364. padding-bottom: 1.25rem;
  365. padding-left: 0.9375rem;
  366. color: #333;
  367. font-size: 0.875rem;
  368. }
  369. .timeline-item:last-child {
  370. padding-bottom: 0;
  371. }
  372. .timeline-dot {
  373. position: absolute;
  374. left: 0;
  375. top: 0.375rem;
  376. width: 0.4375rem;
  377. height: 0.4375rem;
  378. border-radius: 50%;
  379. background-color: #eee;
  380. }
  381. .timeline-item.active .timeline-dot {
  382. background-color: #FF5722;
  383. box-shadow: 0 0 0 0.125rem rgba(255, 87, 34, 0.2);
  384. }
  385. .timeline-item.active {
  386. font-weight: bold;
  387. color: #FF5722;
  388. }
  389. /* 虚线连接 (除最后一个外的点都有线) */
  390. .timeline-item:not(:last-child)::after {
  391. content: '';
  392. position: absolute;
  393. left: 0.1875rem;
  394. top: 0.9375rem;
  395. bottom: -0.3125rem;
  396. width: 0.0625rem;
  397. background-color: #f0f0f0;
  398. }
  399. /* 右侧:待选列表 */
  400. .list-area {
  401. flex: 1;
  402. padding-left: 0.9375rem;
  403. overflow-y: auto;
  404. }
  405. .list-item {
  406. padding: 0.75rem 0;
  407. border-bottom: 1px solid #f9f9f9;
  408. font-size: 0.875rem;
  409. color: #666;
  410. }
  411. .list-item:active {
  412. background-color: #f5f5f5;
  413. }
  414. /* 弹窗通用列表 */
  415. .picker-list {
  416. max-height: 18.75rem;
  417. overflow-y: auto;
  418. padding: 0.625rem 0;
  419. }
  420. /* 城市选择项 (仿图1) */
  421. .city-item {
  422. display: flex;
  423. align-items: center;
  424. padding: 0.75rem 1.25rem;
  425. font-size: 0.9375rem;
  426. color: #333;
  427. }
  428. .city-item.active {
  429. color: #FF5722;
  430. font-weight: bold;
  431. }
  432. .dot-radio {
  433. width: 0.5rem;
  434. height: 0.5rem;
  435. border-radius: 50%;
  436. background-color: #eee;
  437. margin-right: 0.625rem;
  438. position: relative;
  439. }
  440. .city-item.active .dot-radio {
  441. background-color: #FF5722;
  442. box-shadow: 0 0 0 0.1875rem rgba(255, 87, 34, 0.2);
  443. }
  444. /* 站点选择项 (仿图2) */
  445. .station-item {
  446. padding: 0.9375rem 1.25rem;
  447. font-size: 0.9375rem;
  448. color: #333;
  449. border-bottom: 1px solid #f9f9f9;
  450. }
  451. .station-item:last-child {
  452. border-bottom: none;
  453. }