demo-payment-confirm-layouts.html 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280
  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>缴退费财务确认 · 布局方案 Demo</title>
  7. <style>
  8. *,
  9. *::before,
  10. *::after {
  11. box-sizing: border-box;
  12. margin: 0;
  13. padding: 0;
  14. }
  15. :root {
  16. --primary: #10b981;
  17. --primary-dark: #059669;
  18. --primary-bg: #ecfdf5;
  19. --mint-border: #c5e0d4;
  20. --text: #1e293b;
  21. --muted: #64748b;
  22. --surface: #fff;
  23. --page-bg: #f0f2f5;
  24. --border: #e2e8f0;
  25. --warning: #d97706;
  26. --warning-bg: #fffbeb;
  27. }
  28. body {
  29. font-family:
  30. Inter,
  31. -apple-system,
  32. BlinkMacSystemFont,
  33. 'PingFang SC',
  34. 'Hiragino Sans GB',
  35. 'Microsoft YaHei',
  36. sans-serif;
  37. font-size: 14px;
  38. line-height: 1.5;
  39. color: var(--text);
  40. background: var(--page-bg);
  41. padding: 32px 24px 64px;
  42. }
  43. .page-head {
  44. max-width: 1200px;
  45. margin: 0 auto 28px;
  46. }
  47. .page-head h1 {
  48. font-size: 20px;
  49. font-weight: 600;
  50. margin-bottom: 8px;
  51. }
  52. .page-head p {
  53. color: var(--muted);
  54. max-width: 860px;
  55. line-height: 1.6;
  56. }
  57. .scheme-nav {
  58. max-width: 1200px;
  59. margin: 0 auto 20px;
  60. display: flex;
  61. flex-wrap: wrap;
  62. gap: 8px;
  63. }
  64. .scheme-nav a {
  65. padding: 6px 14px;
  66. border-radius: 999px;
  67. border: 1px solid var(--border);
  68. background: var(--surface);
  69. color: var(--muted);
  70. font-size: 12px;
  71. text-decoration: none;
  72. transition: all 0.15s;
  73. }
  74. .scheme-nav a:hover {
  75. border-color: var(--mint-border);
  76. color: var(--primary-dark);
  77. }
  78. .demo-block {
  79. max-width: 1200px;
  80. margin: 0 auto 32px;
  81. background: var(--surface);
  82. border: 1px solid var(--border);
  83. border-radius: 10px;
  84. overflow: hidden;
  85. box-shadow: 0 1px 3px rgb(15 23 42 / 6%);
  86. }
  87. .demo-label {
  88. display: flex;
  89. align-items: flex-start;
  90. justify-content: space-between;
  91. gap: 16px;
  92. padding: 14px 20px;
  93. border-bottom: 1px solid var(--border);
  94. background: #fafbfc;
  95. }
  96. .demo-label strong {
  97. font-size: 14px;
  98. font-weight: 600;
  99. display: block;
  100. margin-bottom: 4px;
  101. }
  102. .demo-label .tag-rec {
  103. flex-shrink: 0;
  104. padding: 3px 10px;
  105. border-radius: 999px;
  106. background: var(--primary-bg);
  107. color: var(--primary-dark);
  108. font-size: 11px;
  109. font-weight: 600;
  110. }
  111. .demo-label span {
  112. font-size: 12px;
  113. color: var(--muted);
  114. line-height: 1.5;
  115. }
  116. .panel-shell {
  117. min-height: 480px;
  118. }
  119. /* ── 共用:面板标题 ── */
  120. .panel-top {
  121. display: flex;
  122. align-items: center;
  123. justify-content: space-between;
  124. padding: 16px 24px;
  125. border-bottom: 1px solid var(--border);
  126. }
  127. .title-bar-heading {
  128. display: flex;
  129. align-items: center;
  130. gap: 8px;
  131. font-size: 16px;
  132. font-weight: 600;
  133. }
  134. .title-bar-heading::before {
  135. content: '';
  136. width: 4px;
  137. height: 14px;
  138. border-radius: 999px;
  139. background: var(--primary-dark);
  140. }
  141. /* ── 共用:胶囊 Tab(缴费/退费) ── */
  142. .type-capsule {
  143. display: inline-flex;
  144. gap: 4px;
  145. padding: 4px;
  146. background: #f1f5f9;
  147. border: 1px solid var(--border);
  148. border-radius: 8px;
  149. }
  150. .type-capsule__btn {
  151. display: inline-flex;
  152. align-items: center;
  153. gap: 6px;
  154. padding: 8px 18px;
  155. border: none;
  156. border-radius: 6px;
  157. background: transparent;
  158. font-size: 13px;
  159. font-weight: 500;
  160. color: var(--muted);
  161. cursor: pointer;
  162. white-space: nowrap;
  163. transition: all 0.15s;
  164. }
  165. .type-capsule__btn:hover:not(.is-active) {
  166. color: var(--text);
  167. background: rgb(255 255 255 / 60%);
  168. }
  169. .type-capsule__btn.is-active {
  170. background: #fff;
  171. color: var(--primary-dark);
  172. box-shadow: 0 1px 3px rgb(15 23 42 / 8%);
  173. font-weight: 600;
  174. }
  175. .type-capsule__badge {
  176. display: inline-flex;
  177. align-items: center;
  178. justify-content: center;
  179. min-width: 18px;
  180. height: 18px;
  181. padding: 0 5px;
  182. border-radius: 999px;
  183. background: var(--warning-bg);
  184. color: var(--warning);
  185. font-size: 11px;
  186. font-weight: 600;
  187. }
  188. .type-capsule__btn.is-active .type-capsule__badge {
  189. background: var(--primary-bg);
  190. color: var(--primary-dark);
  191. }
  192. /* ── 共用:筛选区 ── */
  193. .filter-block {
  194. padding: 16px 24px;
  195. border-bottom: 1px solid var(--border);
  196. }
  197. .filter-grid {
  198. display: grid;
  199. grid-template-columns: 1fr 280px;
  200. gap: 12px 16px;
  201. }
  202. .filter-field label {
  203. display: block;
  204. font-size: 11px;
  205. font-weight: 500;
  206. color: var(--muted);
  207. margin-bottom: 4px;
  208. }
  209. .filter-field input,
  210. .filter-field .fake-date {
  211. width: 100%;
  212. height: 36px;
  213. padding: 0 12px;
  214. border: 1px solid var(--border);
  215. border-radius: 8px;
  216. font-size: 14px;
  217. color: var(--text);
  218. background: #fff;
  219. }
  220. .filter-actions-row {
  221. display: flex;
  222. align-items: center;
  223. justify-content: space-between;
  224. gap: 12px;
  225. margin-top: 12px;
  226. }
  227. .filter-hint {
  228. font-size: 12px;
  229. color: var(--muted);
  230. flex: 1;
  231. min-width: 0;
  232. }
  233. .filter-actions-end {
  234. display: flex;
  235. gap: 8px;
  236. flex-shrink: 0;
  237. }
  238. .btn {
  239. display: inline-flex;
  240. align-items: center;
  241. gap: 6px;
  242. height: 36px;
  243. padding: 0 16px;
  244. border-radius: 8px;
  245. font-size: 14px;
  246. cursor: pointer;
  247. border: 1px solid var(--border);
  248. background: #fff;
  249. color: var(--text);
  250. }
  251. .btn-main {
  252. border-color: var(--primary);
  253. background: var(--primary);
  254. color: #fff;
  255. }
  256. /* ── 共用:Tag ── */
  257. .tag {
  258. display: inline-flex;
  259. align-items: center;
  260. padding: 2px 8px;
  261. border-radius: 4px;
  262. font-size: 12px;
  263. font-weight: 500;
  264. }
  265. .tag.warning {
  266. background: var(--warning-bg);
  267. color: var(--warning);
  268. }
  269. .tag.success {
  270. background: var(--primary-bg);
  271. color: var(--primary-dark);
  272. }
  273. .tag.info {
  274. background: #f1f5f9;
  275. color: var(--muted);
  276. }
  277. .tag.muted {
  278. background: #f8fafc;
  279. color: var(--muted);
  280. }
  281. /* ── 共用:确认卡片 ── */
  282. .confirm-card {
  283. border: 1px solid var(--border);
  284. border-radius: 10px;
  285. background: #fff;
  286. padding: 16px 18px;
  287. transition: box-shadow 0.15s, border-color 0.15s;
  288. }
  289. .confirm-card:hover {
  290. border-color: var(--mint-border);
  291. box-shadow: 0 2px 8px rgb(15 23 42 / 5%);
  292. }
  293. .confirm-card.is-pending {
  294. border-left: 3px solid var(--warning);
  295. }
  296. .confirm-card.is-confirmed {
  297. border-left: 3px solid var(--primary);
  298. opacity: 0.92;
  299. }
  300. .confirm-card__head {
  301. display: flex;
  302. align-items: flex-start;
  303. justify-content: space-between;
  304. gap: 12px;
  305. margin-bottom: 12px;
  306. }
  307. .confirm-card__name {
  308. font-size: 15px;
  309. font-weight: 600;
  310. margin-bottom: 2px;
  311. }
  312. .confirm-card__sub {
  313. font-size: 12px;
  314. color: var(--muted);
  315. }
  316. .confirm-card__amount {
  317. text-align: right;
  318. flex-shrink: 0;
  319. }
  320. .confirm-card__amount-val {
  321. font-size: 18px;
  322. font-weight: 700;
  323. color: var(--primary-dark);
  324. font-variant-numeric: tabular-nums;
  325. }
  326. .confirm-card__amount-label {
  327. font-size: 11px;
  328. color: var(--muted);
  329. }
  330. .confirm-card__grid {
  331. display: grid;
  332. grid-template-columns: repeat(3, 1fr);
  333. gap: 8px 16px;
  334. margin-bottom: 14px;
  335. }
  336. .confirm-card__field label {
  337. display: block;
  338. font-size: 11px;
  339. color: var(--muted);
  340. margin-bottom: 2px;
  341. }
  342. .confirm-card__field span {
  343. font-size: 13px;
  344. color: var(--text);
  345. }
  346. .confirm-card__foot {
  347. display: flex;
  348. align-items: center;
  349. justify-content: space-between;
  350. gap: 12px;
  351. padding-top: 12px;
  352. border-top: 1px solid #f1f5f9;
  353. }
  354. .confirm-card__meta {
  355. font-size: 12px;
  356. color: var(--muted);
  357. }
  358. .btn-op {
  359. height: 32px;
  360. padding: 0 14px;
  361. border-radius: 8px;
  362. font-size: 13px;
  363. font-weight: 500;
  364. cursor: pointer;
  365. border: 1px solid var(--primary);
  366. background: var(--primary);
  367. color: #fff;
  368. }
  369. .btn-op.ghost {
  370. border-color: var(--border);
  371. background: #fff;
  372. color: var(--text);
  373. }
  374. /* ── 分区标题 ── */
  375. .section-head {
  376. display: flex;
  377. align-items: center;
  378. justify-content: space-between;
  379. padding: 16px 24px 12px;
  380. }
  381. .section-head h3 {
  382. display: flex;
  383. align-items: center;
  384. gap: 8px;
  385. font-size: 14px;
  386. font-weight: 600;
  387. }
  388. .section-head h3::before {
  389. content: '';
  390. width: 4px;
  391. height: 12px;
  392. border-radius: 999px;
  393. background: var(--primary-dark);
  394. }
  395. .section-head.is-pending h3::before {
  396. background: var(--warning);
  397. }
  398. .section-count {
  399. display: inline-flex;
  400. align-items: center;
  401. justify-content: center;
  402. min-width: 22px;
  403. height: 22px;
  404. padding: 0 6px;
  405. border-radius: 999px;
  406. background: #f1f5f9;
  407. font-size: 12px;
  408. font-weight: 600;
  409. color: var(--muted);
  410. }
  411. .section-head.is-pending .section-count {
  412. background: var(--warning-bg);
  413. color: var(--warning);
  414. }
  415. .section-toggle {
  416. font-size: 12px;
  417. color: var(--primary-dark);
  418. background: none;
  419. border: none;
  420. cursor: pointer;
  421. }
  422. .card-grid {
  423. display: grid;
  424. grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  425. gap: 12px;
  426. padding: 0 24px 20px;
  427. }
  428. .section-divider {
  429. height: 8px;
  430. background: #f8fafc;
  431. border-top: 1px solid var(--border);
  432. border-bottom: 1px solid var(--border);
  433. }
  434. /* ============================================================
  435. 方案 A:胶囊 + 上下分区卡片(用户提议)
  436. ============================================================ */
  437. .scheme-a .panel-header {
  438. display: flex;
  439. align-items: center;
  440. justify-content: space-between;
  441. gap: 16px;
  442. padding: 16px 24px;
  443. border-bottom: 1px solid var(--border);
  444. flex-wrap: wrap;
  445. }
  446. .scheme-a .panel-header__left {
  447. display: flex;
  448. align-items: center;
  449. gap: 20px;
  450. flex-wrap: wrap;
  451. }
  452. /* ============================================================
  453. 方案 B:双栏看板(左待确认 / 右已确认)
  454. ============================================================ */
  455. .scheme-b .panel-header {
  456. display: flex;
  457. align-items: center;
  458. justify-content: center;
  459. padding: 16px 24px;
  460. border-bottom: 1px solid var(--border);
  461. }
  462. .kanban {
  463. display: grid;
  464. grid-template-columns: 1fr 1fr;
  465. gap: 0;
  466. min-height: 420px;
  467. }
  468. .kanban-col {
  469. padding: 16px 20px 24px;
  470. min-width: 0;
  471. }
  472. .kanban-col:first-child {
  473. border-right: 1px solid var(--border);
  474. background: linear-gradient(180deg, #fffbeb 0%, #fff 120px);
  475. }
  476. .kanban-col:last-child {
  477. background: linear-gradient(180deg, #ecfdf5 0%, #fff 120px);
  478. }
  479. .kanban-col__head {
  480. display: flex;
  481. align-items: center;
  482. justify-content: space-between;
  483. margin-bottom: 14px;
  484. }
  485. .kanban-col__head h3 {
  486. font-size: 13px;
  487. font-weight: 600;
  488. display: flex;
  489. align-items: center;
  490. gap: 8px;
  491. }
  492. .kanban-stack {
  493. display: flex;
  494. flex-direction: column;
  495. gap: 10px;
  496. }
  497. .kanban-stack .confirm-card {
  498. border-radius: 8px;
  499. }
  500. .kanban-more {
  501. margin-top: 10px;
  502. text-align: center;
  503. font-size: 12px;
  504. color: var(--muted);
  505. padding: 8px;
  506. border: 1px dashed var(--border);
  507. border-radius: 8px;
  508. cursor: pointer;
  509. }
  510. /* ============================================================
  511. 方案 C:统计摘要 + 状态 Chip 筛选 + 卡片流
  512. ============================================================ */
  513. .scheme-c .panel-header {
  514. padding: 16px 24px;
  515. border-bottom: 1px solid var(--border);
  516. display: flex;
  517. align-items: center;
  518. justify-content: space-between;
  519. flex-wrap: wrap;
  520. gap: 12px;
  521. }
  522. .stat-row {
  523. display: grid;
  524. grid-template-columns: repeat(4, 1fr);
  525. gap: 12px;
  526. padding: 16px 24px;
  527. border-bottom: 1px solid var(--border);
  528. }
  529. .stat-card {
  530. padding: 14px 16px;
  531. border: 1px solid var(--border);
  532. border-radius: 10px;
  533. background: #fafbfc;
  534. }
  535. .stat-card__label {
  536. font-size: 12px;
  537. color: var(--muted);
  538. margin-bottom: 4px;
  539. }
  540. .stat-card__val {
  541. font-size: 22px;
  542. font-weight: 700;
  543. font-variant-numeric: tabular-nums;
  544. }
  545. .stat-card__val.warning {
  546. color: var(--warning);
  547. }
  548. .stat-card__val.primary {
  549. color: var(--primary-dark);
  550. }
  551. .chip-filter {
  552. display: flex;
  553. align-items: center;
  554. gap: 8px;
  555. padding: 12px 24px;
  556. border-bottom: 1px solid var(--border);
  557. }
  558. .chip {
  559. padding: 6px 14px;
  560. border-radius: 999px;
  561. border: 1px solid var(--border);
  562. background: #fff;
  563. font-size: 13px;
  564. color: var(--muted);
  565. cursor: pointer;
  566. }
  567. .chip.is-active {
  568. border-color: var(--primary);
  569. background: var(--primary-bg);
  570. color: var(--primary-dark);
  571. font-weight: 600;
  572. }
  573. /* ============================================================
  574. 方案 D:折叠分区(待确认默认展开,已确认折叠)
  575. ============================================================ */
  576. .accordion-section {
  577. border-bottom: 1px solid var(--border);
  578. }
  579. .accordion-section:last-child {
  580. border-bottom: none;
  581. }
  582. .accordion-trigger {
  583. display: flex;
  584. align-items: center;
  585. justify-content: space-between;
  586. width: 100%;
  587. padding: 14px 24px;
  588. border: none;
  589. background: #fafbfc;
  590. cursor: pointer;
  591. text-align: left;
  592. }
  593. .accordion-trigger h3 {
  594. display: flex;
  595. align-items: center;
  596. gap: 8px;
  597. font-size: 14px;
  598. font-weight: 600;
  599. }
  600. .accordion-trigger .chevron {
  601. font-size: 12px;
  602. color: var(--muted);
  603. transition: transform 0.2s;
  604. }
  605. .accordion-section.is-open .accordion-trigger .chevron {
  606. transform: rotate(180deg);
  607. }
  608. .accordion-body {
  609. display: none;
  610. padding-bottom: 4px;
  611. }
  612. .accordion-section.is-open .accordion-body {
  613. display: block;
  614. }
  615. .scheme-d .panel-header {
  616. display: flex;
  617. align-items: center;
  618. justify-content: center;
  619. padding: 16px 24px;
  620. border-bottom: 1px solid var(--border);
  621. }
  622. /* ============================================================
  623. 方案 E:混合 — 待确认卡片 + 已确认紧凑表格
  624. ============================================================ */
  625. .scheme-e .panel-header {
  626. display: flex;
  627. align-items: center;
  628. justify-content: space-between;
  629. padding: 16px 24px;
  630. border-bottom: 1px solid var(--border);
  631. flex-wrap: wrap;
  632. gap: 12px;
  633. }
  634. .compact-table-wrap {
  635. padding: 0 24px 20px;
  636. overflow-x: auto;
  637. }
  638. .compact-table {
  639. width: 100%;
  640. border-collapse: collapse;
  641. font-size: 13px;
  642. }
  643. .compact-table th,
  644. .compact-table td {
  645. padding: 10px 12px;
  646. text-align: center;
  647. border-bottom: 1px solid #f1f5f9;
  648. white-space: nowrap;
  649. }
  650. .compact-table th {
  651. font-size: 12px;
  652. font-weight: 500;
  653. color: var(--muted);
  654. background: #fafbfc;
  655. }
  656. .compact-table tbody tr:hover {
  657. background: #f8fafc;
  658. }
  659. .empty-hint {
  660. padding: 32px 24px;
  661. text-align: center;
  662. color: var(--muted);
  663. font-size: 13px;
  664. }
  665. @media (max-width: 900px) {
  666. .filter-grid {
  667. grid-template-columns: 1fr;
  668. }
  669. .kanban {
  670. grid-template-columns: 1fr;
  671. }
  672. .kanban-col:first-child {
  673. border-right: none;
  674. border-bottom: 1px solid var(--border);
  675. }
  676. .stat-row {
  677. grid-template-columns: repeat(2, 1fr);
  678. }
  679. .confirm-card__grid {
  680. grid-template-columns: 1fr 1fr;
  681. }
  682. }
  683. </style>
  684. </head>
  685. <body>
  686. <div class="page-head">
  687. <h1>缴退费财务确认 · 布局方案 Demo</h1>
  688. <p>
  689. 当前页面存在<strong>两层 Tab</strong>(缴费/退费 大卡片切换 + 待确认/已确认 胶囊 Tab),顶部视觉层级过多。
  690. 以下 5 种方案均尝试<strong>合并或消除第二层 Tab</strong>,并将列表改为卡片或混合展示。
  691. 色值与胶囊样式对齐 Fresh Mint 规范(<code>--primary #10b981</code>)。
  692. </p>
  693. </div>
  694. <nav class="scheme-nav">
  695. <a href="#scheme-a">A · 上下分区卡片</a>
  696. <a href="#scheme-b">B · 双栏看板</a>
  697. <a href="#scheme-c">C · 统计 + Chip 筛选</a>
  698. <a href="#scheme-d">D · 折叠分区</a>
  699. <a href="#scheme-e">E · 混合(卡片+表格)</a>
  700. </nav>
  701. <!-- ═══════════════════════════════════════════════════════════
  702. 方案 A:用户提议 — 胶囊 + 上待确认 / 下已确认
  703. ═══════════════════════════════════════════════════════════ -->
  704. <section class="demo-block scheme-a" id="scheme-a">
  705. <div class="demo-label">
  706. <div>
  707. <strong>方案 A · 胶囊切换 + 上下分区卡片</strong>
  708. <span>缴费/退费改为居中胶囊;取消「待确认/已确认」Tab,改为同屏上下两个区域。待确认优先展示、视觉强调;已确认区域可折叠。适合财务「先处理队列、再查历史」的工作流。</span>
  709. </div>
  710. <span class="tag-rec">推荐</span>
  711. </div>
  712. <div class="panel-shell">
  713. <div class="panel-header">
  714. <div class="panel-header__left">
  715. <h2 class="title-bar-heading">缴退费财务确认</h2>
  716. <div class="type-capsule" role="tablist">
  717. <button type="button" class="type-capsule__btn is-active" role="tab">
  718. 缴费确认
  719. <span class="type-capsule__badge">3</span>
  720. </button>
  721. <button type="button" class="type-capsule__btn" role="tab">
  722. 退费确认
  723. <span class="type-capsule__badge">1</span>
  724. </button>
  725. </div>
  726. </div>
  727. </div>
  728. <div class="filter-block">
  729. <div class="filter-grid">
  730. <div class="filter-field">
  731. <label>关键词</label>
  732. <input type="text" placeholder="客户姓名/身份证号/新生儿姓名/新生儿身份证号" />
  733. </div>
  734. <div class="filter-field">
  735. <label>应缴费时间</label>
  736. <div class="fake-date">2026-05-30 至 2026-06-29</div>
  737. </div>
  738. </div>
  739. <div class="filter-actions-row">
  740. <span class="filter-hint">默认展示应缴费时间前后 15 天内的明细</span>
  741. <div class="filter-actions-end">
  742. <button type="button" class="btn">重置</button>
  743. <button type="button" class="btn btn-main">搜索</button>
  744. </div>
  745. </div>
  746. </div>
  747. <div class="section-head is-pending">
  748. <h3>待确认 <span class="section-count">3</span></h3>
  749. </div>
  750. <div class="card-grid" id="cards-pending-a"></div>
  751. <div class="section-divider"></div>
  752. <div class="section-head">
  753. <h3>已确认 <span class="section-count">12</span></h3>
  754. <button type="button" class="section-toggle">收起 ▲</button>
  755. </div>
  756. <div class="card-grid" id="cards-confirmed-a"></div>
  757. </div>
  758. </section>
  759. <!-- ═══════════════════════════════════════════════════════════
  760. 方案 B:双栏看板
  761. ═══════════════════════════════════════════════════════════ -->
  762. <section class="demo-block scheme-b" id="scheme-b">
  763. <div class="demo-label">
  764. <div>
  765. <strong>方案 B · 双栏看板(左待确认 / 右已确认)</strong>
  766. <span>一屏对比两个队列,适合宽屏。左侧琥珀色调强调待办,右侧绿色调表示已完成。每列独立滚动,底部「加载更多」。</span>
  767. </div>
  768. </div>
  769. <div class="panel-shell">
  770. <div class="panel-header">
  771. <div class="type-capsule">
  772. <button type="button" class="type-capsule__btn is-active">缴费确认 <span class="type-capsule__badge">3</span></button>
  773. <button type="button" class="type-capsule__btn">退费确认 <span class="type-capsule__badge">1</span></button>
  774. </div>
  775. </div>
  776. <div class="filter-block" style="padding: 12px 24px">
  777. <div class="filter-grid" style="grid-template-columns: 1fr 240px auto; align-items: end">
  778. <div class="filter-field">
  779. <label>关键词</label>
  780. <input type="text" placeholder="客户姓名/身份证号…" />
  781. </div>
  782. <div class="filter-field">
  783. <label>应缴费时间</label>
  784. <div class="fake-date">2026-05-30 至 2026-06-29</div>
  785. </div>
  786. <div class="filter-actions-end" style="margin-top: 0">
  787. <button type="button" class="btn btn-main">搜索</button>
  788. </div>
  789. </div>
  790. </div>
  791. <div class="kanban">
  792. <div class="kanban-col">
  793. <div class="kanban-col__head">
  794. <h3><span class="tag warning">待确认</span> 3 条</h3>
  795. </div>
  796. <div class="kanban-stack" id="cards-pending-b"></div>
  797. <div class="kanban-more">加载更多待确认…</div>
  798. </div>
  799. <div class="kanban-col">
  800. <div class="kanban-col__head">
  801. <h3><span class="tag success">已确认</span> 12 条</h3>
  802. </div>
  803. <div class="kanban-stack" id="cards-confirmed-b"></div>
  804. <div class="kanban-more">加载更多已确认…</div>
  805. </div>
  806. </div>
  807. </div>
  808. </section>
  809. <!-- ═══════════════════════════════════════════════════════════
  810. 方案 C:统计摘要 + Chip 筛选
  811. ═══════════════════════════════════════════════════════════ -->
  812. <section class="demo-block scheme-c" id="scheme-c">
  813. <div class="demo-label">
  814. <div>
  815. <strong>方案 C · 统计摘要 + 状态 Chip 筛选 + 卡片流</strong>
  816. <span>顶部 4 个统计卡提供概览;第二层 Tab 改为轻量 Chip(全部/待确认/已确认),减少视觉重量。单区域卡片网格,切换 Chip 时过滤。</span>
  817. </div>
  818. </div>
  819. <div class="panel-shell">
  820. <div class="panel-header">
  821. <h2 class="title-bar-heading">缴退费财务确认</h2>
  822. <div class="type-capsule">
  823. <button type="button" class="type-capsule__btn is-active">缴费确认</button>
  824. <button type="button" class="type-capsule__btn">退费确认</button>
  825. </div>
  826. </div>
  827. <div class="stat-row">
  828. <div class="stat-card">
  829. <div class="stat-card__label">待确认</div>
  830. <div class="stat-card__val warning">3</div>
  831. </div>
  832. <div class="stat-card">
  833. <div class="stat-card__label">今日已确认</div>
  834. <div class="stat-card__val primary">5</div>
  835. </div>
  836. <div class="stat-card">
  837. <div class="stat-card__label">待确认金额</div>
  838. <div class="stat-card__val warning">¥28,600</div>
  839. </div>
  840. <div class="stat-card">
  841. <div class="stat-card__label">本月已确认</div>
  842. <div class="stat-card__val primary">¥186,400</div>
  843. </div>
  844. </div>
  845. <div class="chip-filter" role="tablist">
  846. <button type="button" class="chip is-active" data-filter="all">全部 15</button>
  847. <button type="button" class="chip" data-filter="pending">待确认 3</button>
  848. <button type="button" class="chip" data-filter="confirmed">已确认 12</button>
  849. </div>
  850. <div class="filter-block" style="padding-top: 12px">
  851. <div class="filter-grid">
  852. <div class="filter-field">
  853. <label>关键词</label>
  854. <input type="text" placeholder="客户姓名/身份证号…" />
  855. </div>
  856. <div class="filter-field">
  857. <label>应缴费时间</label>
  858. <div class="fake-date">2026-05-30 至 2026-06-29</div>
  859. </div>
  860. </div>
  861. </div>
  862. <div class="card-grid" id="cards-c" style="padding-top: 8px"></div>
  863. </div>
  864. </section>
  865. <!-- ═══════════════════════════════════════════════════════════
  866. 方案 D:折叠分区
  867. ═══════════════════════════════════════════════════════════ -->
  868. <section class="demo-block scheme-d" id="scheme-d">
  869. <div class="demo-label">
  870. <div>
  871. <strong>方案 D · 折叠手风琴分区</strong>
  872. <span>待确认默认展开(财务主任务),已确认默认折叠节省纵向空间。比方案 A 更紧凑,适合待确认量不大、已确认历史很多的场景。</span>
  873. </div>
  874. </div>
  875. <div class="panel-shell">
  876. <div class="panel-header">
  877. <div class="type-capsule">
  878. <button type="button" class="type-capsule__btn is-active">缴费确认</button>
  879. <button type="button" class="type-capsule__btn">退费确认</button>
  880. </div>
  881. </div>
  882. <div class="filter-block">
  883. <div class="filter-grid">
  884. <div class="filter-field">
  885. <label>关键词</label>
  886. <input type="text" placeholder="客户姓名/身份证号…" />
  887. </div>
  888. <div class="filter-field">
  889. <label>应缴费时间</label>
  890. <div class="fake-date">2026-05-30 至 2026-06-29</div>
  891. </div>
  892. </div>
  893. </div>
  894. <div class="accordion-section is-open" data-accordion>
  895. <button type="button" class="accordion-trigger">
  896. <h3><span class="tag warning">待确认</span> <span class="section-count">3</span></h3>
  897. <span class="chevron">▼</span>
  898. </button>
  899. <div class="accordion-body">
  900. <div class="card-grid" id="cards-pending-d"></div>
  901. </div>
  902. </div>
  903. <div class="accordion-section" data-accordion>
  904. <button type="button" class="accordion-trigger">
  905. <h3><span class="tag success">已确认</span> <span class="section-count">12</span></h3>
  906. <span class="chevron">▼</span>
  907. </button>
  908. <div class="accordion-body">
  909. <div class="card-grid" id="cards-confirmed-d"></div>
  910. </div>
  911. </div>
  912. </div>
  913. </section>
  914. <!-- ═══════════════════════════════════════════════════════════
  915. 方案 E:混合 — 待确认卡片 + 已确认表格
  916. ═══════════════════════════════════════════════════════════ -->
  917. <section class="demo-block scheme-e" id="scheme-e">
  918. <div class="demo-label">
  919. <div>
  920. <strong>方案 E · 混合布局(待确认卡片 + 已确认紧凑表格)</strong>
  921. <span>待办用卡片突出操作;已确认历史量大、字段多,保留表格 + 分页更高效。折中方案,改动风险最低。</span>
  922. </div>
  923. </div>
  924. <div class="panel-shell">
  925. <div class="panel-header">
  926. <h2 class="title-bar-heading">缴退费财务确认</h2>
  927. <div class="type-capsule">
  928. <button type="button" class="type-capsule__btn is-active">缴费确认</button>
  929. <button type="button" class="type-capsule__btn">退费确认</button>
  930. </div>
  931. </div>
  932. <div class="filter-block">
  933. <div class="filter-grid">
  934. <div class="filter-field">
  935. <label>关键词</label>
  936. <input type="text" placeholder="客户姓名/身份证号…" />
  937. </div>
  938. <div class="filter-field">
  939. <label>应缴费时间</label>
  940. <div class="fake-date">2026-05-30 至 2026-06-29</div>
  941. </div>
  942. </div>
  943. </div>
  944. <div class="section-head is-pending">
  945. <h3>待确认 <span class="section-count">3</span></h3>
  946. </div>
  947. <div class="card-grid" id="cards-pending-e"></div>
  948. <div class="section-divider"></div>
  949. <div class="section-head">
  950. <h3>已确认 <span class="section-count">12</span></h3>
  951. </div>
  952. <div class="compact-table-wrap">
  953. <table class="compact-table">
  954. <thead>
  955. <tr>
  956. <th>客户姓名</th>
  957. <th>期数</th>
  958. <th>应缴金额</th>
  959. <th>实缴金额</th>
  960. <th>转账时间</th>
  961. <th>确认时间</th>
  962. <th>状态</th>
  963. <th>操作</th>
  964. </tr>
  965. </thead>
  966. <tbody id="table-confirmed-e"></tbody>
  967. </table>
  968. </div>
  969. </div>
  970. </section>
  971. <script>
  972. const MOCK_PENDING = [
  973. {
  974. motherName: '张丽华',
  975. motherIdCard: '340***********1234',
  976. newbornName: '张小宝',
  977. installmentNo: 2,
  978. installmentDueDate: '2026-06-18',
  979. dueAmount: '¥12,800.00',
  980. transferAmount: '¥12,800.00',
  981. payMode: '分期',
  982. transferType: '银行转账',
  983. transferTime: '2026-06-14 10:32',
  984. protocolStatus: '进行中',
  985. createTime: '2026-06-14 09:15'
  986. },
  987. {
  988. motherName: '王美玲',
  989. motherIdCard: '340***********5678',
  990. newbornName: '王乐乐',
  991. installmentNo: 1,
  992. installmentDueDate: '2026-06-20',
  993. dueAmount: '¥8,600.00',
  994. transferAmount: '¥8,600.00',
  995. payMode: '一次性',
  996. transferType: '微信',
  997. transferTime: '2026-06-13 16:48',
  998. protocolStatus: '进行中',
  999. createTime: '2026-06-13 17:02'
  1000. },
  1001. {
  1002. motherName: '陈晓燕',
  1003. motherIdCard: '340***********9012',
  1004. newbornName: '—',
  1005. installmentNo: 3,
  1006. installmentDueDate: '2026-06-22',
  1007. dueAmount: '¥7,200.00',
  1008. transferAmount: '¥7,200.00',
  1009. payMode: '分期',
  1010. transferType: '支付宝',
  1011. transferTime: '2026-06-12 11:20',
  1012. protocolStatus: '进行中',
  1013. createTime: '2026-06-12 11:25'
  1014. }
  1015. ]
  1016. const MOCK_CONFIRMED = [
  1017. {
  1018. motherName: '李婷婷',
  1019. installmentNo: 1,
  1020. dueAmount: '¥15,000.00',
  1021. transferAmount: '¥15,000.00',
  1022. transferTime: '2026-06-10 14:22',
  1023. updateTime: '2026-06-10 15:01',
  1024. financeRemark: '凭证齐全'
  1025. },
  1026. {
  1027. motherName: '赵敏',
  1028. installmentNo: 2,
  1029. dueAmount: '¥9,800.00',
  1030. transferAmount: '¥9,800.00',
  1031. transferTime: '2026-06-08 09:15',
  1032. updateTime: '2026-06-08 10:30',
  1033. financeRemark: '—'
  1034. }
  1035. ]
  1036. function renderCard(item, mode) {
  1037. const isPending = mode === 'pending'
  1038. const compact = mode === 'compact'
  1039. return `
  1040. <article class="confirm-card ${isPending ? 'is-pending' : 'is-confirmed'}">
  1041. <div class="confirm-card__head">
  1042. <div>
  1043. <div class="confirm-card__name">${item.motherName}</div>
  1044. <div class="confirm-card__sub">${item.motherIdCard || ''}${item.newbornName ? ' · 新生儿 ' + item.newbornName : ''}</div>
  1045. </div>
  1046. <div class="confirm-card__amount">
  1047. <div class="confirm-card__amount-val">${item.transferAmount || item.dueAmount}</div>
  1048. <div class="confirm-card__amount-label">${isPending ? '实缴金额' : '已确认'}</div>
  1049. </div>
  1050. </div>
  1051. ${
  1052. compact
  1053. ? ''
  1054. : `<div class="confirm-card__grid">
  1055. <div class="confirm-card__field"><label>期数</label><span>第 ${item.installmentNo} 期</span></div>
  1056. <div class="confirm-card__field"><label>应缴时间</label><span>${item.installmentDueDate}</span></div>
  1057. <div class="confirm-card__field"><label>应缴金额</label><span>${item.dueAmount}</span></div>
  1058. <div class="confirm-card__field"><label>缴费方式</label><span>${item.payMode || '—'}</span></div>
  1059. <div class="confirm-card__field"><label>转账方式</label><span>${item.transferType || '—'}</span></div>
  1060. <div class="confirm-card__field"><label>转账时间</label><span>${item.transferTime || '—'}</span></div>
  1061. </div>`
  1062. }
  1063. <div class="confirm-card__foot">
  1064. <div class="confirm-card__meta">
  1065. ${isPending ? `<span class="tag warning">缴费确认中</span> · 提交 ${item.createTime}` : `<span class="tag success">已缴费</span> · 确认 ${item.updateTime}`}
  1066. </div>
  1067. <button type="button" class="btn-op ${isPending ? '' : 'ghost'}">${isPending ? '确认收款' : '查看确认信息'}</button>
  1068. </div>
  1069. </article>
  1070. `
  1071. }
  1072. function fillCards(containerId, items, mode, limit) {
  1073. const el = document.getElementById(containerId)
  1074. if (!el) return
  1075. el.innerHTML = items.slice(0, limit ?? items.length).map((i) => renderCard(i, mode)).join('')
  1076. }
  1077. // 方案 A
  1078. fillCards('cards-pending-a', MOCK_PENDING, 'pending')
  1079. fillCards('cards-confirmed-a', MOCK_CONFIRMED, 'confirmed')
  1080. // 方案 B
  1081. fillCards('cards-pending-b', MOCK_PENDING, 'pending')
  1082. fillCards('cards-confirmed-b', MOCK_CONFIRMED, 'confirmed')
  1083. // 方案 C — 全部卡片 + Chip 筛选
  1084. const allItems = [
  1085. ...MOCK_PENDING.map((i) => ({ ...i, _status: 'pending' })),
  1086. ...MOCK_CONFIRMED.map((i) => ({ ...i, _status: 'confirmed' }))
  1087. ]
  1088. const cardsC = document.getElementById('cards-c')
  1089. function renderC(filter) {
  1090. const list =
  1091. filter === 'all'
  1092. ? allItems
  1093. : allItems.filter((i) => i._status === filter)
  1094. cardsC.innerHTML = list
  1095. .map((i) => renderCard(i, i._status === 'pending' ? 'pending' : 'confirmed'))
  1096. .join('')
  1097. }
  1098. renderC('all')
  1099. document.querySelectorAll('.chip-filter .chip').forEach((chip) => {
  1100. chip.addEventListener('click', () => {
  1101. document.querySelectorAll('.chip-filter .chip').forEach((c) => c.classList.remove('is-active'))
  1102. chip.classList.add('is-active')
  1103. renderC(chip.dataset.filter)
  1104. })
  1105. })
  1106. // 方案 D
  1107. fillCards('cards-pending-d', MOCK_PENDING, 'pending')
  1108. fillCards('cards-confirmed-d', MOCK_CONFIRMED, 'confirmed')
  1109. document.querySelectorAll('[data-accordion]').forEach((section) => {
  1110. section.querySelector('.accordion-trigger').addEventListener('click', () => {
  1111. section.classList.toggle('is-open')
  1112. })
  1113. })
  1114. // 方案 E
  1115. fillCards('cards-pending-e', MOCK_PENDING, 'pending')
  1116. document.getElementById('table-confirmed-e').innerHTML = MOCK_CONFIRMED.map(
  1117. (row) => `
  1118. <tr>
  1119. <td>${row.motherName}</td>
  1120. <td>第 ${row.installmentNo} 期</td>
  1121. <td>${row.dueAmount}</td>
  1122. <td>${row.transferAmount}</td>
  1123. <td>${row.transferTime}</td>
  1124. <td>${row.updateTime}</td>
  1125. <td><span class="tag success">已缴费</span></td>
  1126. <td><button type="button" class="btn-op ghost" style="height:28px;padding:0 10px;font-size:12px">查看</button></td>
  1127. </tr>
  1128. `
  1129. ).join('')
  1130. // 胶囊切换交互(视觉演示)
  1131. document.querySelectorAll('.type-capsule').forEach((group) => {
  1132. group.querySelectorAll('.type-capsule__btn').forEach((btn) => {
  1133. btn.addEventListener('click', () => {
  1134. group.querySelectorAll('.type-capsule__btn').forEach((b) => b.classList.remove('is-active'))
  1135. btn.classList.add('is-active')
  1136. })
  1137. })
  1138. })
  1139. </script>
  1140. </body>
  1141. </html>