';
}
@@ -75,10 +75,10 @@ function fusionToolsTabs(string $current): void
'interest_calculator' => '利息计算器',
'acceptance_discount_calculator' => '承兑贴现计算器',
];
- echo '
';
+ echo '
';
}
diff --git a/public/assets/fusion.css b/public/assets/fusion.css
index f910af2..b826a6f 100644
--- a/public/assets/fusion.css
+++ b/public/assets/fusion.css
@@ -212,8 +212,8 @@ html[data-boot-theme="night"] .v-fusion {
.v-fusion .search input::placeholder { color: var(--text-3); }
/* 面包屑返回:字号沿用 page-sub 体系 */
.v-fusion .crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; }
-.v-fusion .crumbs button { color: var(--text-2); border-radius: 6px; padding: 1px 4px; transition: background-color 150ms ease, color 150ms ease; }
-@media (hover: hover) and (pointer: fine) { .v-fusion .crumbs button:hover { background: var(--hover); color: var(--accent); } }
+.v-fusion .crumbs button, .v-fusion .crumbs a { color: var(--text-2); border-radius: 6px; padding: 1px 4px; transition: background-color 150ms ease, color 150ms ease; text-decoration: none; }
+@media (hover: hover) and (pointer: fine) { .v-fusion .crumbs button:hover, .v-fusion .crumbs a:hover { background: var(--hover); color: var(--accent); } }
/* — Stats(与定版一致;增加可点击入口卡) — */
.v-fusion .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
@@ -242,18 +242,17 @@ html[data-boot-theme="night"] .v-fusion {
/* — Segmented control(与定版一致) — */
.v-fusion .seg { display: inline-flex; padding: 2px; background: var(--fill); border-radius: 9px; }
-.v-fusion .seg button {
- position: relative; height: 26px; padding: 0 14px; border-radius: 7px;
- font-size: 12.5px; color: var(--text-2);
- transition: color 150ms ease;
- white-space: nowrap;
-}
+.v-fusion .seg button,
.v-fusion .seg a {
position: relative; height: 26px; padding: 0 14px; border-radius: 7px;
font-size: 12.5px; color: var(--text-2);
- display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap;
+ transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
+ white-space: nowrap;
+ display: inline-flex; align-items: center; text-decoration: none;
}
+.v-fusion .seg button[data-active],
.v-fusion .seg a[data-active] { color: var(--text); font-weight: 600; background: var(--surface-2); box-shadow: var(--shadow-seg); }
+.v-fusion .tools-tabs { margin: 0 0 20px; }
/* — 筛选条:输入几何沿用 .search / 表单控件(34px 控件、9px 圆角、fill 底) — */
.v-fusion .filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
@@ -441,7 +440,7 @@ html[data-boot-theme="night"] .v-fusion {
.v-fusion .plan-kind { font-weight: 600; }
.v-fusion .plan-date { color: var(--text-2); font-size: 12px; }
.v-fusion .plan-amt { margin-left: auto; font-weight: 700; }
-.v-fusion .empty { padding: 18px; text-align: center; color: var(--text-3); font-size: 12.5px; border: 1px dashed var(--hairline); border-radius: 10px; }
+.v-fusion .empty { padding: 18px; text-align: center; color: var(--text-3); font-size: 12.5px; border: 1px dashed var(--hairline); border-radius: 10px; min-height: 88px; display: flex; align-items: center; justify-content: center; }
/* 空态操作卡:空结果 + 引导动作 */
.v-fusion .empty-action {
padding: 40px 24px; text-align: center;
@@ -531,8 +530,8 @@ html[data-boot-theme="night"] .v-fusion {
.v-fusion .file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-fusion .file-meta { font-size: 11px; color: var(--text-3); }
.v-fusion .file-act { margin-left: auto; display: flex; gap: 4px; }
-.v-fusion .file-act button { font-size: 11.5px; color: var(--text-2); padding: 3px 7px; border-radius: 6px; transition: background-color 150ms ease, color 150ms ease; }
-@media (hover: hover) and (pointer: fine) { .v-fusion .file-act button:hover { background: var(--hover); color: var(--accent); } }
+.v-fusion .file-act button, .v-fusion .file-act a { font-size: 11.5px; color: var(--text-2); padding: 3px 7px; border-radius: 6px; transition: background-color 150ms ease, color 150ms ease; text-decoration: none; }
+@media (hover: hover) and (pointer: fine) { .v-fusion .file-act button:hover, .v-fusion .file-act a:hover { background: var(--hover); color: var(--accent); } }
/* 还款计划时间线:行几何沿用 plan-row,状态点复用 pill 色 */
.v-fusion .timeline { position: relative; padding-left: 18px; }
.v-fusion .timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--hairline); }
@@ -567,12 +566,14 @@ html[data-boot-theme="night"] .v-fusion {
position: sticky; top: 34px;
background: var(--surface); border: 1px solid var(--gold-line); border-radius: 14px;
padding: 16px 18px;
+ min-height: 420px;
}
.v-fusion .summary-card::before {
content: ""; display: block; height: 2px; margin: -16px -18px 14px;
border-radius: 14px 14px 0 0; background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}
.v-fusion .summary-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 7px 0; border-top: 1px solid var(--hairline); color: var(--text-2); }
+.v-fusion .summary-row[hidden] { display: none !important; }
.v-fusion .summary-row b { color: var(--text); font-weight: 650; }
.v-fusion .summary-row b.gold { color: var(--gold); font-weight: 700; }
.v-fusion .form-foot {
@@ -667,7 +668,7 @@ html[data-boot-theme="night"] .v-fusion {
.v-fusion .dir-acts button { font-size: 11.5px; color: var(--text-3); padding: 2px 6px; border-radius: 5px; transition: background-color 120ms ease, color 120ms ease; }
@media (hover: hover) and (pointer: fine) { .v-fusion .dir-acts button:hover { background: var(--hover); color: var(--accent); } }
.v-fusion .dir-rename { height: 24px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--focus-ring); background: var(--surface); font-size: 12.5px; outline: none; max-width: 150px; }
-.v-fusion .dir-empty { padding: 26px 14px; text-align: center; font-size: 12px; color: var(--text-3); }
+.v-fusion .dir-empty { padding: 26px 14px; text-align: center; font-size: 12px; color: var(--text-3); min-height: 120px; display: flex; align-items: center; justify-content: center; }
/* — ② 工作台快捷工具坞:统一线性图标 + 紧凑卡片 — */
.v-fusion .quick-dock { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 14px; }
@@ -730,7 +731,12 @@ html[data-boot-theme="night"] .v-fusion {
/* 计算器输入区:紧凑「标签列 + 控件列」,行边界清晰,标签与控件视线距离短 */
.v-fusion .cr-group + .cr-group { margin-top: 14px; }
.v-fusion .cr { display: flex; align-items: flex-start; gap: 14px; padding: 8px 0; border-top: 1px solid var(--hairline); }
-.v-fusion .cr[hidden] { display: none; }
+.v-fusion .cr[hidden] { display: none !important; }
+.v-fusion .visually-hidden {
+ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
+ overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
+}
+.v-fusion .switch[disabled], .v-fusion .switch[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.v-fusion .cr:first-of-type { border-top: 0; }
.v-fusion .cr > label, .v-fusion .cr > .cr-label {
flex: 0 0 118px; padding-top: 8px;
@@ -748,6 +754,8 @@ html[data-boot-theme="night"] .v-fusion {
border-color: var(--focus-ring); box-shadow: 0 0 0 3px var(--focus-glow);
}
.v-fusion .cr-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 34px; }
+.v-fusion .cr-pair { display: inline-flex; align-items: center; gap: 8px; }
+.v-fusion .cr-pair[hidden] { display: none !important; }
.v-fusion .cr-hint { margin-top: 5px; font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.v-fusion .cr-hint b { color: var(--gold); font-weight: 650; }
.v-fusion .cr-static { display: flex; align-items: center; min-height: 34px; font-size: 13px; color: var(--text-2); }
@@ -960,8 +968,9 @@ html[data-boot-theme="night"] .v-fusion {
.v-fusion a.btn { text-decoration: none; }
.v-fusion .num { font-variant-numeric: tabular-nums; }
.v-fusion .muted, .v-fusion .small { color: var(--text-3); font-size: 12px; }
-.v-fusion .content a:not(.btn):not(.nav-item):not(.qd-item):not(.stat) { color: var(--accent); text-decoration: none; }
-.v-fusion .content a:not(.btn):not(.nav-item):hover { text-decoration: underline; }
+.v-fusion .content a:not(.btn):not(.nav-item):not(.qd-item):not(.stat):not(.seg a):not(.dir-name):not(.file-act a):not(.crumbs a) { color: var(--accent); text-decoration: none; }
+.v-fusion .content a:not(.btn):not(.nav-item):not(.seg a):not(.dir-name):not(.file-act a):not(.crumbs a):hover { text-decoration: underline; }
+.v-fusion .content .seg a:hover, .v-fusion .content .dir-name:hover, .v-fusion .content .file-act a:hover, .v-fusion .content .crumbs a:hover { text-decoration: none; }
.v-fusion .content input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.v-fusion .content select,
diff --git a/public/assets/fusion.js b/public/assets/fusion.js
index 39f8352..27df5e6 100644
--- a/public/assets/fusion.js
+++ b/public/assets/fusion.js
@@ -36,6 +36,17 @@
if (btn) {
e.preventDefault();
window.setFusionTheme(btn.getAttribute("data-theme-btn"), true);
+ return;
+ }
+ var sw = e.target.closest("[data-switch]");
+ if (sw && !sw.disabled && sw.getAttribute("aria-disabled") !== "true") {
+ var on = sw.getAttribute("aria-checked") !== "true";
+ sw.setAttribute("aria-checked", on ? "true" : "false");
+ var bind = sw.getAttribute("data-bind-check");
+ if (bind) {
+ var cb = document.getElementById(bind);
+ if (cb) cb.checked = on;
+ }
}
});
diff --git a/public/index.php b/public/index.php
index 195443c..831339a 100755
--- a/public/index.php
+++ b/public/index.php
@@ -1877,7 +1877,7 @@ if ($action === 'delete_approvals') {
-
| 暂无符合条件的审核记录 |
+
暂无符合条件的审核记录 调整筛选条件,或等待新的删除申请 |
@@ -2058,98 +2058,90 @@ if ($action === 'archive_detail') {
$files = $pdo->prepare('SELECT * FROM files WHERE archive_id=:a ORDER BY id DESC');
$files->execute([':a' => $id]);
pageHeader($me); ?>
-
-
= e($a['name']) ?>
-
= e((string)$a['dir_name']) ?> · = e(archiveKindLabel($detailKind)) ?> · = fusionStatusPill($status) ?>
+
= e((string)$a['borrower']) ?>
+
= e(archiveKindLabel($detailKind)) ?> · = e($a['name']) ?> · = e((string)$a['dir_name']) ?> = fusionStatusPill($status) ?>
+ 0 ? (int)round((($creditAmt - $remainAmt) / $creditAmt) * 100) : 0;
+ $rateTxt = $detailKind === ARCHIVE_KIND_EXTERNAL_GUARANTEE ? '—' : ($a['annual_rate'] === null ? '' : ((string)$a['annual_rate'] . '%'));
+ $settleMode = $financeCfg['interest_mode'] === 'quarterly' ? '按季计息' : ($financeCfg['interest_mode'] === 'bullet' ? '到期一次性付清' : '按月计息');
+ $rule = (string)$financeCfg['settlement_rule'];
+ if ($rule === 'quarterly_day') {
+ $settleDayTxt = '每季' . (string)$financeCfg['settlement_day'] . '日';
+ } elseif ($rule === 'maturity_once') {
+ $settleDayTxt = '到期一次性付息';
+ } else {
+ $settleDayTxt = '每月' . (string)$financeCfg['settlement_day'] . '日';
+ }
+ ?>