订单详情页内容调整(增加配送方式、订单号等)
This commit is contained in:
@@ -3678,6 +3678,530 @@
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
/* ── 订单详情 Stitch 版(user/40 支持修改地址) ── */
|
||||
.order-detail-page--stitch {
|
||||
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 88px);
|
||||
}
|
||||
|
||||
.order-detail-topbar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 50;
|
||||
height: 64px;
|
||||
padding: 0 var(--space-page);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background: var(--color-surface);
|
||||
box-shadow: 0 4px 20px rgba(166, 29, 36, 0.05);
|
||||
}
|
||||
|
||||
.order-detail-topbar-title {
|
||||
flex: 1;
|
||||
margin-left: 8px;
|
||||
font-family: var(--font-headline);
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
color: var(--color-heritage-red);
|
||||
}
|
||||
|
||||
.order-detail-topbar-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.order-detail-topbar-btn {
|
||||
border: none;
|
||||
background: none;
|
||||
padding: 0;
|
||||
color: var(--color-on-surface-variant);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.order-detail-topbar-btn .material-symbols-outlined {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.order-detail-main--stitch {
|
||||
padding: var(--space-md) var(--space-page) 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-md);
|
||||
max-width: 480px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.order-detail-status-card {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--color-heritage-red);
|
||||
padding: 24px;
|
||||
color: var(--color-on-primary);
|
||||
box-shadow: 0 8px 24px rgba(166, 29, 36, 0.15);
|
||||
}
|
||||
|
||||
.order-detail-status-deco {
|
||||
position: absolute;
|
||||
right: -40px;
|
||||
top: -40px;
|
||||
opacity: 0.1;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.order-detail-status-deco .material-symbols-outlined {
|
||||
font-size: 120px;
|
||||
font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
||||
}
|
||||
|
||||
.order-detail-status-body {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.order-detail-status-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.order-detail-status-head h2 {
|
||||
font-family: var(--font-headline);
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.order-detail-status-body p {
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.order-detail-progress-card {
|
||||
padding: 16px 8px 12px !important;
|
||||
}
|
||||
|
||||
.order-detail-progress {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.order-detail-progress-step {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.order-detail-progress-line {
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
left: 50%;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background: var(--color-surface-container-highest);
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.order-detail-progress-line.done {
|
||||
background: var(--color-heritage-red);
|
||||
}
|
||||
|
||||
.order-detail-progress-dot {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--color-surface-container-highest);
|
||||
}
|
||||
|
||||
.order-detail-progress-step.done .order-detail-progress-dot {
|
||||
background: var(--color-heritage-red);
|
||||
color: var(--color-on-primary);
|
||||
}
|
||||
|
||||
.order-detail-progress-step.done .order-detail-progress-dot .material-symbols-outlined {
|
||||
font-size: 16px;
|
||||
font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 24;
|
||||
}
|
||||
|
||||
.order-detail-progress-step.active .order-detail-progress-dot {
|
||||
background: var(--color-heritage-red);
|
||||
box-shadow: 0 0 0 4px var(--color-primary-fixed, #ffdad7);
|
||||
}
|
||||
|
||||
.order-detail-progress-pulse {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
animation: order-step-pulse 1.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.order-detail-progress-idle {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-subtle-gray);
|
||||
}
|
||||
|
||||
.order-detail-progress-label {
|
||||
margin-top: 8px;
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
color: var(--color-subtle-gray);
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.order-detail-progress-step.done .order-detail-progress-label,
|
||||
.order-detail-progress-step.active .order-detail-progress-label {
|
||||
color: var(--color-on-surface);
|
||||
}
|
||||
|
||||
.order-detail-progress-step.active .order-detail-progress-label {
|
||||
color: var(--color-heritage-red);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.order-detail-card-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.order-detail-card-head h3,
|
||||
.order-detail-card-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-family: var(--font-headline);
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: var(--color-on-surface);
|
||||
margin: 0 0 16px;
|
||||
}
|
||||
|
||||
.order-detail-card-head h3 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.order-detail-card-head .material-symbols-outlined,
|
||||
.order-detail-card-title .material-symbols-outlined {
|
||||
font-size: 20px;
|
||||
color: var(--color-on-surface-variant);
|
||||
}
|
||||
|
||||
.order-detail-edit-btn {
|
||||
border: none;
|
||||
background: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
color: var(--color-heritage-red);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.order-detail-edit-btn .material-symbols-outlined {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.order-detail-kv-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.order-detail-kv-list--bordered {
|
||||
padding-bottom: 16px;
|
||||
border-bottom: 1px solid rgba(227, 226, 224, 0.6);
|
||||
}
|
||||
|
||||
.order-detail-kv {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.order-detail-kv > span:first-child {
|
||||
color: var(--color-on-surface-variant);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.order-detail-kv > span:last-child,
|
||||
.order-detail-kv > a {
|
||||
font-weight: 500;
|
||||
color: var(--color-on-surface);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.order-detail-kv--address > span:last-child {
|
||||
max-width: 68%;
|
||||
}
|
||||
|
||||
.order-detail-kv--muted {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.order-detail-kv--muted > span {
|
||||
color: var(--color-on-surface-variant) !important;
|
||||
font-weight: 400 !important;
|
||||
}
|
||||
|
||||
.order-detail-kv--total {
|
||||
padding-top: 8px;
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.order-detail-kv--total > span:first-child {
|
||||
font-weight: 700;
|
||||
color: var(--color-on-surface);
|
||||
}
|
||||
|
||||
.order-detail-kv-inline {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.order-detail-copy-btn {
|
||||
border: 1px solid rgba(166, 29, 36, 0.3);
|
||||
background: none;
|
||||
color: var(--color-heritage-red);
|
||||
font-size: 10px;
|
||||
line-height: 1;
|
||||
padding: 2px 4px;
|
||||
border-radius: 2px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.order-detail-summary {
|
||||
padding-top: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.order-detail-pay-total {
|
||||
font-family: var(--font-headline);
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
color: var(--color-heritage-red) !important;
|
||||
}
|
||||
|
||||
.order-detail-benefit-panel {
|
||||
margin-top: 16px;
|
||||
padding: 16px;
|
||||
border-radius: var(--radius-lg);
|
||||
background: rgba(255, 191, 0, 0.1);
|
||||
border: 1px solid rgba(255, 191, 0, 0.2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.order-detail-benefit-panel-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.order-detail-benefit-icon {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-aged-amber, #ffbf00);
|
||||
color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.order-detail-benefit-amount {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 4px;
|
||||
font-family: var(--font-headline);
|
||||
font-weight: 600;
|
||||
color: var(--color-on-secondary-fixed-variant, #574500);
|
||||
}
|
||||
|
||||
.order-detail-benefit-amount span:first-child {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.order-detail-benefit-amount span:last-child {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.order-detail-benefit-sub {
|
||||
margin-top: 2px;
|
||||
font-size: 10px;
|
||||
color: var(--color-on-secondary-fixed-variant, #574500);
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.order-detail-benefit-use {
|
||||
border: none;
|
||||
background: var(--color-aged-amber, #ffbf00);
|
||||
color: var(--color-on-secondary-fixed-variant, #574500);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
padding: 8px 16px;
|
||||
border-radius: var(--radius-full);
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.order-detail-link {
|
||||
color: var(--color-heritage-red);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.order-detail-actionbar {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 50;
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
padding: 16px var(--space-page) calc(env(safe-area-inset-bottom, 0px) + 16px);
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
backdrop-filter: blur(10px);
|
||||
box-shadow: 0 -4px 20px rgba(166, 29, 36, 0.05);
|
||||
}
|
||||
|
||||
.order-detail-action-outline,
|
||||
.order-detail-action-primary {
|
||||
height: 48px;
|
||||
border-radius: var(--radius-lg);
|
||||
font-family: var(--font-headline);
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.order-detail-action-outline {
|
||||
flex: 1;
|
||||
border: 1px solid var(--color-heritage-red);
|
||||
background: transparent;
|
||||
color: var(--color-heritage-red);
|
||||
}
|
||||
|
||||
.order-detail-action-primary {
|
||||
flex: 1.5;
|
||||
border: none;
|
||||
background: var(--color-heritage-red);
|
||||
color: var(--color-on-primary);
|
||||
box-shadow: 0 4px 12px rgba(166, 29, 36, 0.2);
|
||||
}
|
||||
|
||||
.order-detail-action-primary:disabled {
|
||||
opacity: 0.7;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.order-address-modal-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 120;
|
||||
background: rgba(26, 26, 26, 0.6);
|
||||
backdrop-filter: blur(4px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--space-page);
|
||||
}
|
||||
|
||||
.order-address-modal {
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
background: var(--color-surface);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 24px;
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
|
||||
.order-address-modal-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: var(--color-heritage-red);
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.order-address-modal-head h3 {
|
||||
font-family: var(--font-headline);
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.order-address-modal-body {
|
||||
background: var(--color-surface-container);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 16px;
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
color: var(--color-on-surface-variant);
|
||||
}
|
||||
|
||||
.order-address-modal-target {
|
||||
margin-top: 8px;
|
||||
color: var(--color-on-surface);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.order-address-modal-actions {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.order-address-modal-actions button {
|
||||
flex: 1;
|
||||
height: 44px;
|
||||
border-radius: var(--radius-lg);
|
||||
border: 1px solid var(--color-outline-variant);
|
||||
background: var(--color-card);
|
||||
font-size: 15px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.order-address-modal-actions button.primary {
|
||||
border: none;
|
||||
background: var(--color-heritage-red);
|
||||
color: var(--color-on-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ── 我的 - 个人中心(stitch user/18) ── */
|
||||
.mine-page {
|
||||
min-height: 100vh;
|
||||
|
||||
Reference in New Issue
Block a user