736 lines
13 KiB
CSS
736 lines
13 KiB
CSS
/* 订单确认 / 支付 / 订单列表 / 订单详情 */
|
|
.order-confirm-page,
|
|
.pay-page,
|
|
.orders-page,
|
|
.order-detail-page {
|
|
background: var(--color-background);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.order-detail-page--with-pay .sub-page-body,
|
|
.order-detail-page--with-actions .sub-page-body {
|
|
padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
|
|
}
|
|
|
|
.order-detail-pay-bar {
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.order-detail-actionbar {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 50;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px var(--space-page) calc(10px + env(safe-area-inset-bottom, 0px));
|
|
background: var(--color-card, #fff);
|
|
box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.order-detail-actionbar--with-pay {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.order-detail-cs-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
min-width: 96px;
|
|
height: 40px;
|
|
padding: 0 14px;
|
|
margin: 0;
|
|
border: 1px solid var(--color-outline, #c8c4be);
|
|
border-radius: 999px;
|
|
background: transparent;
|
|
color: var(--color-on-surface);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.order-detail-cs-btn::after {
|
|
border: none;
|
|
}
|
|
|
|
.order-detail-actionbar .order-confirm-total {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.order-detail-actionbar .order-confirm-submit {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.order-confirm-submit--disabled {
|
|
opacity: 0.55;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.order-card {
|
|
background: var(--color-card);
|
|
border-radius: var(--radius-lg);
|
|
margin: 0 var(--space-page) 12px;
|
|
padding: 16px;
|
|
box-shadow: var(--shadow-card);
|
|
}
|
|
|
|
.order-card--warn {
|
|
background: rgba(166, 29, 36, 0.06);
|
|
box-shadow: none;
|
|
border: 1px solid rgba(166, 29, 36, 0.15);
|
|
}
|
|
|
|
.order-warn-text {
|
|
display: block;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
color: var(--color-heritage-red);
|
|
}
|
|
|
|
.order-card-title {
|
|
display: block;
|
|
font-family: var(--font-headline);
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
margin-bottom: 12px;
|
|
color: var(--color-on-surface);
|
|
}
|
|
|
|
.order-product-row {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.order-product-thumb {
|
|
width: 72px;
|
|
height: 72px;
|
|
border-radius: 12px;
|
|
background: var(--color-surface-container);
|
|
margin-right: 12px;
|
|
flex-shrink: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.order-product-thumb-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.order-product-name {
|
|
display: block;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.order-product-price {
|
|
display: block;
|
|
color: var(--color-heritage-red);
|
|
font-weight: 700;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.order-qty-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-top: 12px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--color-surface-container);
|
|
}
|
|
|
|
.order-qty-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.order-qty-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 8px;
|
|
background: var(--color-surface-container-low);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
color: var(--color-on-surface);
|
|
}
|
|
|
|
.order-qty-btn--disabled {
|
|
opacity: 0.4;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.order-qty-value {
|
|
margin: 0 14px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
min-width: 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.order-qty-hint {
|
|
display: block;
|
|
margin-top: 10px;
|
|
font-size: 13px;
|
|
color: var(--color-heritage-red);
|
|
line-height: 1.4;
|
|
text-align: center;
|
|
}
|
|
|
|
.order-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 8px 0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.order-row-label {
|
|
color: var(--color-on-surface-variant);
|
|
}
|
|
|
|
.order-row-value {
|
|
color: var(--color-on-surface);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.order-row--address {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.order-row-value--wrap {
|
|
flex: 1;
|
|
text-align: right;
|
|
white-space: normal;
|
|
word-break: break-all;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.order-row-value--price {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
color: var(--color-heritage-red);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.order-confirm-bar,
|
|
.pay-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 50;
|
|
padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
|
|
display: flex;
|
|
align-items: center;
|
|
background: rgba(255, 255, 255, 0.95);
|
|
border-top: 1px solid rgba(226, 190, 188, 0.1);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.order-confirm-total {
|
|
flex: 1;
|
|
}
|
|
|
|
.order-confirm-total-label {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: var(--color-subtle-gray);
|
|
}
|
|
|
|
.order-confirm-total-value {
|
|
font-family: var(--font-headline);
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
color: var(--color-heritage-red);
|
|
}
|
|
|
|
.order-confirm-submit {
|
|
height: 48px;
|
|
padding: 0 28px;
|
|
border-radius: 999px;
|
|
background: var(--color-heritage-red);
|
|
color: #fff;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.order-confirm-submit--disabled {
|
|
background: #c9c5c0;
|
|
color: #fff;
|
|
opacity: 0.85;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.order-tabs {
|
|
display: flex;
|
|
padding: 0 var(--space-page);
|
|
border-bottom: 1px solid var(--color-surface-container);
|
|
background: var(--color-background);
|
|
position: sticky;
|
|
top: var(--nav-bar-height, 56px);
|
|
z-index: 40;
|
|
}
|
|
|
|
.order-tab {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 12px 0;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--color-subtle-gray);
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
|
|
.order-tab--active {
|
|
color: var(--color-heritage-red);
|
|
border-bottom-color: var(--color-heritage-red);
|
|
}
|
|
|
|
.order-list-item {
|
|
background: var(--color-card);
|
|
border-radius: var(--radius-lg);
|
|
margin: 12px var(--space-page);
|
|
padding: 16px;
|
|
box-shadow: var(--shadow-card);
|
|
}
|
|
|
|
.order-list-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.order-list-head-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.order-list-no {
|
|
font-size: 12px;
|
|
color: var(--color-subtle-gray);
|
|
}
|
|
|
|
.order-status-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.order-proxy-badge {
|
|
flex-shrink: 0;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--color-heritage-red);
|
|
background: rgba(166, 29, 36, 0.08);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.order-proxy-hint {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: var(--color-subtle-gray);
|
|
margin: -4px 0 10px;
|
|
}
|
|
|
|
.order-list-status {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--color-heritage-red);
|
|
}
|
|
|
|
.order-list-body {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.order-list-thumb {
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 10px;
|
|
background: var(--color-surface-container);
|
|
margin-right: 12px;
|
|
flex-shrink: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.order-list-thumb-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.order-list-name {
|
|
display: block;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.order-list-meta-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.order-list-meta {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: var(--color-subtle-gray);
|
|
}
|
|
|
|
.order-list-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 12px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--color-surface-container);
|
|
gap: 12px;
|
|
}
|
|
|
|
.order-list-pay-amount {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.order-list-pay-btn {
|
|
flex-shrink: 0;
|
|
height: 32px;
|
|
padding: 0 16px;
|
|
border-radius: 999px;
|
|
background: var(--color-heritage-red);
|
|
color: #fff;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.order-list-invoice-btn {
|
|
flex-shrink: 0;
|
|
height: 26px;
|
|
padding: 0 10px;
|
|
border-radius: 999px;
|
|
background: transparent;
|
|
border: 1px solid var(--color-heritage-red, #A61D24);
|
|
color: var(--color-heritage-red, #A61D24);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.order-list-invoice-status {
|
|
flex-shrink: 0;
|
|
height: 26px;
|
|
padding: 0 10px;
|
|
border-radius: 999px;
|
|
background: rgba(166, 29, 36, 0.06);
|
|
color: var(--color-heritage-red, #A61D24);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.order-detail-invoice-btn {
|
|
flex-shrink: 0;
|
|
height: 40px;
|
|
padding: 0 16px;
|
|
border-radius: 999px;
|
|
background: transparent;
|
|
border: 1px solid var(--color-heritage-red, #A61D24);
|
|
color: var(--color-heritage-red, #A61D24);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.order-detail-invoice-status {
|
|
flex-shrink: 0;
|
|
height: 40px;
|
|
padding: 0 16px;
|
|
border-radius: 999px;
|
|
background: rgba(166, 29, 36, 0.06);
|
|
color: var(--color-heritage-red, #A61D24);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.pay-status {
|
|
text-align: center;
|
|
padding: 48px 24px;
|
|
}
|
|
|
|
.pay-status-icon {
|
|
width: 72px;
|
|
height: 72px;
|
|
border-radius: 50%;
|
|
background: rgba(166, 29, 36, 0.08);
|
|
color: var(--color-heritage-red);
|
|
font-size: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 16px;
|
|
}
|
|
|
|
.pay-status-title {
|
|
display: block;
|
|
font-family: var(--font-headline);
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.pay-status-amount {
|
|
display: block;
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--color-heritage-red);
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.pay-wechat-auth-card {
|
|
margin: 0 0 16px;
|
|
padding: 16px;
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
|
|
text-align: center;
|
|
}
|
|
|
|
.pay-wechat-auth-title {
|
|
display: block;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--color-on-surface);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.pay-wechat-auth-desc {
|
|
display: block;
|
|
font-size: 13px;
|
|
color: var(--color-muted, #999);
|
|
margin-bottom: 16px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.pay-wechat-auth-msg {
|
|
display: block;
|
|
font-size: 13px;
|
|
color: var(--color-heritage-red, #a02d30);
|
|
line-height: 1.5;
|
|
text-align: center;
|
|
}
|
|
|
|
.order-logistics-page {
|
|
background: var(--color-background);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.order-logistics-body {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.order-logistics-info-card {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.order-logistics-link {
|
|
display: inline-block;
|
|
margin-top: 8px;
|
|
font-size: 14px;
|
|
color: var(--color-heritage-red);
|
|
}
|
|
|
|
.order-logistics-preview {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-top: 12px;
|
|
padding: 12px;
|
|
border-radius: 10px;
|
|
background: rgba(166, 29, 36, 0.04);
|
|
}
|
|
|
|
.order-logistics-preview-main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.order-logistics-preview-info {
|
|
font-size: 13px;
|
|
color: var(--color-on-surface);
|
|
line-height: 1.5;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
|
|
.order-logistics-preview-link {
|
|
flex-shrink: 0;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--color-heritage-red);
|
|
}
|
|
|
|
.order-logistics-preview-block {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.order-logistics-eta {
|
|
display: block;
|
|
margin-top: 8px;
|
|
font-size: 12px;
|
|
color: var(--color-on-surface-variant);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.order-logistics-phone-link {
|
|
color: var(--color-heritage-red);
|
|
}
|
|
|
|
.order-logistics-sign-photos {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.order-logistics-sign-photo {
|
|
width: 96px;
|
|
height: 96px;
|
|
border-radius: 8px;
|
|
background: var(--color-surface-container);
|
|
}
|
|
|
|
.order-row-value--link {
|
|
color: var(--color-heritage-red);
|
|
}
|
|
|
|
.order-logistics-timeline {
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.order-logistics-timeline--complete .order-logistics-timeline-item:not(:last-child)::before {
|
|
background: rgba(166, 29, 36, 0.35);
|
|
}
|
|
|
|
.order-logistics-timeline-item {
|
|
display: flex;
|
|
gap: 12px;
|
|
position: relative;
|
|
padding-bottom: 16px;
|
|
}
|
|
|
|
.order-logistics-timeline-item:last-child {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.order-logistics-timeline-item:not(:last-child)::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 5px;
|
|
top: 14px;
|
|
bottom: 0;
|
|
width: 1px;
|
|
background: rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.order-logistics-timeline-item--done .order-logistics-timeline-dot {
|
|
background: var(--color-heritage-red);
|
|
box-shadow: 0 0 0 1px var(--color-heritage-red);
|
|
}
|
|
|
|
.order-logistics-timeline-item--done:not(:last-child)::before {
|
|
background: rgba(166, 29, 36, 0.35);
|
|
}
|
|
|
|
.order-logistics-timeline-dot {
|
|
flex-shrink: 0;
|
|
width: 11px;
|
|
height: 11px;
|
|
margin-top: 4px;
|
|
border-radius: 50%;
|
|
background: var(--color-surface-container-high, #e8e4df);
|
|
border: 2px solid #fff;
|
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.order-logistics-timeline-item--latest .order-logistics-timeline-dot {
|
|
background: var(--color-heritage-red);
|
|
box-shadow: 0 0 0 2px rgba(166, 29, 36, 0.25);
|
|
}
|
|
|
|
.order-logistics-timeline-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.order-logistics-timeline-status {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--color-on-surface);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.order-logistics-timeline-item--done .order-logistics-timeline-status {
|
|
color: var(--color-heritage-red);
|
|
}
|
|
|
|
.order-logistics-timeline-item--latest .order-logistics-timeline-status {
|
|
color: var(--color-heritage-red);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.order-logistics-node {
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.order-logistics-node:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.order-logistics-node-time {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: var(--color-on-surface-variant);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.order-logistics-node-info {
|
|
display: block;
|
|
font-size: 14px;
|
|
color: var(--color-on-surface);
|
|
line-height: 1.5;
|
|
}
|