开发者 2026-10-15(附截图):「放在配送按钮的右边,而不是新开一行给他」。\n\n- 卡片操作行改为「左侧组 .actions-main(配送/推进 + 送货单图片)+ 右侧详情」;\n 去掉原来单独一行的 .actions--note 块。\n- 契约测试加一条「同一行」断言(.actions-main 存在、actions--note 不存在);\n 设计文 §3.2 与修订记录 v3 同步。未改文案。
485 lines
7.5 KiB
Plaintext
485 lines
7.5 KiB
Plaintext
.page {
|
|
position: relative;
|
|
min-height: 100vh;
|
|
padding: 8rpx 0 40rpx;
|
|
box-sizing: border-box;
|
|
background: #f3faf6;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.page.is-embedded {
|
|
min-height: 0;
|
|
overflow: visible;
|
|
background: transparent;
|
|
}
|
|
|
|
.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%);
|
|
}
|
|
|
|
.filters,
|
|
.state-box,
|
|
.order-list {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.card {
|
|
background: #fff;
|
|
border-radius: 28rpx;
|
|
padding: 28rpx 24rpx;
|
|
margin: 20rpx 24rpx 0;
|
|
border: 1px solid #e7efea;
|
|
box-shadow: 0 10rpx 28rpx rgba(6, 78, 59, 0.05);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.filters {
|
|
margin-top: 12rpx;
|
|
padding: 20rpx 20rpx 16rpx;
|
|
border-radius: 24rpx;
|
|
}
|
|
|
|
.filter-block {
|
|
margin-bottom: 12rpx;
|
|
}
|
|
|
|
.filter-label {
|
|
font-size: 22rpx;
|
|
font-weight: 600;
|
|
color: #71717a;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
|
|
.chip-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.chip {
|
|
padding: 8rpx 18rpx;
|
|
border-radius: 999rpx;
|
|
background: #f4f4f5;
|
|
color: #52525b;
|
|
font-size: 22rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.chip.active {
|
|
background: #059669;
|
|
color: #fff;
|
|
font-weight: 600;
|
|
box-shadow: 0 8rpx 18rpx rgba(5, 150, 105, 0.22);
|
|
}
|
|
|
|
.range-bar {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
margin-top: 12rpx;
|
|
height: 72rpx;
|
|
border: 1px solid #d1fae5;
|
|
border-radius: 18rpx;
|
|
background: #f8fffb;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.range-bar-cell {
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 72rpx;
|
|
}
|
|
|
|
.range-bar-cell picker {
|
|
display: block;
|
|
width: 100%;
|
|
height: 72rpx;
|
|
}
|
|
|
|
.range-bar-inner {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8rpx;
|
|
height: 72rpx;
|
|
padding: 0 16rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.range-bar-text {
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
color: #065f46;
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.range-bar-split {
|
|
flex-shrink: 0;
|
|
height: 36rpx;
|
|
padding: 0 12rpx;
|
|
border-left: 1px solid #bbf7d0;
|
|
border-right: 1px solid #bbf7d0;
|
|
font-size: 20rpx;
|
|
color: #059669;
|
|
line-height: 36rpx;
|
|
}
|
|
|
|
.search-row {
|
|
display: flex;
|
|
gap: 12rpx;
|
|
align-items: center;
|
|
margin-top: 4rpx;
|
|
}
|
|
|
|
.search-box {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
background: #fafafa;
|
|
border: 1px solid #e4e4e7;
|
|
border-radius: 18rpx;
|
|
padding: 0 20rpx;
|
|
height: 72rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.search-input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 72rpx;
|
|
font-size: 26rpx;
|
|
color: #0a0a0b;
|
|
background: transparent;
|
|
}
|
|
|
|
.search-btn {
|
|
margin: 0;
|
|
background: #059669;
|
|
color: #fff;
|
|
border-radius: 16rpx !important;
|
|
font-weight: 600;
|
|
padding: 0 22rpx !important;
|
|
height: 72rpx;
|
|
line-height: 72rpx;
|
|
}
|
|
|
|
.search-btn::after {
|
|
border: none;
|
|
}
|
|
|
|
.stats {
|
|
margin-top: 12rpx;
|
|
padding: 10rpx 14rpx;
|
|
border-radius: 14rpx;
|
|
background: #ecfdf5;
|
|
border: 1px solid #d1fae5;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.stats-item {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 10rpx;
|
|
}
|
|
|
|
.stats-label {
|
|
font-size: 22rpx;
|
|
color: #059669;
|
|
}
|
|
|
|
.stats-value {
|
|
font-size: 28rpx;
|
|
font-weight: 700;
|
|
color: #047857;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.stats-amount {
|
|
font-size: 30rpx;
|
|
}
|
|
|
|
.stats-divider {
|
|
width: 1px;
|
|
height: 28rpx;
|
|
background: #a7f3d0;
|
|
}
|
|
|
|
.order-list {
|
|
padding-bottom: 8rpx;
|
|
}
|
|
|
|
.order-card {
|
|
margin-top: 12rpx;
|
|
padding: 16rpx 18rpx 14rpx;
|
|
border-radius: 20rpx;
|
|
}
|
|
|
|
.order-title-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.order-sub-row {
|
|
margin-top: 6rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.order-code-wrap {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6rpx;
|
|
}
|
|
|
|
.order-code {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font-weight: 500;
|
|
font-size: 20rpx;
|
|
color: #71717a;
|
|
line-height: 1.3;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.status-tag {
|
|
flex-shrink: 0;
|
|
font-size: 20rpx;
|
|
font-weight: 600;
|
|
padding: 2rpx 10rpx;
|
|
border-radius: 999rpx;
|
|
background: #f4f4f5;
|
|
color: #52525b;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.status-20 {
|
|
background: #fffbeb;
|
|
color: #d97706;
|
|
border: 1px solid #fde68a;
|
|
}
|
|
|
|
.status-30,
|
|
.status-40,
|
|
.status-45 {
|
|
background: #ecfdf5;
|
|
color: #047857;
|
|
border: 1px solid #a7f3d0;
|
|
}
|
|
|
|
.status-50,
|
|
.status-60 {
|
|
background: #f0fdfa;
|
|
color: #0f766e;
|
|
border: 1px solid #99f6e4;
|
|
}
|
|
|
|
.status-90 {
|
|
background: #ecfdf5;
|
|
color: #047857;
|
|
border: 1px solid #a7f3d0;
|
|
}
|
|
|
|
.customer-row {
|
|
margin-top: 16rpx;
|
|
}
|
|
|
|
.customer {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font-size: 28rpx;
|
|
font-weight: 700;
|
|
color: #0a0a0b;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.meta-row {
|
|
margin-top: 6rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10rpx;
|
|
min-width: 0;
|
|
}
|
|
|
|
.meta-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6rpx;
|
|
font-size: 22rpx;
|
|
color: #71717a;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.meta-amount {
|
|
font-size: 28rpx;
|
|
font-weight: 700;
|
|
color: #047857;
|
|
font-variant-numeric: tabular-nums;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.hint {
|
|
margin-top: 14rpx;
|
|
padding: 12rpx 14rpx;
|
|
border-radius: 14rpx;
|
|
background: #fffbeb;
|
|
border: 1px solid #fde68a;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8rpx;
|
|
font-size: 22rpx;
|
|
color: #b45309;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.hint--inline {
|
|
margin-top: 0;
|
|
padding: 2rpx 10rpx;
|
|
border-radius: 999rpx;
|
|
align-items: center;
|
|
flex: 1;
|
|
min-width: 0;
|
|
font-size: 20rpx;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.hint--inline text {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12rpx;
|
|
margin-top: 10rpx;
|
|
padding-top: 10rpx;
|
|
border-top: 1px solid #f1f5f3;
|
|
}
|
|
|
|
.actions-only-detail {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.action-btn {
|
|
margin: 0;
|
|
border-radius: 999rpx !important;
|
|
padding: 0 20rpx !important;
|
|
height: 52rpx !important;
|
|
line-height: 52rpx !important;
|
|
font-size: 22rpx !important;
|
|
font-weight: 600;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.action-btn::after {
|
|
border: none;
|
|
}
|
|
|
|
/* 送货单图片:放在卡片操作行的**左侧组**(配送/推进按钮右边,不新开一行)
|
|
⇒ 左组用 .actions-main 包住,右侧保留「详情 >」 */
|
|
.actions-main {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
min-width: 0;
|
|
}
|
|
|
|
.note-btn {
|
|
margin: 0;
|
|
border-radius: 999rpx !important;
|
|
padding: 0 20rpx !important;
|
|
height: 52rpx !important;
|
|
line-height: 50rpx !important;
|
|
font-size: 22rpx !important;
|
|
font-weight: 600;
|
|
color: #059669;
|
|
background: #fff;
|
|
border: 1px solid #059669;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.note-btn::after {
|
|
border: none;
|
|
}
|
|
|
|
.print-canvas {
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
width: 10px;
|
|
height: 10px;
|
|
opacity: 0;
|
|
}
|
|
|
|
.detail-entry {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4rpx;
|
|
font-size: 22rpx;
|
|
color: #a1a1aa;
|
|
}
|
|
|
|
.state-box {
|
|
padding: 80rpx 32rpx;
|
|
display: flex;
|
|
justify-content: center;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.error-box {
|
|
color: #ef4444;
|
|
font-size: 26rpx;
|
|
}
|
|
|
|
.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);
|
|
}
|
|
}
|