feat(admin): 新增后台订单列表与详情抽屉
This commit is contained in:
@@ -1104,6 +1104,30 @@ a {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.admin-page__head-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 2px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-page__desc {
|
||||
display: block;
|
||||
max-width: 720px;
|
||||
}
|
||||
|
||||
.admin-page__meta {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.admin-page__actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
.admin-page__head h2 {
|
||||
margin: 6px 0 8px !important;
|
||||
color: var(--brand-ink) !important;
|
||||
@@ -1253,6 +1277,215 @@ a {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.admin-filter-bar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
margin-bottom: 18px;
|
||||
padding: 16px 18px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
background: var(--paper-warm);
|
||||
}
|
||||
|
||||
.admin-filter-bar__fields {
|
||||
display: flex;
|
||||
flex: 1 1 640px;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px 14px;
|
||||
}
|
||||
|
||||
.admin-filter-bar__actions {
|
||||
padding-bottom: 1px;
|
||||
}
|
||||
|
||||
.admin-filter-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
min-width: 140px;
|
||||
}
|
||||
|
||||
.admin-filter-field__label {
|
||||
color: var(--ink-muted);
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
.admin-filter-field .ant-select,
|
||||
.admin-filter-field .ant-input-affix-wrapper {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.admin-status-tag {
|
||||
margin-inline-end: 0;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.admin-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.admin-stack strong {
|
||||
color: var(--ink);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.admin-stack span {
|
||||
color: var(--ink-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.admin-stack__accent {
|
||||
color: var(--brand-seal) !important;
|
||||
}
|
||||
|
||||
.admin-stack--tiny {
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.admin-order-link {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
color: var(--brand-ink);
|
||||
font-family: 'Inter', monospace;
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.02em;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.admin-order-link:hover {
|
||||
color: var(--brand-seal);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 3px;
|
||||
}
|
||||
|
||||
.admin-amount {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.admin-amount strong {
|
||||
color: var(--brand-ink);
|
||||
font-family: 'Inter', monospace;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.admin-amount span {
|
||||
color: var(--ink-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.admin-amount__accent {
|
||||
color: var(--success) !important;
|
||||
}
|
||||
|
||||
.admin-table__row--clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ant-table-wrapper .ant-table-tbody > tr.ant-table-row.admin-table__row--clickable:hover > td {
|
||||
background: #f3f7f4;
|
||||
}
|
||||
|
||||
.admin-table-alert {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.admin-detail {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 22px;
|
||||
}
|
||||
|
||||
.admin-detail__section {
|
||||
padding-bottom: 18px;
|
||||
border-bottom: 1px dashed var(--line);
|
||||
}
|
||||
|
||||
.admin-detail__section:last-child {
|
||||
padding-bottom: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.admin-detail__section-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.admin-detail__section-head h4 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin: 0;
|
||||
color: var(--brand-ink);
|
||||
font-size: 13px;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
.admin-detail__section .ant-descriptions-item-label {
|
||||
color: var(--ink-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.admin-detail__section .ant-descriptions-item-content {
|
||||
color: var(--ink);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.admin-detail__pre {
|
||||
max-height: 220px;
|
||||
padding: 10px 12px;
|
||||
overflow: auto;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
background: #fbf8f1;
|
||||
color: var(--ink-secondary);
|
||||
font-size: 12px;
|
||||
line-height: 1.6;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.admin-detail-drawer .ant-drawer-header {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.admin-detail-drawer__head {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.admin-detail-drawer__title {
|
||||
color: var(--brand-ink);
|
||||
font-family: 'Inter', monospace;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.admin-detail-drawer__subtitle {
|
||||
color: var(--ink-muted);
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.admin-detail-drawer__tags {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.admin-placeholder-card {
|
||||
position: relative;
|
||||
max-width: 760px;
|
||||
|
||||
Reference in New Issue
Block a user