Files
SupplierSystem/miniprogram/components/delivery-panel/index.wxss
T
Ubuntu deb3e72750
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
chore: 以 AI 生鲜配送系统 当前版本作为 SupplierSystem 起点
来源仓库:jxc/ai-fresh-delivery
来源提交:f0b1a180e2deb7e4673b9d1c8542619f7bc0f73d
快照树:  09f679334ff38f0ff25e907961c94a8223bcaedd(与来源 HEAD 工作树逐字节一致,3801 个文件)

按约定本仓库不带任何历史提交:来源仓库的历史中含真实凭据
(生产 SSH 私钥 deploy/id_rsa_tencent、server/.env、.env.tencent/.env.production/.env.gitea、
deploy/小程序AppSecret.txt,其中 MP_APPSECRET / S3 AccessKey 经哈希比对与线上同值),
整包推送会把这些凭据永久带入本仓库,故只取「当前版本」的单提交快照。
供应商系统后续开发自本提交开始。
2026-10-08 17:35:43 +08:00

746 lines
11 KiB
Plaintext

.delivery-page {
position: relative;
min-height: 0;
background: #f3faf6;
padding-bottom: calc(32rpx + env(safe-area-inset-bottom));
overflow: hidden;
}
.page-atmosphere {
position: absolute;
left: 0;
right: 0;
top: 0;
height: 280rpx;
pointer-events: none;
z-index: 0;
background:
radial-gradient(ellipse 70% 80% at 90% 0%, rgba(16, 185, 129, 0.16) 0%, transparent 60%),
linear-gradient(180deg, #d1fae5 0%, rgba(243, 250, 246, 0) 100%);
}
.kpi-card,
.main-panel {
position: relative;
z-index: 1;
}
.kpi-card {
margin: 20rpx 24rpx 0;
background: linear-gradient(135deg, #047857 0%, #059669 55%, #10b981 100%);
border-radius: 28rpx;
padding: 28rpx 16rpx;
display: flex;
align-items: center;
color: #fff;
box-shadow: 0 16rpx 40rpx rgba(5, 150, 105, 0.28);
}
.kpi-cell {
flex: 1;
text-align: center;
}
.kpi-num {
font-size: 44rpx;
font-weight: 700;
font-variant-numeric: tabular-nums;
line-height: 1.1;
}
.kpi-label {
margin-top: 8rpx;
font-size: 22rpx;
opacity: 0.9;
}
.kpi-divider {
width: 1px;
height: 56rpx;
background: rgba(255, 255, 255, 0.25);
}
.delivery-map-card {
position: relative;
z-index: 1;
margin: 12rpx 16rpx 0;
overflow: hidden;
border-radius: 20rpx;
border: 1px solid #e7efea;
background: #fff;
}
.delivery-map {
width: 100%;
height: 320rpx;
}
.route-next {
margin: 12rpx 16rpx 16rpx;
padding: 12rpx 16rpx;
border-radius: 999rpx;
background: #ecfdf5;
color: #047857;
font-size: 24rpx;
font-weight: 600;
text-align: center;
}
.main-panel {
margin: 12rpx 16rpx 0;
padding: 16rpx 16rpx 12rpx;
background: #fff;
border: 1px solid #e7efea;
border-radius: 20rpx;
}
.panel-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12rpx;
margin-bottom: 8rpx;
}
.panel-head-left {
min-width: 0;
flex: 1;
}
.section-head {
display: flex;
align-items: center;
gap: 12rpx;
}
.section-mark {
width: 8rpx;
height: 28rpx;
border-radius: 8rpx;
background: linear-gradient(180deg, #10b981 0%, #047857 100%);
flex-shrink: 0;
}
.section-title {
font-size: 28rpx;
font-weight: 700;
color: #0a0a0b;
}
.refresh-btn {
display: inline-flex;
align-items: center;
gap: 6rpx;
font-size: 24rpx;
font-weight: 600;
color: #047857;
flex-shrink: 0;
}
.filter-block {
margin-bottom: 8rpx;
}
.chip-row {
display: flex;
flex-wrap: wrap;
gap: 8rpx;
}
.chip {
padding: 8rpx 16rpx;
border-radius: 8rpx;
background: #f4f4f5;
color: #52525b;
font-size: 22rpx;
font-weight: 500;
}
.chip.active {
background: #059669;
color: #fff;
font-weight: 600;
}
.range-bar {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
margin-top: 8rpx;
height: 56rpx;
border: 1px solid #d1fae5;
border-radius: 8rpx;
background: #f8fffb;
box-sizing: border-box;
overflow: hidden;
}
.range-bar-cell {
flex: 1;
min-width: 0;
height: 56rpx;
}
.range-bar-picker {
display: block;
width: 100%;
height: 56rpx;
}
.range-bar-inner {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
gap: 6rpx;
height: 56rpx;
padding: 0 12rpx;
box-sizing: border-box;
}
.range-bar-text {
font-size: 22rpx;
font-weight: 600;
color: #065f46;
line-height: 1;
white-space: nowrap;
}
.range-bar-split {
flex-shrink: 0;
height: 28rpx;
padding: 0 10rpx;
border-left: 1px solid #bbf7d0;
border-right: 1px solid #bbf7d0;
font-size: 20rpx;
color: #047857;
display: flex;
align-items: center;
}
.batch-start-btn {
width: 100%;
margin-bottom: 8rpx;
height: 64rpx !important;
line-height: 64rpx !important;
padding: 0 !important;
border-radius: 12rpx !important;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
font-weight: 700;
}
.batch-start-btn::after {
border: none;
}
.error-box {
margin-bottom: 8rpx;
padding: 10rpx 12rpx;
border-radius: 12rpx;
background: #fef2f2;
color: #ef4444;
font-size: 24rpx;
}
.state-box {
padding: 32rpx 16rpx;
display: flex;
justify-content: center;
}
.task-card {
margin-top: 0;
padding: 12rpx 0;
background: #fff;
border: none;
border-bottom: 1rpx solid #f1f5f9;
border-radius: 0;
box-shadow: none;
}
.task-card--active {
border-color: #f1f5f9;
}
.task-card--done {
opacity: 0.72;
}
.task-head {
display: flex;
align-items: center;
gap: 10rpx;
}
.task-index {
width: 40rpx;
height: 40rpx;
border-radius: 8rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 24rpx;
font-weight: 700;
flex-shrink: 0;
background: #fff7ed;
color: #d97706;
}
.task-index.on {
background: #ecfdf5;
color: #059669;
}
.task-index.done {
background: #f4f4f5;
color: #a1a1aa;
}
.task-index.wait {
background: #fffbeb;
color: #d97706;
}
.task-main {
flex: 1;
min-width: 0;
}
.card-r1,
.card-r2 {
display: flex;
align-items: center;
gap: 8rpx;
min-width: 0;
}
.card-r2 {
margin-top: 4rpx;
flex-direction: column;
align-items: stretch;
gap: 4rpx;
}
.task-title {
flex: 1;
min-width: 0;
font-size: 28rpx;
font-weight: 700;
color: #0a0a0b;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.task-status {
flex-shrink: 0;
font-size: 22rpx;
font-weight: 600;
padding: 2rpx 8rpx;
border-radius: 4rpx;
background: #f4f4f5;
color: #71717a;
}
.task-status.active {
background: #ecfdf5;
color: #047857;
}
.task-status.wait {
background: #fffbeb;
color: #d97706;
}
.task-status.done {
background: #f4f4f5;
color: #a1a1aa;
}
.task-address-row {
display: flex;
align-items: flex-start;
gap: 12rpx;
}
.task-address {
display: block;
flex: 1;
min-width: 0;
font-size: 22rpx;
color: #a1a1aa;
line-height: 1.45;
white-space: normal;
word-break: break-all;
}
.task-nav {
flex-shrink: 0;
padding: 4rpx 14rpx;
border-radius: 999rpx;
background: #ecfdf5;
color: #047857;
font-size: 22rpx;
line-height: 1.4;
}
.task-meta {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8rpx;
min-width: 0;
}
.task-slot,
.task-code {
flex-shrink: 0;
font-size: 22rpx;
color: #a1a1aa;
}
.loading-panel {
margin-top: 8rpx;
padding: 8rpx 0 0;
background: transparent;
border: none;
}
.load-toolbar {
display: flex;
align-items: center;
gap: 8rpx;
margin-bottom: 8rpx;
}
.loading-progress {
flex: 1;
min-width: 0;
font-size: 24rpx;
font-weight: 600;
color: #52525b;
}
.mode-chip {
flex-shrink: 0;
box-sizing: border-box;
height: 48rpx;
line-height: 46rpx;
padding: 0 14rpx;
text-align: center;
border-radius: 8rpx;
font-size: 24rpx;
font-weight: 600;
color: #52525b;
background: #fff;
border: 1px solid #e4e4e7;
}
.mode-chip.active {
background: #059669;
color: #fff;
border-color: #059669;
box-shadow: none;
}
.scan-row {
margin-bottom: 8rpx;
}
.scan-row--dock {
position: sticky;
top: 0;
z-index: 8;
margin: 0 0 16rpx;
padding-bottom: 4rpx;
background: #fff;
}
.scan-camera {
width: 100%;
height: 400rpx;
border-radius: 12rpx;
overflow: hidden;
background: #0a0a0b;
}
.scan-camera-hint {
margin-top: 8rpx;
font-size: 22rpx;
color: #71717a;
text-align: center;
}
.scan-tip {
margin-top: 6rpx;
font-size: 22rpx;
color: #059669;
text-align: center;
}
.scan-tip.is-error {
color: #b91c1c;
}
.loading-empty {
padding: 16rpx 8rpx;
text-align: center;
color: #a1a1aa;
font-size: 22rpx;
}
.loading-items {
display: flex;
flex-direction: column;
gap: 0;
}
.loading-category {
margin-top: 4rpx;
padding: 4rpx 0;
font-size: 24rpx;
font-weight: 700;
color: #047857;
}
.loading-item {
display: flex;
align-items: flex-start;
gap: 8rpx;
padding: 10rpx 0;
border-bottom: 1rpx solid #f1f5f9;
}
.loading-item-seq {
width: 32rpx;
flex-shrink: 0;
padding-top: 8rpx;
text-align: center;
font-size: 22rpx;
font-weight: 600;
color: #a1a1aa;
}
.loading-item-body {
flex: 1;
min-width: 0;
}
.loading-card-r1,
.loading-card-r2 {
display: flex;
align-items: center;
gap: 8rpx;
min-width: 0;
}
.loading-card-r2 {
margin-top: 8rpx;
flex-wrap: wrap;
}
.loading-item-name {
flex: 1;
min-width: 0;
font-size: 28rpx;
font-weight: 700;
color: #0a0a0b;
line-height: 1.25;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.loading-qty-meta {
flex-shrink: 0;
font-size: 22rpx;
color: #71717a;
white-space: nowrap;
}
.loading-unit-wrap {
flex-shrink: 0;
}
.loading-unit-chip {
box-sizing: border-box;
height: 48rpx;
line-height: 48rpx;
padding: 0 12rpx;
border-radius: 10rpx;
background: #f4f4f5;
color: #0a0a0b;
font-size: 24rpx;
font-weight: 600;
white-space: nowrap;
}
.loading-self-tag {
margin-left: 8rpx;
padding: 0 8rpx;
border-radius: 6rpx;
font-size: 20rpx;
font-weight: 600;
color: #b45309;
background: #fef3c7;
vertical-align: middle;
}
.loading-extra-tag {
margin-left: 8rpx;
padding: 0 8rpx;
border-radius: 6rpx;
font-size: 20rpx;
font-weight: 600;
color: #1d4ed8;
background: #dbeafe;
vertical-align: middle;
}
.loading-qty-chip {
width: 264rpx;
max-width: 46%;
flex: 0 1 264rpx;
min-width: 132rpx;
height: 48rpx;
border-radius: 10rpx;
background: #f4f4f5;
overflow: hidden;
}
.loading-qty-input {
width: 100%;
height: 48rpx;
padding: 0 8rpx;
box-sizing: border-box;
font-size: 26rpx;
font-weight: 600;
font-variant-numeric: tabular-nums;
text-align: center;
}
.btn-pick,
.btn-stage {
flex-shrink: 0;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
height: 48rpx;
padding: 0 16rpx;
border-radius: 999rpx;
font-size: 22rpx;
font-weight: 600;
}
.btn-pick {
background: #059669;
color: #fff;
}
.btn-stage {
background: #fff;
color: #059669;
border: 2rpx solid #059669;
}
.loading-unconfirm {
color: #b91c1c;
border-color: #fecaca;
}
.is-disabled {
opacity: 0.45;
pointer-events: none;
}
.loading-photo-count {
font-size: 20rpx;
color: #0369a1;
}
.loading-photo-need {
font-size: 20rpx;
color: #b45309;
font-weight: 600;
white-space: nowrap;
}
.loading-done-actions {
display: flex;
flex-direction: row;
align-items: center;
gap: 8rpx;
}
.loading-done-tag {
font-size: 22rpx;
font-weight: 600;
text-align: right;
line-height: 1.2;
}
.loading-pending-tag {
font-size: 20rpx;
color: #a1a1aa;
text-align: right;
line-height: 48rpx;
}
.loading-scan-actions {
display: flex;
flex-direction: row;
align-items: center;
}
.photo-tip {
margin-top: 8rpx;
padding: 8rpx 10rpx;
border-radius: 8rpx;
background: #fffbeb;
color: #b45309;
font-size: 20rpx;
}
.task-btn {
margin-top: 8rpx;
height: 56rpx !important;
line-height: 56rpx !important;
padding: 0 !important;
border-radius: 8rpx !important;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
font-weight: 700;
font-size: 28rpx;
}
.task-btn::after {
border: none;
}
.anim-rise {
animation: rise-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.anim-rise--delay {
animation-delay: 0.08s;
}
@keyframes rise-in {
from {
opacity: 0;
transform: translateY(18rpx);
}
to {
opacity: 1;
transform: translateY(0);
}
}