feat(worker): 售后问题单去除人工居中宽度限制,统一Tabs切换并支持已结案默认折叠
This commit is contained in:
File diff suppressed because it is too large
Load Diff
+124
-312
@@ -2794,312 +2794,154 @@ body {
|
||||
/* ===== 售后争议与工单仲裁中心 (打手端) ===== */
|
||||
|
||||
.worker-after-sales-page {
|
||||
max-width: 1240px;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
padding-bottom: 32px;
|
||||
}
|
||||
|
||||
/* 待办紧急提醒横幅 */
|
||||
.worker-as-pending-alert {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 14px 20px;
|
||||
background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
|
||||
border: 1px solid #fde68a;
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 4px 14px -2px rgba(245, 158, 11, 0.12);
|
||||
}
|
||||
|
||||
.worker-as-alert-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.worker-as-alert-icon-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 10px;
|
||||
background: #f59e0b;
|
||||
color: #ffffff;
|
||||
font-size: 20px;
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
|
||||
}
|
||||
|
||||
.worker-as-alert-title {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: #92400e;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.worker-as-alert-title strong {
|
||||
font-size: 17px;
|
||||
color: #b45309;
|
||||
}
|
||||
|
||||
.worker-as-alert-desc {
|
||||
font-size: 13px;
|
||||
color: #b45309;
|
||||
margin-top: 2px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.worker-as-alert-btn {
|
||||
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
|
||||
border: none !important;
|
||||
font-weight: 600 !important;
|
||||
height: 38px !important;
|
||||
padding: 0 18px !important;
|
||||
border-radius: 8px !important;
|
||||
box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25) !important;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* 4卡片争议处理概览网格 */
|
||||
.worker-as-kpi-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.worker-as-kpi-card {
|
||||
background: #ffffff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 14px;
|
||||
padding: 16px 18px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
|
||||
}
|
||||
|
||||
.worker-as-kpi-card:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: #cbd5e1;
|
||||
box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
.worker-as-kpi-card.is-active {
|
||||
border-color: #2563eb;
|
||||
background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
|
||||
box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
|
||||
}
|
||||
|
||||
.worker-as-kpi-icon-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 12px;
|
||||
font-size: 20px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.worker-as-kpi-icon-wrap.amber {
|
||||
background: #fffbeb;
|
||||
color: #d97706;
|
||||
}
|
||||
|
||||
.worker-as-kpi-icon-wrap.blue {
|
||||
background: #eff6ff;
|
||||
color: #2563eb;
|
||||
}
|
||||
|
||||
.worker-as-kpi-icon-wrap.rose {
|
||||
background: #fff1f2;
|
||||
color: #e11d48;
|
||||
}
|
||||
|
||||
.worker-as-kpi-icon-wrap.emerald {
|
||||
background: #ecfdf5;
|
||||
color: #059669;
|
||||
}
|
||||
|
||||
.worker-as-kpi-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.worker-as-kpi-label {
|
||||
display: flex;
|
||||
.worker-after-sales-alert-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 13px;
|
||||
color: #64748b;
|
||||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #ea580c;
|
||||
background: #fff7ed;
|
||||
border: 1px solid #fed7aa;
|
||||
padding: 2px 10px;
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
.worker-as-kpi-pulse-dot {
|
||||
.worker-after-sales-pulse-dot {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
background: #ef4444;
|
||||
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
|
||||
background: #f97316;
|
||||
box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
|
||||
animation: worker-after-sales-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
|
||||
}
|
||||
|
||||
@keyframes worker-after-sales-pulse {
|
||||
0% {
|
||||
transform: scale(0.95);
|
||||
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
|
||||
box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
|
||||
}
|
||||
70% {
|
||||
transform: scale(1);
|
||||
box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
|
||||
box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);
|
||||
}
|
||||
100% {
|
||||
transform: scale(0.95);
|
||||
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
|
||||
box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.worker-as-kpi-value {
|
||||
font-size: 22px;
|
||||
font-weight: 800;
|
||||
color: #0f172a;
|
||||
line-height: 1.2;
|
||||
margin: 2px 0;
|
||||
font-feature-settings: 'tnum';
|
||||
}
|
||||
|
||||
.worker-as-kpi-sub {
|
||||
font-size: 11px;
|
||||
color: #94a3b8;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
/* 头部筛选工具栏 */
|
||||
.worker-after-sales-desktop-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
background: #ffffff;
|
||||
padding: 14px 20px;
|
||||
border-radius: 14px;
|
||||
border: 1px solid #e2e8f0;
|
||||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
|
||||
}
|
||||
|
||||
.worker-after-sales-header-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.worker-after-sales-heading.ant-typography {
|
||||
margin: 0 !important;
|
||||
font-size: 18px !important;
|
||||
font-weight: 700 !important;
|
||||
color: #0f172a !important;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.worker-as-total-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: #64748b;
|
||||
background: #f1f5f9;
|
||||
padding: 2px 9px;
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
.worker-after-sales-header-center {
|
||||
flex: 1;
|
||||
max-width: 460px;
|
||||
}
|
||||
|
||||
.worker-after-sales-segmented {
|
||||
background: #f1f5f9;
|
||||
padding: 3px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.worker-after-sales-filter-count {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
padding: 0 5px;
|
||||
border-radius: 9px;
|
||||
background: #e6f4ff;
|
||||
color: #1677ff;
|
||||
font-size: 11px;
|
||||
line-height: 1;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.worker-after-sales-header-right {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.worker-as-loading-state,
|
||||
.worker-as-empty-card {
|
||||
background: #ffffff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 14px;
|
||||
border-radius: 12px;
|
||||
padding: 48px 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 售后列表与卡片 */
|
||||
/* 售后单列表 */
|
||||
.worker-after-sales-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
/* 售后卡片容器 */
|
||||
.worker-as-case-card {
|
||||
background: #ffffff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 16px;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
|
||||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.worker-as-case-card:hover {
|
||||
border-color: #cbd5e1;
|
||||
box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
|
||||
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
|
||||
}
|
||||
|
||||
.worker-as-case-card.is-status-awaiting_worker_response {
|
||||
border-left: 4px solid #f59e0b;
|
||||
border-left: 3px solid #f59e0b;
|
||||
}
|
||||
|
||||
.worker-as-case-card.is-status-under_review {
|
||||
border-left: 4px solid #3b82f6;
|
||||
border-left: 3px solid #3b82f6;
|
||||
}
|
||||
|
||||
.worker-as-case-card.is-status-recovery_pending {
|
||||
border-left: 4px solid #ef4444;
|
||||
border-left: 3px solid #ef4444;
|
||||
}
|
||||
|
||||
.worker-as-case-card.is-status-closed {
|
||||
border-left: 4px solid #10b981;
|
||||
border-left: 3px solid #10b981;
|
||||
}
|
||||
|
||||
/* 卡片顶部元数据条 */
|
||||
/* ===== 折叠单行紧凑视图 (已关闭案件默认折叠) ===== */
|
||||
.worker-as-case-card.is-collapsed {
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.worker-as-collapsed-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 16px;
|
||||
gap: 12px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.worker-as-collapsed-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.worker-as-product-title-collapsed {
|
||||
font-size: 14px !important;
|
||||
color: #0f172a !important;
|
||||
font-weight: 600 !important;
|
||||
max-width: 360px;
|
||||
}
|
||||
|
||||
.worker-as-recovery-brief {
|
||||
font-size: 12px;
|
||||
color: #dc2626;
|
||||
font-weight: 700;
|
||||
background: #fef2f2;
|
||||
border: 1px solid #fecaca;
|
||||
padding: 1px 8px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.worker-as-collapsed-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.worker-as-toggle-btn {
|
||||
font-size: 13px !important;
|
||||
font-weight: 500 !important;
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
padding: 0 4px !important;
|
||||
}
|
||||
|
||||
/* ===== 展开详情完整视图 ===== */
|
||||
/* 卡片头部 */
|
||||
.worker-as-card-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -3169,7 +3011,7 @@ body {
|
||||
font-size: 15px !important;
|
||||
font-weight: 700 !important;
|
||||
color: #0f172a !important;
|
||||
max-width: 340px;
|
||||
max-width: 360px;
|
||||
}
|
||||
|
||||
.worker-as-share-tag {
|
||||
@@ -3216,13 +3058,13 @@ body {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16px;
|
||||
padding: 18px 20px;
|
||||
padding: 16px 18px;
|
||||
}
|
||||
|
||||
.worker-as-col {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.worker-as-col-header {
|
||||
@@ -3235,10 +3077,10 @@ body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
font-size: 12px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.worker-as-avatar-pill.buyer {
|
||||
@@ -3266,13 +3108,13 @@ body {
|
||||
.worker-as-box {
|
||||
background: #f8fafc;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 12px;
|
||||
padding: 14px 16px;
|
||||
min-height: 120px;
|
||||
border-radius: 10px;
|
||||
padding: 12px 14px;
|
||||
min-height: 100px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.worker-as-box.buyer-box {
|
||||
@@ -3312,8 +3154,8 @@ body {
|
||||
|
||||
.worker-as-box-files {
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.05);
|
||||
padding-top: 10px;
|
||||
margin-top: 4px;
|
||||
padding-top: 8px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.worker-as-files-label {
|
||||
@@ -3332,8 +3174,8 @@ body {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
gap: 14px;
|
||||
padding: 16px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.worker-as-cta-content {
|
||||
@@ -3347,12 +3189,12 @@ body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 10px;
|
||||
background: #fef3c7;
|
||||
color: #d97706;
|
||||
font-size: 20px;
|
||||
font-size: 18px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -3374,10 +3216,10 @@ body {
|
||||
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
|
||||
border: none !important;
|
||||
font-weight: 600 !important;
|
||||
height: 36px !important;
|
||||
padding: 0 20px !important;
|
||||
height: 34px !important;
|
||||
padding: 0 18px !important;
|
||||
border-radius: 8px !important;
|
||||
box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25) !important;
|
||||
box-shadow: 0 2px 6px rgba(217, 119, 6, 0.2) !important;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
@@ -3389,7 +3231,7 @@ body {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 16px;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.worker-as-neutral-icon {
|
||||
@@ -3407,12 +3249,12 @@ body {
|
||||
|
||||
/* 底部仲裁裁决横幅 */
|
||||
.worker-as-resolution-banner {
|
||||
background: #f8fafc;
|
||||
border-top: 1px solid #e2e8f0;
|
||||
padding: 14px 20px;
|
||||
background: #fafbfc;
|
||||
border-top: 1px solid #eef2f6;
|
||||
padding: 12px 18px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.worker-as-resolution-banner.is-pending {
|
||||
@@ -3437,12 +3279,12 @@ body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 6px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 5px;
|
||||
background: #1e293b;
|
||||
color: #ffffff;
|
||||
font-size: 12px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.worker-as-resolution-title {
|
||||
@@ -3507,8 +3349,8 @@ body {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 4px 10px;
|
||||
border-radius: 8px;
|
||||
padding: 3px 9px;
|
||||
border-radius: 6px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
@@ -3589,52 +3431,22 @@ body {
|
||||
}
|
||||
|
||||
/* 响应式调整 */
|
||||
@media (max-width: 992px) {
|
||||
.worker-as-kpi-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.worker-as-kpi-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 10px;
|
||||
}
|
||||
.worker-as-kpi-card {
|
||||
padding: 12px 14px;
|
||||
gap: 10px;
|
||||
}
|
||||
.worker-as-kpi-icon-wrap {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
font-size: 18px;
|
||||
}
|
||||
.worker-as-kpi-value {
|
||||
font-size: 18px;
|
||||
}
|
||||
.worker-as-pending-alert {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.worker-as-alert-btn {
|
||||
width: 100%;
|
||||
}
|
||||
.worker-after-sales-desktop-header {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
.worker-after-sales-header-center {
|
||||
max-width: 100%;
|
||||
}
|
||||
.worker-as-card-body {
|
||||
grid-template-columns: 1fr;
|
||||
padding: 14px;
|
||||
padding: 12px;
|
||||
}
|
||||
.worker-as-card-header {
|
||||
padding: 10px 14px;
|
||||
}
|
||||
.worker-as-product-title {
|
||||
max-width: 100%;
|
||||
.worker-as-collapsed-row {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
}
|
||||
.worker-as-collapsed-right {
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user