feat(M08-D): 补广告与装修管理

This commit is contained in:
Codex
2026-08-10 12:57:05 +08:00
parent ec4219ae31
commit c1c02421a1
17 changed files with 913 additions and 21 deletions
+227
View File
@@ -6,6 +6,233 @@
"Segoe UI", sans-serif;
}
.content-page {
display: grid;
gap: 16px;
}
.content-metrics {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
}
.content-metrics > span {
display: grid;
gap: 6px;
padding: 16px 18px;
border: 1px solid #dbe3ec;
border-radius: 14px;
background: #fff;
box-shadow: 0 8px 24px rgba(31, 49, 72, .06);
}
.content-metrics small,
.content-tab-actions p,
.asset-card p {
color: #66758a;
}
.content-metrics strong {
font-size: 26px;
}
.content-toolbar .el-select {
width: 220px;
}
.content-tabs {
padding: 0 18px 18px;
}
.content-tab-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 14px;
}
.content-tab-actions p {
margin: 0;
font-size: 13px;
}
.compact-select {
width: 120px;
}
.file-button {
display: inline-flex;
align-items: center;
gap: 7px;
min-height: 32px;
padding: 0 14px;
color: #fff;
border-radius: 6px;
background: #3370d4;
cursor: pointer;
font-size: 14px;
}
.file-button input {
display: none;
}
.file-button.disabled {
cursor: wait;
opacity: .6;
}
.asset-gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 14px;
min-height: 180px;
}
.asset-gallery > .el-empty {
grid-column: 1 / -1;
}
.asset-card {
overflow: hidden;
border: 1px solid #dbe3ec;
border-radius: 12px;
background: #fff;
}
.asset-card > .el-image {
width: 100%;
height: 130px;
background: #f5f7fa;
}
.asset-card > div,
.asset-card > p {
margin: 0;
padding: 9px 11px 0;
}
.asset-card > div {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.asset-card > p {
padding-bottom: 11px;
font-size: 12px;
}
.ad-title {
display: flex;
align-items: center;
gap: 10px;
}
.ad-title > .el-image {
flex: 0 0 76px;
width: 76px;
height: 48px;
border-radius: 7px;
background: #f5f7fa;
}
.decoration-form {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 14px;
}
.component-editor {
display: grid;
gap: 12px;
}
.component-editor > header {
display: flex;
align-items: center;
justify-content: space-between;
}
.component-editor > article {
display: grid;
grid-template-columns: 150px minmax(0, 1fr) auto;
align-items: start;
gap: 10px;
padding: 12px;
border: 1px solid #dbe3ec;
border-radius: 10px;
background: #f5f7fa;
}
.json-preview {
overflow: auto;
margin-top: 16px;
padding: 14px;
border-radius: 10px;
background: #14202b;
color: #d9e7ef;
font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
white-space: pre-wrap;
}
.asset-option {
display: inline-flex;
align-items: center;
gap: 8px;
}
.asset-option img {
width: 40px;
height: 26px;
border-radius: 4px;
object-fit: cover;
}
@media (max-width: 980px) {
.content-metrics {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.component-editor > article {
grid-template-columns: 130px minmax(0, 1fr);
}
.component-editor > article > .el-button {
grid-column: 2;
justify-self: end;
}
}
@media (max-width: 560px) {
.content-metrics,
.decoration-form {
grid-template-columns: 1fr;
}
.content-tab-actions,
.content-tab-actions .toolbar-actions {
align-items: stretch;
flex-direction: column;
}
.content-toolbar .el-select,
.compact-select {
width: 100%;
}
.component-editor > article {
grid-template-columns: 1fr;
}
.component-editor > article > .el-button {
grid-column: auto;
}
}
* {
box-sizing: border-box;
}