fix: 修复移动端我的订单卡片与搜索栏Flex样式异常

This commit is contained in:
yml2213
2026-08-16 11:14:33 +08:00
parent 0270657f2b
commit 27bcb7dd68
7 changed files with 430 additions and 77 deletions
+204 -76
View File
@@ -675,7 +675,7 @@ body {
align-items: center;
gap: 6px;
overflow-x: auto;
padding-bottom: 2px;
padding: 2px 0 4px 0;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
@@ -709,7 +709,7 @@ body {
font-weight: 600;
}
.worker-orders-pill-badge {
.worker-orders-status-pill-count {
background: rgba(0, 0, 0, 0.06);
color: inherit;
font-size: 10px;
@@ -718,13 +718,13 @@ body {
line-height: 16px;
}
.worker-orders-status-pill.active .worker-orders-pill-badge {
.worker-orders-status-pill.active .worker-orders-status-pill-count {
background: rgba(255, 255, 255, 0.25);
color: #ffffff;
}
/* 搜索与快捷刷新栏 */
.worker-orders-mobile-search-bar {
.worker-orders-mobile-search-row {
display: flex;
align-items: center;
gap: 6px;
@@ -739,30 +739,30 @@ body {
.worker-orders-mobile-list {
display: flex;
flex-direction: column;
gap: 10px;
gap: 12px;
width: 100%;
}
.worker-order-mobile-card {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 12px;
border-radius: 14px;
padding: 14px;
display: flex;
flex-direction: column;
gap: 8px;
box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
gap: 10px;
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
/* 头部:分类 + 订单号 + 状态 */
.worker-order-mobile-card-top {
.worker-order-mobile-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
gap: 8px;
}
.worker-order-mobile-top-left {
.worker-order-mobile-header-left {
display: flex;
align-items: center;
gap: 6px;
@@ -770,14 +770,14 @@ body {
flex: 1;
}
.worker-order-mobile-category-tag {
.worker-order-mobile-tag {
margin: 0;
font-size: 11px;
line-height: 18px;
padding: 0 6px;
line-height: 18px;
}
.worker-order-mobile-orderno {
.worker-order-mobile-orderno-text {
font-size: 12px;
color: #64748b;
overflow: hidden;
@@ -785,27 +785,23 @@ body {
white-space: nowrap;
}
.worker-order-mobile-top-right {
.worker-order-mobile-header-right {
display: flex;
align-items: center;
gap: 4px;
gap: 6px;
flex-shrink: 0;
}
.worker-order-mobile-deadline {
font-size: 11px;
}
/* 商品名称与奖励 */
/* 商品名称与金额 */
.worker-order-mobile-main-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 8px;
gap: 10px;
}
.worker-order-mobile-product-title {
font-size: 14px;
font-size: 15px;
font-weight: 700;
color: #0f172a;
line-height: 1.35;
@@ -816,52 +812,50 @@ body {
flex: 1;
}
.worker-order-mobile-reward {
.worker-order-mobile-price-badge {
display: flex;
flex-direction: column;
align-items: flex-end;
align-items: baseline;
gap: 4px;
flex-shrink: 0;
line-height: 1;
}
.worker-order-mobile-reward-val {
.worker-order-mobile-price-label {
font-size: 11px;
color: #64748b;
}
.worker-order-mobile-price-num {
font-size: 18px;
font-weight: 800;
color: #ea580c;
line-height: 1;
}
.worker-order-mobile-reward-label {
font-size: 10px;
color: #94a3b8;
margin-top: 2px;
}
/* 辅助信息行 */
.worker-order-mobile-meta-row {
/* 辅助信息行 (押金 & 接单时间) */
.worker-order-mobile-sub-row {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.worker-order-mobile-tag {
margin: 0;
font-size: 11px;
padding: 0 6px;
line-height: 18px;
}
.worker-order-mobile-deposit-text {
font-size: 11px;
justify-content: space-between;
gap: 8px;
font-size: 12px;
color: #64748b;
}
.worker-order-mobile-sub-item {
color: #64748b;
}
.worker-order-mobile-sub-time {
color: #94a3b8;
font-size: 11px;
}
/* 问题单提示 */
.worker-order-mobile-problem-box {
background: #fef2f2;
border: 1px solid #fecaca;
border-radius: 6px;
padding: 6px 10px;
border-radius: 8px;
padding: 8px 10px;
color: #b91c1c;
font-size: 12px;
line-height: 1.4;
@@ -872,7 +866,7 @@ body {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 8px 10px;
padding: 10px 12px;
display: flex;
flex-direction: column;
gap: 6px;
@@ -880,7 +874,7 @@ body {
.worker-order-mobile-credentials-grid {
display: grid;
gap: 3px;
gap: 4px;
font-size: 12px;
}
@@ -907,15 +901,15 @@ body {
display: flex;
align-items: center;
gap: 6px;
margin-top: 2px;
margin-top: 4px;
}
.worker-order-mobile-copy-toolbar {
display: flex;
gap: 6px;
margin-top: 4px;
gap: 8px;
margin-top: 6px;
border-top: 1px dashed #e2e8f0;
padding-top: 6px;
padding-top: 8px;
}
/* 验收凭据条 */
@@ -923,41 +917,69 @@ body {
background: #f0fdf4;
border: 1px solid #bbf7d0;
border-radius: 8px;
padding: 6px 10px;
padding: 8px 10px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-direction: column;
gap: 6px;
}
.worker-order-mobile-acceptance-left {
.worker-order-mobile-acceptance-files,
.worker-order-mobile-draft-files {
display: flex;
align-items: center;
gap: 6px;
gap: 8px;
flex-wrap: wrap;
}
.worker-order-mobile-acceptance-tag {
font-size: 12px;
color: #166534;
font-weight: 600;
}
.worker-order-mobile-acceptance-text {
font-size: 12px;
color: #166534;
font-weight: 500;
line-height: 1.35;
}
.worker-order-mobile-acceptance-time {
font-size: 11px;
color: #15803d;
}
/* 底部操作行 */
.worker-order-mobile-actions-row {
/* 底部操作与备注行 */
.worker-order-mobile-footer-row {
display: flex;
align-items: center;
justify-content: flex-end;
justify-content: space-between;
gap: 8px;
border-top: 1px solid #f1f5f9;
padding-top: 8px;
border-top: 1px dashed #f1f5f9;
padding-top: 10px;
margin-top: 2px;
}
.worker-order-mobile-action-btn {
.worker-order-mobile-note-block {
min-width: 0;
flex: 1;
}
.worker-order-mobile-add-note-btn {
border: 1px dashed #cbd5e1;
background: transparent;
color: #64748b;
border-radius: 6px;
padding: 4px 8px;
font-size: 11px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 4px;
}
.worker-order-mobile-btn-group {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.worker-order-mobile-action-submit {
font-weight: 600;
}
@@ -1626,6 +1648,112 @@ body {
padding: 0 16px;
}
.worker-hall-leaderboard {
display: flex;
flex-direction: column;
gap: 12px;
}
.worker-hall-leaderboard-title-icon {
color: #d97706;
}
.worker-hall-leaderboard-caption {
font-size: 12px;
}
.worker-hall-leaderboard-loading {
display: flex;
justify-content: center;
padding: 36px 0;
}
.worker-hall-leaderboard-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.worker-hall-leaderboard-row {
display: grid;
grid-template-columns: 30px minmax(0, 1fr) auto;
align-items: center;
gap: 10px;
min-height: 56px;
padding: 8px 10px;
border: 1px solid #e2e8f0;
border-radius: 6px;
background: #ffffff;
}
.worker-hall-leaderboard-row.is-current {
border-color: #fb923c;
background: #fff7ed;
}
.worker-hall-leaderboard-rank {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: 50%;
background: #f1f5f9;
color: #475569;
font-size: 12px;
font-weight: 700;
}
.worker-hall-leaderboard-rank.rank-1 {
background: #fef3c7;
color: #a16207;
}
.worker-hall-leaderboard-rank.rank-2 {
background: #e2e8f0;
color: #475569;
}
.worker-hall-leaderboard-rank.rank-3 {
background: #fee2e2;
color: #b45309;
}
.worker-hall-leaderboard-worker {
display: flex;
flex-direction: column;
min-width: 0;
gap: 2px;
}
.worker-hall-leaderboard-worker .ant-typography {
display: block;
font-size: 13px;
}
.worker-hall-leaderboard-worker .ant-typography-secondary {
font-size: 11px;
}
.worker-hall-leaderboard-count {
color: #c2410c;
white-space: nowrap;
}
.worker-hall-leaderboard-current {
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
gap: 4px 12px;
padding-top: 12px;
border-top: 1px solid #e2e8f0;
}
.worker-hall-leaderboard-current .ant-typography:last-child {
grid-column: 1 / -1;
font-size: 12px;
}
/* ===== 打手端响应式断点 ===== */
@media (max-width: 768px) {