Files
SupplierSystem/miniprogram/components/product-trace-panel/index.wxss
T
雨天 8a05a13319
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s
feat(溯源): 报告位置与订单短号对齐配送系统
Web 溯源详情:检验报告移到链路右侧(有报告才两列,无报告链路整宽),图片报告出缩略图可放大;订单行改为客户名称在前、短号在后,链接仍指向完整单号。小程序溯源面板:报告紧跟链路,报告附件缩略图/文档打开,公开链接改复制按钮,链路补时间。
2026-10-22 19:44:50 +08:00

316 lines
4.4 KiB
Plaintext

.product-trace-panel {
min-height: 100vh;
background: #ecfdf5;
padding: 24rpx;
box-sizing: border-box;
}
.product-trace-panel.is-embedded {
min-height: 0;
background: transparent;
padding: 8rpx var(--xd-module-grid-side, 16rpx) calc(120rpx + env(safe-area-inset-bottom));
}
.card {
background: #fff;
border-radius: 16rpx;
padding: 24rpx;
margin-bottom: 20rpx;
}
.search-row {
display: flex;
gap: 12rpx;
align-items: center;
}
.chip-row {
display: flex;
flex-wrap: wrap;
gap: 12rpx;
margin-bottom: 16rpx;
}
.filter-row {
flex-wrap: nowrap;
align-items: center;
}
.chip {
flex-shrink: 0;
padding: 12rpx 20rpx;
border-radius: 999rpx;
font-size: 24rpx;
color: #52525b;
background: #fff;
border: 1px solid #e4e4e7;
}
.chip.active {
background: #059669;
color: #fff;
border-color: #059669;
}
.input {
flex: 1;
border: 1px solid #cbd5e1;
border-radius: 12rpx;
padding: 16rpx;
font-size: 28rpx;
}
.btn {
background: #059669;
color: #fff;
border-radius: 12rpx;
padding: 0 24rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 26rpx;
}
.btn-scan {
background: #0f766e;
}
.title {
font-size: 32rpx;
font-weight: 600;
color: #0f172a;
}
.sub-title {
font-size: 28rpx;
}
.hint {
margin-top: 12rpx;
}
.timeline {
margin-top: 24rpx;
}
.mono {
font-family: monospace;
font-size: 22rpx;
color: #64748b;
margin-top: 8rpx;
}
.meta {
margin-top: 16rpx;
font-size: 26rpx;
color: #334155;
line-height: 1.6;
}
.link-actions {
margin-top: 16rpx;
}
.btn-copy {
display: inline-block;
background: #ecfdf5;
color: #047857;
border: 1px solid #a7f3d0;
border-radius: 10rpx;
padding: 0 20rpx;
height: 60rpx;
line-height: 58rpx;
font-size: 24rpx;
}
.btn-copy::after {
border: none;
}
.hit {
padding: 16rpx 0;
border-bottom: 1px solid #e2e8f0;
}
.hit.is-open {
background: #f0fdf4;
margin: 0 -16rpx;
padding: 16rpx;
border-radius: 12rpx;
}
.hit-head {
padding: 0;
}
.hit-detail {
margin-top: 16rpx;
padding-top: 12rpx;
border-top: 1px solid #d1fae5;
}
.hit:last-child {
border-bottom: none;
}
.step {
border-left: 4rpx solid #10b981;
padding-left: 16rpx;
margin-bottom: 16rpx;
}
.photos {
display: flex;
flex-wrap: wrap;
gap: 12rpx;
margin-top: 12rpx;
}
.photo-section {
margin-top: 24rpx;
}
.photo {
width: 160rpx;
height: 160rpx;
border-radius: 12rpx;
}
.photo-item {
display: flex;
flex-direction: column;
align-items: center;
width: 160rpx;
}
.photo-time {
margin-top: 6rpx;
font-size: 20rpx;
line-height: 1.3;
color: #64748b;
text-align: center;
}
.report-files {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 12rpx;
margin-top: 12rpx;
}
.report-thumb {
width: 140rpx;
height: 140rpx;
border-radius: 12rpx;
background: #f1f5f9;
}
.report-doc {
display: inline-flex;
align-items: center;
gap: 10rpx;
padding: 0 20rpx;
height: 64rpx;
border-radius: 10rpx;
border: 1px solid #a7f3d0;
background: #ecfdf5;
color: #047857;
font-size: 24rpx;
}
.report-doc-ext {
font-size: 20rpx;
font-weight: 600;
color: #059669;
}
.muted {
color: #64748b;
font-size: 24rpx;
}
.error {
color: #b91c1c;
font-size: 26rpx;
}
.chip-custom {
display: flex;
align-items: center;
gap: 8rpx;
min-width: 0;
}
.chip-range {
font-size: 22rpx;
opacity: 0.92;
}
.sheet-mask {
position: fixed;
inset: 0;
z-index: 10000;
display: flex;
align-items: flex-end;
justify-content: center;
background: rgba(15, 23, 42, 0.48);
}
.sheet-card {
width: 100%;
padding: 32rpx 24rpx calc(24rpx + env(safe-area-inset-bottom));
border-radius: 28rpx 28rpx 0 0;
background: #fff;
box-sizing: border-box;
}
.sheet-title {
font-size: 32rpx;
font-weight: 600;
color: #0f172a;
margin-bottom: 24rpx;
}
.range-fields {
display: flex;
gap: 16rpx;
}
.range-field {
flex: 1;
display: flex;
align-items: center;
gap: 12rpx;
padding: 20rpx 20rpx;
border-radius: 16rpx;
border: 1px solid #e4e4e7;
font-size: 28rpx;
color: #0f172a;
}
.range-label {
color: #64748b;
font-size: 24rpx;
}
.sheet-actions {
display: flex;
justify-content: flex-end;
gap: 16rpx;
margin-top: 28rpx;
}
.sheet-btn {
background: #059669;
color: #fff;
border-radius: 12rpx;
padding: 0 32rpx;
height: 72rpx;
line-height: 72rpx;
font-size: 28rpx;
}
.sheet-btn::after {
border: none;
}