feat: 优化后台商品管理与移动端个人中心
This commit is contained in:
+204
-103
@@ -727,94 +727,71 @@ h1 {
|
||||
.listing-control-panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
gap: 14px;
|
||||
margin-bottom: 16px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #e7ebf1;
|
||||
border-radius: 8px;
|
||||
background: #ffffff;
|
||||
padding: 20px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
||||
padding: 16px 18px 18px;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* 统计卡片行 */
|
||||
.listing-stats-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
.listing-filter-toolbar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding: 16px 18px;
|
||||
border: 1px solid #e8edf4;
|
||||
border-radius: 10px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
|
||||
transition: all 0.2s ease;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding-bottom: 14px;
|
||||
border-bottom: 1px solid #eef1f5;
|
||||
}
|
||||
|
||||
.stat-card.clickable {
|
||||
cursor: pointer;
|
||||
.listing-filter-summary {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.stat-card.clickable:hover {
|
||||
border-color: #1477ff;
|
||||
box-shadow: 0 2px 8px rgba(20, 119, 255, 0.15);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.stat-card.active {
|
||||
border-color: #1477ff;
|
||||
background: #1477ff;
|
||||
box-shadow: 0 2px 8px rgba(20, 119, 255, 0.25);
|
||||
}
|
||||
|
||||
.stat-card .stat-label {
|
||||
color: #6b7785;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.stat-card.active .stat-label {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.stat-card .stat-value {
|
||||
color: #17233d;
|
||||
font-size: 28px;
|
||||
.listing-filter-summary strong {
|
||||
color: #1f2a3d;
|
||||
font-size: 15px;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
|
||||
.stat-card.active .stat-value {
|
||||
color: #ffffff;
|
||||
.listing-filter-summary span {
|
||||
color: #8b95a4;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.listing-filter-summary b {
|
||||
color: #2d5bd1;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
/* 筛选和操作行 */
|
||||
.listing-filter-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: end;
|
||||
gap: 16px 24px;
|
||||
padding-top: 16px;
|
||||
border-top: 1px solid #f0f3f7;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.listing-filter-bar {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.78fr) minmax(220px, 1fr) minmax(
|
||||
220px,
|
||||
1fr
|
||||
);
|
||||
grid-template-columns: repeat(8, minmax(0, 1fr));
|
||||
align-items: end;
|
||||
gap: 12px 16px;
|
||||
gap: 12px;
|
||||
margin: 0;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.listing-filter-bar .filter-keyword {
|
||||
grid-column: span 3;
|
||||
}
|
||||
|
||||
.listing-filter-bar .filter-range,
|
||||
.listing-filter-bar .filter-asset,
|
||||
.listing-filter-bar .filter-skin {
|
||||
grid-column: span 2;
|
||||
}
|
||||
|
||||
.listing-filter-bar .el-form-item {
|
||||
margin-bottom: 0;
|
||||
min-width: 0;
|
||||
@@ -879,7 +856,6 @@ h1 {
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
padding-bottom: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@@ -1212,98 +1188,223 @@ h1 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
border: none;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.table-pagination {
|
||||
justify-content: flex-end;
|
||||
margin-top: 12px;
|
||||
border-radius: 12px;
|
||||
padding: 12px 16px;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px 18px;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
margin-top: 12px;
|
||||
padding: 10px 14px;
|
||||
border: 1px solid #e7ebf1;
|
||||
border-radius: 8px;
|
||||
background: #ffffff;
|
||||
box-shadow: none;
|
||||
color: #66728f;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.pagination-summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.pagination-summary strong {
|
||||
color: #263247;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.pagination-summary em {
|
||||
padding-left: 8px;
|
||||
border-left: 1px solid #e8ecf2;
|
||||
color: #99a2af;
|
||||
font-size: 11px;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.pagination-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.pagination-summary,
|
||||
.pagination-page,
|
||||
.pagination-size-label {
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.page-size-select {
|
||||
width: 86px;
|
||||
flex: 0 0 86px;
|
||||
width: 82px;
|
||||
flex: 0 0 82px;
|
||||
}
|
||||
|
||||
.page-size-select .el-select__wrapper {
|
||||
min-height: 30px;
|
||||
padding: 4px 8px;
|
||||
min-height: 28px;
|
||||
border-radius: 5px;
|
||||
padding: 2px 7px;
|
||||
}
|
||||
|
||||
.page-size-select .el-select__selected-item {
|
||||
min-width: max-content;
|
||||
}
|
||||
|
||||
.admin-listings-page .table-pagination {
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.pagination-controls .el-button--small {
|
||||
min-width: 44px;
|
||||
padding: 5px 8px;
|
||||
.pagination-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.pagination-controls .el-button + .el-button {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.pagination-nav-btn.el-button {
|
||||
width: 28px;
|
||||
min-width: 28px;
|
||||
height: 28px;
|
||||
padding: 0;
|
||||
border-color: #e2e7ee;
|
||||
border-radius: 5px;
|
||||
color: #66728a;
|
||||
}
|
||||
|
||||
.pagination-nav-btn.el-button:hover:not(.is-disabled) {
|
||||
border-color: #9db6ed;
|
||||
background: #f4f8ff;
|
||||
color: #2c61d5;
|
||||
}
|
||||
|
||||
.pagination-page {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
justify-content: center;
|
||||
gap: 3px;
|
||||
min-width: 56px;
|
||||
padding: 0 6px;
|
||||
color: #8d97a6;
|
||||
font-size: 11px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.pagination-page strong {
|
||||
color: #2b5fd2;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.pagination-page i {
|
||||
color: #c0c6cf;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.pagination-jump {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding-left: 8px;
|
||||
border-left: 1px solid #e8ecf2;
|
||||
color: #818b9a;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.pagination-jump-input {
|
||||
width: 52px;
|
||||
}
|
||||
|
||||
.pagination-jump-input .el-input__wrapper {
|
||||
min-height: 28px;
|
||||
padding: 2px 6px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.pagination-jump-input .el-input__inner {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.pagination-jump-btn.el-button {
|
||||
height: 28px;
|
||||
padding: 0 9px;
|
||||
border-color: #dce3ec;
|
||||
border-radius: 5px;
|
||||
color: #3f5f97;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.admin-listings-page .table-pagination {
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.table-pagination {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.pagination-controls {
|
||||
justify-content: flex-end;
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.pagination-jump {
|
||||
padding-left: 0;
|
||||
border-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1280px) {
|
||||
.listing-filter-row {
|
||||
grid-template-columns: 1fr;
|
||||
.listing-filter-toolbar {
|
||||
align-items: flex-start;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.listing-filter-bar {
|
||||
grid-template-columns: repeat(2, minmax(180px, 1fr));
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.listing-action-strip {
|
||||
justify-content: flex-end;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.listing-control-panel {
|
||||
grid-template-columns: 1fr;
|
||||
align-items: stretch;
|
||||
.listing-filter-bar {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.listing-filter-row {
|
||||
grid-template-columns: 1fr;
|
||||
.listing-filter-bar .filter-keyword {
|
||||
grid-column: span 2;
|
||||
}
|
||||
|
||||
.listing-action-strip {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.listing-control-panel {
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.listing-filter-summary {
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
.listing-filter-bar {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.listing-action-strip {
|
||||
justify-content: flex-start;
|
||||
flex-wrap: wrap;
|
||||
.listing-filter-bar .filter-keyword,
|
||||
.listing-filter-bar .filter-range,
|
||||
.listing-filter-bar .filter-asset,
|
||||
.listing-filter-bar .filter-skin {
|
||||
grid-column: span 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user