form.css 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  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. flex-wrap: wrap;
  193. gap: 0.625rem;
  194. margin-bottom: 0.9375rem;
  195. }
  196. .type-btn {
  197. width: calc((100% - 1.25rem) / 3);
  198. /* 每行3个,间距20rpx */
  199. height: 2.5rem;
  200. background-color: #F8F8F8;
  201. border-radius: 0.25rem;
  202. display: flex;
  203. align-items: center;
  204. justify-content: center;
  205. font-size: 0.875rem;
  206. color: #333;
  207. font-weight: 500;
  208. }
  209. .type-btn.selected {
  210. background-color: #FFF3E0;
  211. /* 浅橙背景 */
  212. color: #FF5722;
  213. font-weight: bold;
  214. }
  215. /* 底部操作区 (非固定) */
  216. .footer-actions {
  217. margin-top: 1.25rem;
  218. padding: 0 0.3125rem;
  219. padding-bottom: 1.875rem;
  220. /* 底部留白 */
  221. }
  222. /* 底部协议 */
  223. .agreement-row {
  224. display: flex;
  225. align-items: center;
  226. margin-bottom: 0.9375rem;
  227. /* 增加间距 */
  228. }
  229. .checkbox {
  230. width: 1rem;
  231. height: 1rem;
  232. border: 0.0625rem solid #ccc;
  233. border-radius: 0.125rem;
  234. margin-right: 0.46875rem;
  235. display: flex;
  236. align-items: center;
  237. justify-content: center;
  238. }
  239. .checkbox.checked {
  240. border-color: #FF5722;
  241. background-color: #FF5722;
  242. }
  243. .check-mark {
  244. color: #fff;
  245. font-size: 0.6875rem;
  246. }
  247. .agree-text {
  248. font-size: 0.8125rem;
  249. color: #999;
  250. }
  251. /* 底部按钮 */
  252. .footer-btn-area {
  253. width: 100%;
  254. margin-top: 1.25rem;
  255. /* 增加上间距 */
  256. }
  257. .submit-btn {
  258. background: linear-gradient(90deg, #FF6F00 0%, #FF5722 100%);
  259. color: #fff;
  260. font-size: 0.875rem;
  261. /* 14号字体 */
  262. font-weight: bold;
  263. height: 2.8125rem;
  264. line-height: 2.8125rem;
  265. border-radius: 1.40625rem;
  266. box-shadow: 0 0.3125rem 0.625rem rgba(255, 87, 34, 0.2);
  267. }
  268. .submit-btn::after {
  269. border: none;
  270. }
  271. /* 自定义日期选择器弹窗 */
  272. .picker-mask {
  273. position: fixed;
  274. top: 0;
  275. left: 0;
  276. right: 0;
  277. bottom: 0;
  278. background-color: rgba(0, 0, 0, 0.5);
  279. z-index: 999;
  280. visibility: hidden;
  281. opacity: 0;
  282. transition: all 0.3s;
  283. }
  284. .picker-mask.show {
  285. visibility: visible;
  286. opacity: 1;
  287. }
  288. .picker-content {
  289. position: absolute;
  290. bottom: 0;
  291. left: 0;
  292. width: 100%;
  293. background-color: #fff;
  294. border-radius: 0.625rem 0.625rem 0 0;
  295. transform: translateY(100%);
  296. transition: all 0.3s;
  297. }
  298. .picker-mask.show .picker-content {
  299. transform: translateY(0);
  300. }
  301. .picker-header {
  302. display: flex;
  303. justify-content: space-between;
  304. align-items: center;
  305. padding: 0.9375rem;
  306. border-bottom: 1px solid #eee;
  307. font-size: 1rem;
  308. }
  309. .picker-btn-cancel {
  310. color: #999;
  311. }
  312. .picker-title {
  313. font-weight: bold;
  314. color: #333;
  315. }
  316. .picker-btn-confirm {
  317. color: #FF5722;
  318. font-weight: bold;
  319. }
  320. .picker-view {
  321. width: 100%;
  322. height: 12.5rem;
  323. }
  324. .picker-item {
  325. line-height: 50px;
  326. /* picker-view-column 默认高度需要配合 */
  327. text-align: center;
  328. font-size: 1rem;
  329. color: #333;
  330. }
  331. /* 猴子图标样式 (复用 eye-icon 容器) */
  332. .monkey-icon {
  333. padding: 0.3125rem;
  334. display: flex;
  335. align-items: center;
  336. justify-content: center;
  337. }
  338. .svg-icon {
  339. width: 1.25rem;
  340. height: 1.25rem;
  341. }
  342. /* 弹窗通用列表 (覆盖) */
  343. .picker-content {
  344. height: 25rem;
  345. /* 增加高度以容纳层级 */
  346. display: flex;
  347. flex-direction: column;
  348. }
  349. .picker-body {
  350. flex: 1;
  351. display: flex;
  352. overflow: hidden;
  353. padding: 0 0.9375rem 0.9375rem;
  354. }
  355. /* 左侧:已选路径垂直时间轴 */
  356. .timeline-area {
  357. width: 6.25rem;
  358. border-right: 1px solid #f5f5f5;
  359. padding-right: 0.625rem;
  360. display: flex;
  361. flex-direction: column;
  362. }
  363. .timeline-item {
  364. position: relative;
  365. padding-bottom: 1.25rem;
  366. padding-left: 0.9375rem;
  367. color: #333;
  368. font-size: 0.875rem;
  369. }
  370. .timeline-item:last-child {
  371. padding-bottom: 0;
  372. }
  373. .timeline-dot {
  374. position: absolute;
  375. left: 0;
  376. top: 0.375rem;
  377. width: 0.4375rem;
  378. height: 0.4375rem;
  379. border-radius: 50%;
  380. background-color: #eee;
  381. }
  382. .timeline-item.active .timeline-dot {
  383. background-color: #FF5722;
  384. box-shadow: 0 0 0 0.125rem rgba(255, 87, 34, 0.2);
  385. }
  386. .timeline-item.active {
  387. font-weight: bold;
  388. color: #FF5722;
  389. }
  390. /* 虚线连接 (除最后一个外的点都有线) */
  391. .timeline-item:not(:last-child)::after {
  392. content: '';
  393. position: absolute;
  394. left: 0.1875rem;
  395. top: 0.9375rem;
  396. bottom: -0.3125rem;
  397. width: 0.0625rem;
  398. background-color: #f0f0f0;
  399. }
  400. /* 右侧:待选列表 */
  401. .list-area {
  402. flex: 1;
  403. padding-left: 0.9375rem;
  404. overflow-y: auto;
  405. }
  406. .list-item {
  407. padding: 0.75rem 0;
  408. border-bottom: 1px solid #f9f9f9;
  409. font-size: 0.875rem;
  410. color: #666;
  411. }
  412. .list-item:active {
  413. background-color: #f5f5f5;
  414. }
  415. /* 弹窗通用列表 */
  416. .picker-list {
  417. max-height: 18.75rem;
  418. overflow-y: auto;
  419. padding: 0.625rem 0;
  420. }
  421. /* 城市选择项 (仿图1) */
  422. .city-item {
  423. display: flex;
  424. align-items: center;
  425. padding: 0.75rem 1.25rem;
  426. font-size: 0.9375rem;
  427. color: #333;
  428. }
  429. .city-item.active {
  430. color: #FF5722;
  431. font-weight: bold;
  432. }
  433. .dot-radio {
  434. width: 0.5rem;
  435. height: 0.5rem;
  436. border-radius: 50%;
  437. background-color: #eee;
  438. margin-right: 0.625rem;
  439. position: relative;
  440. }
  441. .city-item.active .dot-radio {
  442. background-color: #FF5722;
  443. box-shadow: 0 0 0 0.1875rem rgba(255, 87, 34, 0.2);
  444. }
  445. /* 站点选择项 (仿图2) */
  446. .station-item {
  447. padding: 0.9375rem 1.25rem;
  448. font-size: 0.9375rem;
  449. color: #333;
  450. border-bottom: 1px solid #f9f9f9;
  451. }
  452. .station-item:last-child {
  453. border-bottom: none;
  454. }