Files
dukang/apps/mini-user/src/styles/order.css
T
jacy 00b52b9aaa
CI / verify (pull_request) Has been cancelled
用户端跨城订单界面优化
2026-07-17 09:06:53 +08:00

353 lines
6.2 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 {
padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
.order-detail-pay-bar {
justify-content: space-between;
gap: 12px;
}
.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-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;
}
.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 {
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-no {
font-size: 12px;
color: var(--color-subtle-gray);
}
.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;
}
.order-list-name {
display: block;
font-size: 14px;
font-weight: 600;
margin-bottom: 4px;
}
.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);
}
.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 {
font-size: 13px;
color: var(--color-heritage-red, #a02d30);
line-height: 1.5;
}