修复两个问题

This commit is contained in:
2026-08-24 16:07:39 +08:00
parent 5cae5b5c93
commit 48a82403b2
3 changed files with 9 additions and 4 deletions
+1
View File
@@ -54,6 +54,7 @@
.aksrt-orders-page__filter-toggle { background: var(--surface-2, #f4f6f9); color: var(--orders-ink); white-space: nowrap; }
.aksrt-orders-page__filter-panel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -2px 0 14px; padding: 12px; border-radius: 10px; background: var(--surface-2, #f4f6f9); }
.aksrt-orders-page__filter-panel[hidden] { display: none !important; }
.aksrt-orders-page__filter-label { color: var(--orders-muted); font-size: 12px; font-weight: 650; }
.aksrt-orders-page__type-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.aksrt-orders-page__filter-chip { padding: 5px 9px; border: 1px solid var(--orders-line); border-radius: 999px; background: var(--surface-1, #fff); color: var(--orders-muted); font-size: 12px; text-decoration: none; }
@@ -38,10 +38,6 @@ if ($show_wallet || $show_credits) :
<?php
endif;
if ($show_credits) {
require $dir . '/credits-signin.php';
}
if ($show_wallet || $show_credits) {
require $dir . '/transfer-modal.php';
}
@@ -326,6 +326,10 @@ test('profile routes load versioned leaf styles and keep dialogs hidden initiall
const userHomeCss = read('assets/css/routes/user-home.css');
const profileLayoutCss = read('assets/css/routes/profile/layout.css');
const profileModalsCss = read('assets/css/routes/profile/modals.css');
const profileCredits = read('inc/helpers/user-center-renderers/profile-credits.php');
const profileOrders = read('inc/helpers/user-center-renderers/profile-orders.php');
const ordersCss = read('assets/css/routes/orders.css');
const orderCenterJs = read('assets/js/order-center.js');
assert.ok(scripts.includes("$profile_parts = ['layout', 'lists', 'modals'];"));
for (const part of ['user-center/shell', 'user-center/credits', 'user-center/vip', 'user-center/level', 'user-center/settings', 'revenue', 'user-center/revenue', 'user-center/revenue-earnings', 'user-center/responsive']) {
@@ -358,6 +362,10 @@ test('profile routes load versioned leaf styles and keep dialogs hidden initiall
assert.match(accountModals, /id="phone-modal"[\s\S]*?class="modal-field modal-field--code"[\s\S]*?class="code-input-group"[\s\S]*?class="aksrt-modal__footer"/);
assert.doesNotMatch(accountModals, /id="phone-modal"[\s\S]*?aksrt-modal__(?:dialog|body|actions)/);
assert.match(profileModalsCss, /\.modal-field input\[type="tel"\]/);
assert.doesNotMatch(profileCredits, /credits-signin\.php|data-aksrt-signin-calendar/);
assert.match(profileOrders, /data-aksrt-orders-filter-panel hidden/);
assert.match(ordersCss, /\.aksrt-orders-page__filter-panel\[hidden\]\s*\{\s*display:\s*none\s*!important;/);
assert.match(orderCenterJs, /if \(panel\) panel\.hidden = expanded;/);
});
test('public user home stays param-free and swaps panels via REST fragments', () => {