重构Salon后台七页紧凑操作台样式
This commit is contained in:
@@ -2,6 +2,7 @@ import { createApp } from 'vue'
|
|||||||
import { createPinia } from 'pinia'
|
import { createPinia } from 'pinia'
|
||||||
import 'ant-design-vue/dist/reset.css'
|
import 'ant-design-vue/dist/reset.css'
|
||||||
import './styles/admin-mobile.css'
|
import './styles/admin-mobile.css'
|
||||||
|
import './styles/admin-workbench.css'
|
||||||
import './style.css'
|
import './style.css'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import router from './router'
|
import router from './router'
|
||||||
|
|||||||
@@ -0,0 +1,596 @@
|
|||||||
|
:root {
|
||||||
|
--admin-workbench-ink: #17211f;
|
||||||
|
--admin-workbench-muted: #6d7c75;
|
||||||
|
--admin-workbench-line: #dfe8e3;
|
||||||
|
--admin-workbench-page: #f4f8f5;
|
||||||
|
--admin-workbench-surface: #ffffff;
|
||||||
|
--admin-workbench-mint: #247b63;
|
||||||
|
--admin-workbench-mint-soft: #e5f4ed;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content {
|
||||||
|
background: var(--admin-workbench-page);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(
|
||||||
|
.salon-dashboard,
|
||||||
|
.users,
|
||||||
|
.registration-page,
|
||||||
|
.privacy-page,
|
||||||
|
.shops,
|
||||||
|
.system-settings,
|
||||||
|
.admin-profile
|
||||||
|
) {
|
||||||
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
color: var(--admin-workbench-ink);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) > .ant-page-header {
|
||||||
|
margin: 0 0 12px;
|
||||||
|
padding: 0 0 15px;
|
||||||
|
border-bottom: 1px solid var(--admin-workbench-line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) > .ant-page-header .ant-page-header-heading-title {
|
||||||
|
color: var(--admin-workbench-ink);
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 730;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) > .ant-page-header .ant-page-header-heading-sub-title {
|
||||||
|
color: var(--admin-workbench-muted);
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) > .admin-page-intro {
|
||||||
|
gap: 5px;
|
||||||
|
margin: 0 0 12px;
|
||||||
|
padding: 0 0 13px;
|
||||||
|
border: 0;
|
||||||
|
border-bottom: 1px solid var(--admin-workbench-line);
|
||||||
|
border-radius: 0;
|
||||||
|
background: transparent;
|
||||||
|
box-shadow: none;
|
||||||
|
color: var(--admin-workbench-ink);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) > .admin-page-intro .admin-page-intro__eyebrow {
|
||||||
|
color: var(--admin-workbench-mint);
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: 750;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) > .admin-page-intro .admin-page-intro__title {
|
||||||
|
color: var(--admin-workbench-ink);
|
||||||
|
font-size: 23px;
|
||||||
|
line-height: 1.25;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) > .admin-page-intro .admin-page-intro__subtitle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) > .admin-page-intro .admin-page-chip {
|
||||||
|
min-height: 25px;
|
||||||
|
padding: 0 8px;
|
||||||
|
border: 1px solid var(--admin-workbench-line);
|
||||||
|
border-radius: 5px;
|
||||||
|
background: var(--admin-workbench-surface);
|
||||||
|
color: var(--admin-workbench-muted);
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) > .ant-card {
|
||||||
|
overflow: visible;
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
background: transparent;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) > .ant-card > .ant-card-head {
|
||||||
|
min-height: 44px;
|
||||||
|
padding: 0;
|
||||||
|
border-bottom: 1px solid var(--admin-workbench-line);
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) > .ant-card > .ant-card-head .ant-card-head-title {
|
||||||
|
padding: 9px 0;
|
||||||
|
color: var(--admin-workbench-ink);
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) > .ant-card > .ant-card-head .ant-card-extra {
|
||||||
|
width: 100%;
|
||||||
|
padding: 7px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) > .ant-card > .ant-card-body {
|
||||||
|
padding: 10px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .users > .ant-card .admin-toolbar,
|
||||||
|
.admin-layout .content .shops > .ant-card .admin-toolbar {
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .users > .ant-card .admin-filter-panel {
|
||||||
|
margin: 10px 0 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .users > .ant-card .admin-filter-bar {
|
||||||
|
align-items: center;
|
||||||
|
gap: 7px;
|
||||||
|
padding: 9px 10px;
|
||||||
|
border: 1px solid var(--admin-workbench-line);
|
||||||
|
background: color-mix(in srgb, var(--admin-workbench-surface) 74%, transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .users > .ant-card .admin-filter-bar > .ant-btn {
|
||||||
|
height: 32px;
|
||||||
|
padding-inline: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) :is(.ant-input, .ant-input-affix-wrapper, .ant-select-selector, .ant-picker) {
|
||||||
|
border-color: #d5e1da;
|
||||||
|
border-radius: 6px;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) :is(.ant-input:hover, .ant-input-affix-wrapper:hover, .ant-select-selector:hover, .ant-picker:hover) {
|
||||||
|
border-color: #91c7b0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) :is(.ant-input:focus, .ant-input-affix-wrapper-focused, .ant-select-focused .ant-select-selector, .ant-picker-focused) {
|
||||||
|
border-color: var(--admin-workbench-mint);
|
||||||
|
box-shadow: 0 0 0 2px rgba(36, 123, 99, 0.12);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) :is(.ant-btn, .ant-switch) {
|
||||||
|
transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) .ant-btn-primary {
|
||||||
|
border-color: var(--admin-workbench-mint);
|
||||||
|
border-radius: 6px;
|
||||||
|
background: var(--admin-workbench-mint);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops) .ant-btn-primary:hover {
|
||||||
|
border-color: #1c6852;
|
||||||
|
background: #1c6852;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops, .registration-page, .privacy-page) .ant-table-wrapper {
|
||||||
|
width: 100%;
|
||||||
|
border-top: 1px solid var(--admin-workbench-line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops, .registration-page, .privacy-page) .ant-table {
|
||||||
|
color: var(--admin-workbench-ink);
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops, .registration-page, .privacy-page) .ant-table-thead > tr > th {
|
||||||
|
padding: 11px 12px;
|
||||||
|
border-bottom: 1px solid var(--admin-workbench-line);
|
||||||
|
background: #edf4ef;
|
||||||
|
color: #52645b;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 720;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops, .registration-page, .privacy-page) .ant-table-tbody > tr > td {
|
||||||
|
padding: 11px 12px;
|
||||||
|
border-bottom: 1px solid #e8eeea;
|
||||||
|
background: var(--admin-workbench-surface);
|
||||||
|
color: #26332d;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops, .registration-page, .privacy-page) .ant-table-tbody > tr:hover > td {
|
||||||
|
background: #f5faf7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops, .registration-page, .privacy-page) .ant-table-pagination {
|
||||||
|
margin: 12px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.users, .shops, .registration-page, .privacy-page) .ant-pagination-item,
|
||||||
|
.admin-layout .content :is(.users, .shops, .registration-page, .privacy-page) .ant-pagination-prev,
|
||||||
|
.admin-layout .content :is(.users, .shops, .registration-page, .privacy-page) .ant-pagination-next {
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.registration-page, .privacy-page) .admin-view-heading {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-end;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 18px;
|
||||||
|
padding: 0 0 16px;
|
||||||
|
border-bottom: 1px solid var(--admin-workbench-line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-view-heading__eyebrow {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
color: var(--admin-workbench-mint);
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: 760;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-view-heading h1 {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--admin-workbench-ink);
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 730;
|
||||||
|
line-height: 1.25;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-view-heading p {
|
||||||
|
margin: 5px 0 0;
|
||||||
|
color: var(--admin-workbench-muted);
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-view-heading__count {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: 6px;
|
||||||
|
padding: 0 0 2px;
|
||||||
|
color: var(--admin-workbench-muted);
|
||||||
|
font-size: 11px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-view-heading__count strong {
|
||||||
|
color: var(--admin-workbench-mint);
|
||||||
|
font-size: 21px;
|
||||||
|
font-weight: 740;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .registration-page {
|
||||||
|
display: grid;
|
||||||
|
gap: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .registration-table {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .registration-page .ant-btn-primary {
|
||||||
|
border-radius: 5px;
|
||||||
|
background: var(--admin-workbench-mint);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .privacy-page {
|
||||||
|
gap: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .privacy-page .page-notice {
|
||||||
|
border: 1px solid #eadbb5;
|
||||||
|
border-radius: 6px;
|
||||||
|
background: #fff9e9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .privacy-page .ant-tabs-nav {
|
||||||
|
margin: 0 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .privacy-page .ant-tabs-tab {
|
||||||
|
padding: 10px 1px;
|
||||||
|
color: var(--admin-workbench-muted);
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .privacy-page .ant-tabs-tab-active .ant-tabs-tab-btn {
|
||||||
|
color: var(--admin-workbench-mint);
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .privacy-page .ant-tabs-ink-bar {
|
||||||
|
background: var(--admin-workbench-mint);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .privacy-page .ant-tabs-content-holder {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .privacy-page .ant-table-wrapper {
|
||||||
|
border-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .privacy-page .payload-preview {
|
||||||
|
max-width: 520px;
|
||||||
|
padding: 7px 9px;
|
||||||
|
border-left: 2px solid #a8d9c2;
|
||||||
|
background: #f6faf7;
|
||||||
|
color: #34443b;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .privacy-page .moderation-author {
|
||||||
|
color: #4d6156;
|
||||||
|
font-weight: 650;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .privacy-page .ant-image-img {
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .system-settings {
|
||||||
|
gap: 17px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-header {
|
||||||
|
align-items: center;
|
||||||
|
padding-bottom: 14px;
|
||||||
|
border-bottom: 1px solid var(--admin-workbench-line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-eyebrow {
|
||||||
|
font-size: 10px;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-header h1 {
|
||||||
|
margin: 4px 0 3px;
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 730;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-header p,
|
||||||
|
.admin-layout .content .pane-head p {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-layout {
|
||||||
|
grid-template-columns: 190px minmax(0, 1fr);
|
||||||
|
gap: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-nav {
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-nav__label {
|
||||||
|
padding: 0 9px 9px;
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-nav__item {
|
||||||
|
min-height: 38px;
|
||||||
|
padding: 8px 10px;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-nav__item.is-active {
|
||||||
|
box-shadow: inset 2px 0 0 var(--admin-workbench-mint);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-nav__hint {
|
||||||
|
margin: 12px 8px 0;
|
||||||
|
padding-top: 10px;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .pane-head {
|
||||||
|
padding: 0 0 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .pane-head h2 {
|
||||||
|
font-size: 17px;
|
||||||
|
font-weight: 730;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .setting-group {
|
||||||
|
margin-top: 14px;
|
||||||
|
border-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .setting-group + .setting-group {
|
||||||
|
padding-top: 8px;
|
||||||
|
border-top: 1px solid var(--admin-workbench-line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .setting-group__head {
|
||||||
|
padding: 11px 0 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .setting-row {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 10px 6px;
|
||||||
|
border-radius: 0;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .setting-row:first-of-type,
|
||||||
|
.admin-layout .content .setting-row--last {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .setting-copy strong {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .setting-copy span {
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .setting-row :is(.ant-input, .ant-input-affix-wrapper, .ant-select-selector) {
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .setting-group__head .ant-btn {
|
||||||
|
min-height: 30px;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .admin-profile {
|
||||||
|
gap: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .profile-head {
|
||||||
|
padding: 0 0 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .profile-head h1 {
|
||||||
|
margin: 4px 0 3px;
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 730;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .profile-section {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .profile-section__head {
|
||||||
|
padding: 12px 0 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .profile-section__head h2 {
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 720;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .profile-rows {
|
||||||
|
border-top: 1px solid var(--admin-workbench-line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .profile-row {
|
||||||
|
min-height: 47px;
|
||||||
|
padding: 8px 4px;
|
||||||
|
border-color: var(--admin-workbench-line);
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .profile-row span {
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .profile-row strong {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .password-form {
|
||||||
|
padding: 12px 0 0;
|
||||||
|
border: 0;
|
||||||
|
border-top: 1px solid var(--admin-workbench-line);
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .password-form__grid {
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .password-form :is(.ant-input, .ant-input-affix-wrapper) {
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .password-form__actions {
|
||||||
|
padding-top: 8px;
|
||||||
|
border-top: 1px solid var(--admin-workbench-line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .password-form__actions .ant-btn {
|
||||||
|
min-height: 34px;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .profile-section--logout .ant-btn {
|
||||||
|
width: auto;
|
||||||
|
min-height: 34px;
|
||||||
|
padding-inline: 14px;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.dashboard-head, .settings-header, .profile-head) :is(h1, p) {
|
||||||
|
text-wrap: pretty;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content :is(.dashboard-head, .admin-view-heading, .settings-header, .profile-head) :focus-visible,
|
||||||
|
.admin-layout .content :is(.users, .shops, .registration-page, .privacy-page) :is(button, a, input, [tabindex]):focus-visible {
|
||||||
|
outline: 2px solid var(--admin-workbench-mint);
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 960px) {
|
||||||
|
.admin-layout .content .settings-layout {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
gap: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-nav {
|
||||||
|
border-bottom: 1px solid var(--admin-workbench-line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-nav__item {
|
||||||
|
border-radius: 5px 5px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .users > .ant-card .admin-filter-bar {
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 760px) {
|
||||||
|
.admin-layout .content :is(.registration-page, .privacy-page) .admin-view-heading {
|
||||||
|
align-items: flex-start;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-header {
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-nav {
|
||||||
|
display: flex;
|
||||||
|
gap: 4px;
|
||||||
|
overflow-x: auto;
|
||||||
|
padding-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-nav__item {
|
||||||
|
width: auto;
|
||||||
|
min-height: 34px;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .setting-row {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 12px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .setting-control {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .settings-header p {
|
||||||
|
max-width: 42ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-layout .content .profile-section--logout .ant-btn {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.admin-layout .content :is(.users, .shops, .dashboard-panel, .attention-row, .settings-nav__item) * {
|
||||||
|
scroll-behavior: auto !important;
|
||||||
|
transition-duration: 0.01ms !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -261,6 +261,7 @@ onMounted(() => {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
min-height: 64px;
|
min-height: 64px;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
|
line-height: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-left {
|
.header-left {
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="privacy-page">
|
<div class="privacy-page">
|
||||||
|
<header class="admin-view-heading">
|
||||||
|
<div>
|
||||||
|
<span class="admin-view-heading__eyebrow">账号与内容安全</span>
|
||||||
|
<h1>隐私与内容复核</h1>
|
||||||
|
<p>处理账号注销、待审内容与历史手机号加密回填。</p>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
<a-alert
|
<a-alert
|
||||||
type="warning"
|
type="warning"
|
||||||
show-icon
|
show-icon
|
||||||
|
|||||||
@@ -1,7 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="registration-page">
|
<div class="registration-page">
|
||||||
<a-page-header title="工作台注册审核" sub-title="审核店长注册申请" />
|
<header class="admin-view-heading">
|
||||||
<a-card :bordered="false">
|
<div>
|
||||||
|
<span class="admin-view-heading__eyebrow">账号管理</span>
|
||||||
|
<h1>注册审核</h1>
|
||||||
|
<p>核验并处理店长与员工的账号申请。</p>
|
||||||
|
</div>
|
||||||
|
<div class="admin-view-heading__count"><strong>{{ applications.length }}</strong><span>条申请记录</span></div>
|
||||||
|
</header>
|
||||||
|
<div class="registration-table">
|
||||||
<a-table
|
<a-table
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:data-source="applications"
|
:data-source="applications"
|
||||||
@@ -10,17 +17,23 @@
|
|||||||
row-key="id"
|
row-key="id"
|
||||||
>
|
>
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
<template v-if="column.key === 'roleType'">{{ record.roleType === 'MANAGER' ? '店长' : '店员' }}</template>
|
<template v-if="column.key === 'roleType'">
|
||||||
<template v-else-if="column.key === 'status'">{{ statusLabel(record.status) }}</template>
|
<a-tag :bordered="false">{{ record.roleType === 'MANAGER' ? '店长' : '店员' }}</a-tag>
|
||||||
|
</template>
|
||||||
|
<template v-else-if="column.key === 'status'">
|
||||||
|
<a-tag :color="record.status === 'APPROVED' ? 'green' : record.status === 'REJECTED' ? 'red' : 'processing'">
|
||||||
|
{{ statusLabel(record.status) }}
|
||||||
|
</a-tag>
|
||||||
|
</template>
|
||||||
<template v-else-if="column.key === 'action'">
|
<template v-else-if="column.key === 'action'">
|
||||||
<a-space v-if="record.status === 'PENDING_ADMIN'">
|
<a-space v-if="record.status === 'PENDING_ADMIN'">
|
||||||
<a-button type="link" size="small" @click="approve(record.id)">通过</a-button>
|
<a-button type="primary" size="small" @click="approve(record.id)">通过</a-button>
|
||||||
<a-button type="link" danger size="small" @click="reject(record.id)">驳回</a-button>
|
<a-button danger size="small" @click="reject(record.id)">驳回</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</a-card>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
# Salon 后台七页紧凑操作台重构
|
||||||
|
|
||||||
|
## 目标
|
||||||
|
|
||||||
|
将 Salon 管理后台的首页、账号管理、注册审核、隐私与内容复核、门店管理、系统设置、个人设置统一为紧凑的管理工作台。保留现有接口、字段、权限判断、分页、筛选、弹窗和表单行为,只调整信息层级、间距、表面样式和响应式呈现。
|
||||||
|
|
||||||
|
## 视觉方向
|
||||||
|
|
||||||
|
- 继续使用深绿侧栏与薄荷绿状态色,页面底色保持浅灰绿。
|
||||||
|
- 取消业务主区域外层的大圆角卡片,改为页面标题、工具条、表格和分组行直接铺开。
|
||||||
|
- 统一 8px 小圆角、1px 分隔线和低阴影;只有真实需要聚焦的提示、弹窗和移动端操作卡保留表面感。
|
||||||
|
- 标题采用“页面名 + 一句职责说明”,工具按钮与筛选器在同一操作带内对齐。
|
||||||
|
- 数据页面优先表格密度和可扫描性;设置页面优先分组行和右侧控件;驾驶舱优先 KPI、趋势、待处理事项。
|
||||||
|
|
||||||
|
## 页面改造
|
||||||
|
|
||||||
|
1. 首页保持 Salon 经营驾驶舱:KPI 横向铺开,趋势、待处理事项、门店排行和平台资产使用无外层大卡片的分区表面。
|
||||||
|
2. 账号管理与门店管理:桌面端标题、搜索、筛选、新增按钮形成统一工具带,表格直接占据内容宽度;移动端保留现有卡片列表和新增浮动按钮。
|
||||||
|
3. 注册审核:增加清晰的待处理提示和表格表头层级,审核动作使用明确的主/危险语义,不改审核接口。
|
||||||
|
4. 隐私与内容复核:提示条与标签页分离,复核表格使用更紧凑的内容预览和操作区,不改变注销、复核、回填三个流程。
|
||||||
|
5. 系统设置:保留左侧分类导航,右侧以设置分组和行式控件呈现,移除厚重的面板感。
|
||||||
|
6. 个人设置:账号摘要、资料行、安全表单、退出动作采用同一分隔线系统,密码修改和退出逻辑不变。
|
||||||
|
|
||||||
|
## 响应式与可访问性
|
||||||
|
|
||||||
|
- 960px 以下内容区取消侧栏偏移,工具带允许换行。
|
||||||
|
- 760px 以下设置导航变为横向滚动,表格保留 Ant Design 横向滚动,移动卡片继续使用现有组件。
|
||||||
|
- 所有新增或覆盖的按钮保持可见焦点样式;尊重 `prefers-reduced-motion`。
|
||||||
|
|
||||||
|
## 约束
|
||||||
|
|
||||||
|
- 不修改 ArtList,不改 Salon 后端、数据库、Nacos 或小程序。
|
||||||
|
- 不删除 Users/Shops 中现有余额、VIP、上传、地图和授权兼容代码。
|
||||||
|
- 只在后台布局作用域内覆盖样式,避免影响小程序页面。
|
||||||
@@ -1,5 +1,14 @@
|
|||||||
# 项目变更记录
|
# 项目变更记录
|
||||||
|
|
||||||
|
## 2026-10-26 Salon 后台七页紧凑操作台重构
|
||||||
|
|
||||||
|
- 首页、账号管理、注册审核、隐私与内容复核、门店管理、系统设置和个人设置统一到浅薄荷工作台视觉:页面内容铺开,使用紧凑标题、工具带、表格表头和行式分区,减少圆角卡片与阴影。
|
||||||
|
- 账号/门店移动端继续保留卡片列表和快捷新增;审核、注销、手机号回填、账号维护、设置保存和个人密码流程均沿用原接口与事件。
|
||||||
|
- 修正后台布局标题容器继承 64px 行高造成的标题错位;新增样式只作用于 Salon 后台布局,不影响小程序或 ArtList。
|
||||||
|
- 新增设计说明 `docs/superpowers/specs/2026-10-26-salon后台七页紧凑操作台重构-design.md`。
|
||||||
|
- GitNexus 当前索引更新未完成,影响工具对 Vue 文件只返回 UNKNOWN;使用静态路由/事件核对、桌面与 390px 手机预览、前端单测和生产构建替代。
|
||||||
|
- 验证:Salon 前端 28 个测试文件、88 项测试通过,Vue 类型检查与 Vite 生产构建通过;GitNexus `detect_changes` 返回低风险但索引覆盖不完整;`git diff --check` 通过。
|
||||||
|
|
||||||
## 2026-10-26 Salon 后台侧栏视觉恢复
|
## 2026-10-26 Salon 后台侧栏视觉恢复
|
||||||
|
|
||||||
- 恢复薄荷绿渐变导航轨道、Salon 字标和浅薄荷色圆角选中态;桌面侧栏展开/收起时,顶部栏和主内容同步调整位置。
|
- 恢复薄荷绿渐变导航轨道、Salon 字标和浅薄荷色圆角选中态;桌面侧栏展开/收起时,顶部栏和主内容同步调整位置。
|
||||||
|
|||||||
Reference in New Issue
Block a user