初步优化手机端ui

This commit is contained in:
yml2213
2026-08-16 10:33:45 +08:00
parent ad84388450
commit 10ae3d01ee
6 changed files with 1316 additions and 338 deletions
+592 -1
View File
@@ -2356,10 +2356,13 @@ select {
margin: 0;
}
.worker-hall-card-link {
.worker-hall-card-link,
.worker-hall-card-title-text {
display: block;
max-width: 100%;
font-weight: 600;
color: #0f172a;
font-size: 15px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -2653,3 +2656,591 @@ select {
border-left: 0;
}
}
/* ==========================================================================
打手端 (Worker Portal) 移动端专属响应式自适应样式
========================================================================== */
html,
body {
overflow-x: hidden;
max-width: 100vw;
}
.worker-mobile-shell {
width: 100%;
max-width: 100vw;
min-height: 100vh;
overflow-x: hidden;
display: flex;
flex-direction: column;
background: #f1f5f9;
position: relative;
}
.worker-mobile-header {
position: sticky;
top: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
background: #ffffff;
border-bottom: 1px solid #e2e8f0;
box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.worker-mobile-brand {
display: flex;
align-items: center;
gap: 8px;
}
.worker-mobile-brand-badge {
width: 26px;
height: 26px;
background: var(--theme-primary);
color: #ffffff;
border-radius: 6px;
display: grid;
place-items: center;
font-weight: 700;
font-size: 13px;
box-shadow: 0 2px 6px rgba(255, 106, 0, 0.28);
}
.worker-mobile-brand-text strong {
font-size: 15px;
color: #0f172a;
}
.worker-mobile-user-area {
display: flex;
align-items: center;
gap: 6px;
}
.worker-mobile-status-tag {
margin: 0;
font-size: 11px;
}
.worker-mobile-username {
font-size: 13px;
font-weight: 500;
color: #334155;
max-width: 90px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.worker-mobile-logout-btn {
color: #94a3b8;
padding: 4px;
}
.worker-mobile-content {
flex: 1;
min-height: 0;
width: 100%;
max-width: 100vw;
box-sizing: border-box;
padding: 10px 10px calc(65px + env(safe-area-inset-bottom, 0px)) 10px;
}
.worker-mobile-content .ant-card {
border-radius: 12px;
}
.worker-mobile-content .ant-card .ant-card-body {
padding: 12px;
}
.worker-mobile-tabbar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
width: 100%;
max-width: 100vw;
height: calc(54px + env(safe-area-inset-bottom, 0px));
box-sizing: border-box;
z-index: 999;
display: flex;
align-items: stretch;
justify-content: space-around;
background: #ffffff;
border-top: 1px solid #e2e8f0;
padding-bottom: env(safe-area-inset-bottom, 0px);
box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.06);
}
.worker-mobile-tab-item {
flex: 1 1 0;
width: 33.333%;
border: none;
background: transparent;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
cursor: pointer;
color: #64748b;
font-size: 11px;
padding: 4px 0;
-webkit-tap-highlight-color: transparent;
transition: color 0.15s ease;
}
.worker-mobile-tab-item.active {
color: var(--theme-primary);
font-weight: 600;
}
.worker-mobile-tab-icon {
font-size: 18px;
line-height: 1;
}
.worker-mobile-tab-label {
font-size: 11px;
line-height: 1;
}
/* ==========================================================================
移动端 我的订单 (Worker Orders Mobile Page)
========================================================================== */
.worker-orders-mobile-page {
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
max-width: 100%;
box-sizing: border-box;
}
/* 顶部滑动状态胶囊栏 */
.worker-orders-mobile-status-bar {
display: flex;
align-items: center;
gap: 6px;
overflow-x: auto;
padding: 2px 2px 6px 2px;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.worker-orders-mobile-status-bar::-webkit-scrollbar {
display: none;
}
.worker-orders-status-pill {
flex-shrink: 0;
border: 1px solid #e2e8f0;
background: #ffffff;
color: #475569;
padding: 5px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 500;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 4px;
-webkit-tap-highlight-color: transparent;
transition: all 0.15s ease;
}
.worker-orders-status-pill.active {
background: var(--theme-primary);
color: #ffffff;
border-color: var(--theme-primary);
box-shadow: 0 2px 6px rgba(255, 106, 0, 0.25);
}
.worker-orders-status-pill-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: 8px;
font-size: 10px;
font-weight: 700;
background: #f1f5f9;
color: #475569;
}
.worker-orders-status-pill.active .worker-orders-status-pill-count {
background: rgba(255, 255, 255, 0.28);
color: #ffffff;
}
/* 搜索与快捷刷新栏 */
.worker-orders-mobile-search-row {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
}
.worker-orders-mobile-search-input {
flex: 1;
}
/* 订单卡片列表 */
.worker-orders-mobile-list {
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
}
.worker-order-mobile-card {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 12px 14px;
display: flex;
flex-direction: column;
gap: 8px;
box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
/* 头部:分类 + 订单号 + 状态 */
.worker-order-mobile-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding-bottom: 6px;
border-bottom: 1px solid #f1f5f9;
}
.worker-order-mobile-header-left {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
flex: 1;
}
.worker-order-mobile-tag {
margin: 0;
font-size: 11px;
padding: 0 6px;
line-height: 18px;
}
.worker-order-mobile-orderno-text {
font-size: 12px;
color: #64748b;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.worker-order-mobile-header-right {
display: flex;
align-items: center;
gap: 4px;
flex-shrink: 0;
}
.worker-order-mobile-header-right .ant-tag {
margin: 0;
}
/* 商品名称与奖励 */
.worker-order-mobile-main-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
}
.worker-order-mobile-product-title {
font-size: 15px;
font-weight: 700;
color: #0f172a;
line-height: 1.35;
flex: 1;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.worker-order-mobile-price-badge {
display: flex;
flex-direction: column;
align-items: flex-end;
flex-shrink: 0;
line-height: 1;
}
.worker-order-mobile-price-label {
font-size: 10px;
color: #9a3412;
margin-bottom: 2px;
}
.worker-order-mobile-price-num {
font-size: 18px;
color: #ea580c;
font-weight: 800;
}
/* 辅助信息行 */
.worker-order-mobile-sub-row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
font-size: 11px;
color: #64748b;
}
.worker-order-mobile-sub-item {
display: inline-flex;
}
.worker-order-mobile-sub-time {
margin-left: auto;
color: #94a3b8;
}
/* 问题单提示 */
.worker-order-mobile-problem-box {
background: #fef2f2;
border: 1px solid #fecaca;
border-radius: 6px;
padding: 6px 10px;
font-size: 12px;
color: #b91c1c;
line-height: 1.4;
}
/* 资料凭据区 */
.worker-order-mobile-credentials-box {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 8px 10px;
display: flex;
flex-direction: column;
gap: 6px;
}
.worker-order-mobile-credentials-grid {
display: grid;
gap: 3px;
font-size: 12px;
}
.worker-order-mobile-credential-line {
display: flex;
align-items: baseline;
gap: 6px;
line-height: 1.4;
}
.worker-order-mobile-credential-label {
color: #64748b;
font-size: 12px;
flex-shrink: 0;
}
.worker-order-mobile-credential-val {
color: #1e293b;
font-weight: 600;
word-break: break-all;
}
.worker-order-mobile-screenshots-row {
display: flex;
align-items: center;
gap: 6px;
margin-top: 2px;
}
.worker-order-mobile-copy-toolbar {
display: flex;
gap: 6px;
margin-top: 4px;
border-top: 1px dashed #e2e8f0;
padding-top: 6px;
}
/* 验收凭据条 */
.worker-order-mobile-acceptance-strip {
background: #f0fdf4;
border: 1px solid #bbf7d0;
border-radius: 8px;
padding: 6px 10px;
display: flex;
flex-direction: column;
gap: 4px;
font-size: 12px;
}
.worker-order-mobile-acceptance-files,
.worker-order-mobile-draft-files {
display: flex;
align-items: center;
gap: 6px;
}
.worker-order-mobile-acceptance-tag {
color: #15803d;
font-size: 11px;
font-weight: 600;
}
.worker-order-mobile-acceptance-text {
color: #374151;
font-size: 11px;
}
/* 底部操作行 */
.worker-order-mobile-footer-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding-top: 6px;
border-top: 1px solid #f1f5f9;
}
.worker-order-mobile-note-block {
min-width: 0;
flex: 1;
}
.worker-order-mobile-add-note-btn {
border: 1px dashed #cbd5e1;
background: transparent;
color: #64748b;
font-size: 12px;
padding: 3px 8px;
border-radius: 6px;
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;
}
.worker-orders-mobile-pagination {
display: flex;
justify-content: center;
padding: 10px 0 6px 0;
}
/* 移动端接单大厅顶部控制栏 */
.worker-page-head-title-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
width: 100%;
}
.worker-page-head-title-row h3 {
margin: 0;
}
.worker-hall-head-controls {
display: flex;
align-items: center;
gap: 8px;
}
.worker-hall-autorefresh-box {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 8px;
background: #f1f5f9;
border-radius: 6px;
font-size: 12px;
color: #475569;
}
.worker-hall-autorefresh-label {
font-size: 12px;
white-space: nowrap;
}
.worker-hall-search-bar {
width: 100%;
}
/* 移动端个人中心资金明细/申请记录卡片 */
.worker-profile-mobile-records {
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
}
.worker-profile-record-card {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 10px;
padding: 12px;
display: flex;
flex-direction: column;
gap: 6px;
font-size: 12px;
}
.worker-profile-record-row-head {
display: flex;
align-items: center;
justify-content: space-between;
}
.worker-profile-record-row-meta {
display: flex;
flex-wrap: wrap;
gap: 12px;
color: #64748b;
font-size: 12px;
}
.worker-profile-record-note {
color: #334155;
font-size: 12px;
background: #f8fafc;
padding: 4px 8px;
border-radius: 4px;
}
.worker-profile-record-sub {
color: #64748b;
font-size: 11px;
}
.worker-profile-record-time {
color: #94a3b8;
font-size: 11px;
margin-top: 2px;
}