Files
Ubuntu 41d66aca6f feat(客户商城): 下单客户商品溯源模块
order_customer 只能看自己 customer_portal_users 绑定订单;首页内嵌 customer-trace-panel;不返回内部字段。
2026-10-28 21:34:09 +08:00

263 lines
4.1 KiB
Plaintext

/* 客户溯源面板:订单列表 + 详情就地展开(2026-10-24,替换原两个二级页) */
.customer-trace-panel {
min-height: 100vh;
background: #f5f7f6;
padding: 20rpx;
box-sizing: border-box;
}
.customer-trace-panel.is-embedded {
min-height: 0;
background: transparent;
padding: 8rpx var(--xd-module-grid-side, 16rpx) calc(170rpx + env(safe-area-inset-bottom));
}
.filter-card {
background: #fff;
border-radius: 16rpx;
padding: 20rpx;
margin-bottom: 16rpx;
}
.date-row {
display: flex;
align-items: center;
gap: 12rpx;
}
.date-pill {
background: #f3f6f4;
color: #1f2937;
border-radius: 10rpx;
padding: 10rpx 16rpx;
font-size: 26rpx;
}
.date-sep {
color: #9ca3af;
font-size: 24rpx;
}
.search-row {
display: flex;
align-items: center;
gap: 12rpx;
margin-top: 16rpx;
}
.search-input {
flex: 1;
background: #f3f6f4;
border-radius: 10rpx;
padding: 12rpx 16rpx;
font-size: 26rpx;
}
.search-btn {
margin: 0 !important;
background: #059669 !important;
color: #fff !important;
border-radius: 10rpx !important;
}
.list-summary {
color: #6b7280;
font-size: 24rpx;
padding: 4rpx 8rpx 14rpx;
}
.tip {
text-align: center;
color: #9ca3af;
font-size: 26rpx;
padding: 80rpx 0;
}
.order-card {
background: #fff;
border-radius: 16rpx;
padding: 22rpx;
margin-bottom: 14rpx;
}
.order-card.is-open {
border: 1rpx solid #d1fae5;
}
.order-head {
display: flex;
align-items: center;
justify-content: space-between;
}
.order-head-right {
display: flex;
align-items: center;
gap: 12rpx;
}
.order-customer {
font-size: 30rpx;
font-weight: 600;
color: #111827;
}
.order-date {
font-size: 24rpx;
color: #6b7280;
}
/* 展开态指示:纯 CSS 箭头(不新增可见文字),向下=可展开、向上=可收起 */
.order-caret {
width: 14rpx;
height: 14rpx;
border-right: 3rpx solid #9ca3af;
border-bottom: 3rpx solid #9ca3af;
transform: rotate(45deg);
transition: transform 0.2s ease;
}
.order-caret.is-open {
transform: rotate(-135deg);
}
.order-meta {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 12rpx;
}
.order-code {
font-size: 22rpx;
color: #6b7280;
font-family: monospace;
}
.order-count {
font-size: 24rpx;
color: #059669;
}
.order-detail {
margin-top: 18rpx;
border-top: 1rpx solid #f0f2f1;
padding-top: 8rpx;
}
/* ── 商品表:整屏铺满、超出隐藏,一行一个商品 ── */
.trace-table {
margin-top: 14rpx;
width: 100%;
border: 1rpx solid #eef4f1;
border-radius: 12rpx;
overflow: hidden;
}
.trace-tr {
display: flex;
align-items: stretch;
border-top: 1rpx solid #f0f2f1;
}
.trace-thead {
border-top: none;
background: #f6faf8;
}
.trace-th,
.trace-td {
box-sizing: border-box;
padding: 10rpx 6rpx;
font-size: 21rpx;
color: #1f2937;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
overflow: hidden;
white-space: normal;
word-break: break-all;
}
.trace-th {
font-size: 18rpx;
font-weight: 600;
color: #6b7280;
line-height: 1.25;
}
.trace-td.col-name {
font-weight: 600;
font-size: 23rpx;
line-height: 1.35;
color: #111827;
}
.col-name {
width: 22%;
}
.col-qty {
width: 12%;
font-size: 19rpx;
color: #059669;
}
.col-reports {
width: 14%;
}
.col-stage {
width: 13%;
}
.stage-time {
font-size: 17rpx;
color: #9ca3af;
line-height: 1.35;
}
.thumb-row {
display: flex;
flex-wrap: wrap;
gap: 4rpx;
}
.thumb {
width: 52rpx;
height: 52rpx;
border-radius: 6rpx;
background: #f3f4f6;
}
.report-item {
width: 100%;
margin-bottom: 6rpx;
}
.report-label {
display: block;
font-size: 16rpx;
color: #6b7280;
line-height: 1.35;
}
.report-files {
display: flex;
flex-wrap: wrap;
gap: 4rpx;
margin-top: 3rpx;
}
/* 文档类报告:用扩展名标签区分(PDF / DOC / XLS…),点击调用 openDocument */
.report-doc {
padding: 1rpx 5rpx;
border-radius: 4rpx;
border: 1rpx solid #a7f3d0;
background: #ecfdf5;
color: #047857;
font-size: 15rpx;
line-height: 1.4;
}