diff --git a/app/views/pages/archive_form.php b/app/views/pages/archive_form.php index a1c9ecb..66bc40d 100644 --- a/app/views/pages/archive_form.php +++ b/app/views/pages/archive_form.php @@ -140,6 +140,85 @@ +
+
是否制定还款计划
+
+
+ + +
+
+
+ +
到期日前可选“提前还款”;到期日后可选“按期还款/延期/逾期”。逾期未归还计划本金按上浮利率计息,剩余额度按已还款计划与手动归还本金自动计算。
+
+
+
> + + + + + + + + + + + + + +
还款日期还款金额状态操作延期日期行操作
+ +
+
+ +
+
>
+

+
+ +
+
+ + +
填写后保存为新的到期日,须不早于当前到期日与起始日。
+
+ +
+ +
/
+
+
+ + +
+
+
+ + +
+
+
+
归还本金从剩余额度中扣减;归还利息计入「已归还利息」,减少当前应付与结息日应付利息。
+
+ +
+ +
可仅使用延期;本金利息归还适用于银行贷款。
+
+ +
+ +
+
金额与期限
@@ -212,85 +291,6 @@
-
-
还款与担保信息
-
-
- - -
-
-
- -
到期日前可选“提前还款”;到期日后可选“按期还款/延期/逾期”。逾期未归还计划本金按上浮利率计息,剩余额度按已还款计划与手动归还本金自动计算。
-
-
-
- - - - - - - - - - - - - -
还款日期还款金额状态操作延期日期行操作
- -
-
- -
-
>
-

-
- -
-
- - -
填写后保存为新的到期日,须不早于当前到期日与起始日。
-
- -
- -
/
-
-
- - -
-
-
- - -
-
-
-
归还本金从剩余额度中扣减;归还利息计入「已归还利息」,减少当前应付与结息日应付利息。
-
- -
- -
可仅使用延期;本金利息归还适用于银行贷款。
-
- -
- -
-
备注与附件
@@ -307,59 +307,64 @@
+ 0): ?> +
文件管理
+
+ + +
+ +
+ +
+
+
KB
+
+
+ + + + +
+
+ + + + + +
+
+ + +
暂无文件
+ + - 0): ?> -
-
-
文件管理
-
- - - + + +
+ + + - -
- -
-
-
KB
-
-
- -
- - - -
- -
- - - -
-
-
-
- - - -
-
- - - -
-
-
- - -
暂无文件
-
-
+ + + +
取消 @@ -372,7 +377,7 @@ var sel=document.getElementById('plan_enabled'); var wrap=document.getElementById('plan_wrap'); function setPlanVisibility(){ - if(sel&&wrap){wrap.style.display=sel.value==='1'?'block':'none';} + if(sel&&wrap){wrap.hidden=sel.value!=='1';} } if(sel&&wrap){ sel.addEventListener('change',setPlanVisibility); diff --git a/app/views/pages/profile.php b/app/views/pages/profile.php index 0e72d76..09408eb 100644 --- a/app/views/pages/profile.php +++ b/app/views/pages/profile.php @@ -59,43 +59,26 @@ 身份信息由管理员在「用户管理」中维护;账户仅含账号与角色,无姓名 / 机构等资料字段。
-
-
-
密码与安全
-
校验语义:验证当前密码 · 新密码 6-20 位 · 两次输入须一致
-
-
-
-
-
-
-
-
- 初始密码由管理员发放,首次登录后请在此修改;忘记密码请联系管理员重置。 - -
-
+
+
密码与安全
+
+
修改登录密码
校验当前密码 · 新密码 6-20 位 · 两次输入须一致
+
-
-
主题与偏好
-
-
日间 / 夜间主题
与左下角账户区的主题切换同源,即时生效并记住选择
-
- - -
-
-
-
到期与还款提醒
本地偏好 · 到期与还款事项统一在任务中心处理
- +

初始密码由管理员发放,首次登录后请在此修改;忘记密码请联系管理员重置。

+
+
+
主题与偏好
+
+
日间 / 夜间主题
与左下角账户区的主题切换同源,即时生效并记住选择
+
+ +
-
-
会话
-
-
退出登录
结束当前会话并返回登录页;左下账户区亦有同一入口
- 退出登录 -
+
+
到期与还款提醒
本地偏好 · 到期与还款事项统一在任务中心处理
+
@@ -115,4 +98,30 @@ } catch (e) {} })(); - + + .summary-card { position: static; } +.v-fusion .editor-page .summary-banner { grid-template-columns: 1fr; } +.v-fusion .editor-page .summary-banner .summary-row { + flex-direction: row; justify-content: space-between; align-items: baseline; + gap: 10px; border-top: 1px solid var(--hairline); padding: 7px 0; +} +.v-fusion .editor-page .summary-banner .summary-row:first-child { border-top: 0; padding-top: 0; } +.v-fusion .editor-page .summary-banner .summary-row b { text-align: right; } .v-fusion .summary-banner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; } @@ -752,9 +770,9 @@ img { display: block; } .v-fusion .rev-line { margin-top: 10px; font-size: 12px; color: var(--gold); font-weight: 600; line-height: 1.6; } .v-fusion .calc-note { margin-top: 10px; font-size: 11.5px; color: var(--text-3); line-height: 1.6; } -/* 个人账户中心:左身份摘要(只读) + 右分区设置 */ -.v-fusion .acct-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; max-width: 1080px; } -.v-fusion .id-card { position: sticky; top: 34px; } +/* 个人账户中心:单列同宽卡片(个人信息 → 密码与安全 → 主题偏好) */ +.v-fusion .acct-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; max-width: 720px; } +.v-fusion .id-card { position: static; } .v-fusion .id-head { display: flex; align-items: center; gap: 14px; } .v-fusion .id-avatar { width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto; @@ -820,7 +838,8 @@ img { display: block; } .v-fusion .scrim, .v-fusion .toast, .v-fusion .content-shell, .v-fusion .switch, .v-fusion .switch::after { transition-duration: 120ms; } .v-fusion .drawer { transform: none; opacity: 0; visibility: hidden; transition: opacity 150ms ease, visibility 150ms ease; } .v-fusion[data-drawer-open] .drawer { opacity: 1; visibility: visible; } - .v-fusion[data-drawer-open] .content-shell { transform: none; filter: none; } + .v-fusion[data-drawer-open] .content-shell, + .v-fusion[data-modal-open] .content-shell { transform: none; filter: none; } .v-fusion .modal-card { transform: translate(-50%, -50%); transition: opacity 150ms ease; } .v-fusion .toast[data-hidden] { transform: none; opacity: 0; } .v-fusion .stagger-in { opacity: 0; transform: none; } @@ -853,7 +872,7 @@ img { display: block; } ============================================================ */ @media (max-width: 1279px) { .v-fusion .stats { grid-template-columns: repeat(2, 1fr); } - .v-fusion .detail-grid, .v-fusion .editor-grid, .v-fusion .calc-grid { grid-template-columns: 1fr; } + .v-fusion .detail-grid, .v-fusion .editor-grid, .v-fusion .editor-page, .v-fusion .calc-grid { grid-template-columns: 1fr; } .v-fusion .side-panel, .v-fusion .summary-card { position: static; } .v-fusion .summary-banner { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @@ -910,7 +929,6 @@ img { display: block; } @media (max-width: 1279px) { .v-fusion .calc-side { position: static; } .v-fusion .lp-brand { flex-basis: 42%; min-width: 380px; padding: 44px 40px 36px; } - .v-fusion .acct-grid { grid-template-columns: 280px minmax(0, 1fr); } } @media (max-width: 1023px) { .v-fusion .dir-cols { grid-template-columns: 1fr; } diff --git a/public/assets/fusion.js b/public/assets/fusion.js index e58e197..734f2e8 100644 --- a/public/assets/fusion.js +++ b/public/assets/fusion.js @@ -101,8 +101,38 @@ function closeOverlays() { } /* ---------- 弹层(导入等,服务端已渲染,切属性即可) ---------- */ -function openModal(name) { root()?.setAttribute("data-modal-open", name); } -function closeModal() { root()?.removeAttribute("data-modal-open"); } +let modalReturnFocus = null; +function openModal(name, trigger) { + const r = root(); + if (!r || !name) return; + modalReturnFocus = trigger || document.activeElement; + r.setAttribute("data-modal-open", name); + const card = r.querySelector(`.modal-card[data-modal="${name}"]`); + const focusEl = card && ( + card.querySelector("input:not([type=hidden]),select,textarea") || + card.querySelector("button.btn--primary,button") + ); + if (focusEl) requestAnimationFrame(() => { try { focusEl.focus(); } catch (e) {} }); +} +function closeModal() { + const r = root(); + if (!r) return; + const name = r.getAttribute("data-modal-open"); + if (name) { + const card = r.querySelector(`.modal-card[data-modal="${name}"]`); + if (card) { + card.querySelectorAll('input[type="password"]').forEach((i) => { i.value = ""; }); + card.querySelectorAll(".form-field[data-error]").forEach((f) => f.removeAttribute("data-error")); + card.querySelectorAll("[data-err], .field-err").forEach((el) => { el.textContent = ""; }); + } + } + r.removeAttribute("data-modal-open"); + const back = modalReturnFocus; + modalReturnFocus = null; + if (back && typeof back.focus === "function" && document.contains(back)) { + try { back.focus(); } catch (e) {} + } +} /* ---------- 表单错误提示(与定版同结构) ---------- */ function setErr(input, msg) { @@ -1017,7 +1047,7 @@ document.addEventListener("click", (e) => { const dtab = t.closest("[data-dtab]"); if (dtab) { switchDrawerTab(dtab.dataset.dtab); return; } const openModalBtn = t.closest("[data-open-modal]"); - if (openModalBtn) { openModal(openModalBtn.dataset.openModal); return; } + if (openModalBtn) { openModal(openModalBtn.dataset.openModal, openModalBtn); return; } if (t.closest("[data-close-modal]")) { closeModal(); return; } const opener = t.closest("[data-open-detail]"); if (opener) { if (!t.closest("a,button,input,select,textarea,label")) openDetail(opener.dataset.openDetail); return; } diff --git a/public/index.php b/public/index.php index e954447..062031f 100755 --- a/public/index.php +++ b/public/index.php @@ -168,7 +168,7 @@ function pageHeader(array $me, ?int $taskCount = null): void @@ -178,9 +178,9 @@ function pageFooter(bool $withDrawer = true): void
- -