feat: 全站视觉焕新与悬浮玻璃 TabBar 迁移

This commit is contained in:
2026-08-07 23:29:19 +08:00
parent 19408e5a8c
commit 61f1217384
97 changed files with 4007 additions and 2024 deletions
+202 -105
View File
@@ -1,163 +1,260 @@
.orders-page {
padding: 0 24px 24px;
padding: 0 32rpx 48rpx;
min-height: 100vh;
box-sizing: border-box;
}
.page-header {
padding: 32px 32px 24px;
margin: 20px 0 0;
/* 页面主标题 */
.orders-page .page-header {
display: flex;
align-items: flex-end;
padding-bottom: 32rpx;
margin: 0;
}
/* 状态Tab */
.status-tabs {
margin: 20px 0;
.orders-page .page-title {
display: block;
font-size: 44rpx;
font-weight: 700;
line-height: 1.2;
color: var(--text-primary);
letter-spacing: 0;
}
.tabs-scroll {
/* 状态筛选 chip */
.orders-page .status-tabs {
margin: 8rpx 0 32rpx;
}
.orders-page .tabs-scroll {
white-space: nowrap;
}
.tab-item {
display: inline-block;
padding: 20px 32px;
position: relative;
}
.tab-label {
font-size: 28px;
.orders-page .tab-item {
display: inline-flex;
align-items: center;
justify-content: center;
height: 64rpx;
padding: 0 32rpx;
margin-right: 16rpx;
border-radius: 999rpx;
background: var(--bg-card);
border: 1rpx solid var(--border);
color: var(--text-secondary);
font-size: 26rpx;
font-weight: 500;
}
.tab-item.active .tab-label {
color: var(--accent-primary);
font-weight: 700;
}
.tab-underline {
position: absolute;
bottom: 8px;
left: 50%;
transform: translateX(-50%);
width: 40px;
height: 4px;
.orders-page .tab-item.active {
background: var(--accent-primary);
border-radius: 4px;
border-color: var(--accent-primary);
color: var(--bg-page);
font-weight: 600;
}
/* 订单卡片 */
.orders-list {
padding: 0;
}
.order-card {
margin-bottom: 24px;
padding: 28px;
.orders-page .tab-label {
color: inherit;
}
.order-header {
.orders-page .tab-underline {
display: none;
}
/* 订单列表 */
.orders-page .orders-list {
padding: 0 0 8rpx;
}
.orders-page .order-card {
margin-bottom: 24rpx;
padding: 28rpx;
border-radius: 24rpx;
box-shadow: var(--shadow-card);
transition: transform 0.2s ease;
}
.orders-page .order-card:active {
transform: scale(0.98);
}
.orders-page .order-header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 20px;
justify-content: space-between;
gap: 24rpx;
padding-bottom: 20rpx;
border-bottom: 1rpx solid var(--border);
margin-bottom: 20px;
margin-bottom: 24rpx;
}
.order-date {
font-size: 24px;
.orders-page .order-date {
display: block;
min-width: 0;
font-size: 24rpx;
color: var(--text-secondary);
}
.order-body {
display: flex;
align-items: flex-start;
margin-bottom: 20px;
.orders-page .order-card .badge {
display: inline-flex;
align-items: center;
justify-content: center;
height: 40rpx;
padding: 0 16rpx;
border-radius: 999rpx;
font-size: 22rpx;
font-weight: 600;
line-height: 1;
flex-shrink: 0;
}
.order-icon-wrapper {
width: 120px;
height: 120px;
background: var(--bg-input);
border-radius: 16px;
.orders-page .order-body {
display: flex;
align-items: center;
gap: 24rpx;
margin-bottom: 24rpx;
}
.orders-page .order-icon-wrapper {
width: 96rpx;
height: 96rpx;
border-radius: 24rpx;
background: var(--bg-muted);
display: flex;
align-items: center;
justify-content: center;
margin-right: 20px;
flex-shrink: 0;
}
.order-icon {
font-size: 56px;
}
.order-icon-img {
width: 56px;
height: 56px;
}
.order-info {
flex: 1;
}
.order-product {
font-size: 30px;
font-weight: 700;
color: var(--text-primary);
display: block;
margin-bottom: 8px;
}
.order-sku {
font-size: 24px;
color: var(--text-secondary);
display: block;
margin-bottom: 8px;
}
.order-meta {
font-size: 22px;
color: var(--text-muted);
display: block;
.orders-page .order-icon-img {
width: 56rpx;
height: 56rpx;
}
.order-footer {
padding-top: 16px;
.orders-page .order-info {
flex: 1;
min-width: 0;
}
.orders-page .order-product {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 30rpx;
font-weight: 700;
line-height: 1.3;
color: var(--text-primary);
margin-bottom: 8rpx;
}
.orders-page .order-sku {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 24rpx;
line-height: 1.4;
color: var(--text-secondary);
margin-bottom: 6rpx;
}
.orders-page .order-meta {
display: block;
font-size: 22rpx;
line-height: 1.4;
color: var(--text-muted);
font-variant-numeric: tabular-nums;
}
.orders-page .order-footer {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 16rpx;
padding-top: 20rpx;
border-top: 1rpx solid var(--border);
}
.order-price-bar {
.orders-page .order-price-bar {
display: flex;
align-items: baseline;
justify-content: flex-end;
margin-bottom: 20px;
flex-shrink: 0;
}
.price-label {
font-size: 24px;
.orders-page .price-label {
font-size: 24rpx;
color: var(--text-secondary);
margin-right: 8px;
margin-right: 8rpx;
}
.price-value {
font-size: 36px;
.orders-page .price-value {
font-size: 34rpx;
font-weight: 800;
line-height: 1.2;
color: var(--accent-primary);
font-variant-numeric: tabular-nums;
}
.order-actions {
.orders-page .order-actions {
display: flex;
justify-content: flex-end;
gap: 16px;
flex-wrap: wrap;
gap: 12rpx;
}
.order-btn {
padding: 14px 28px !important;
font-size: 26px !important;
border-radius: 999rpx !important;
.orders-page .order-btn {
display: flex;
align-items: center;
justify-content: center;
height: 64rpx;
padding: 0 28rpx;
font-size: 26rpx;
font-weight: 600;
line-height: 1.2;
border-radius: 999rpx;
}
/* 空状态 */
.empty-state {
.orders-page .empty-state {
display: flex;
flex-direction: column;
align-items: center;
padding: 120px 40px;
padding: 80rpx 32rpx;
text-align: center;
background: var(--bg-muted);
border-radius: 24rpx;
}
.empty-icon-img {
width: 56px;
height: 56px;
margin-bottom: 24px;
.orders-page .empty-icon-img {
width: 88rpx;
height: 88rpx;
margin-bottom: 24rpx;
}
.empty-text {
font-size: 36px;
.orders-page .empty-text {
display: block;
font-size: 32rpx;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 12px;
margin-bottom: 12rpx;
}
.empty-sub {
font-size: 28px;
.orders-page .empty-sub {
display: block;
font-size: 26rpx;
color: var(--text-secondary);
margin-bottom: 40px;
margin-bottom: 32rpx;
}
.orders-page .empty-state .btn-primary {
display: flex;
align-items: center;
justify-content: center;
min-width: 280rpx;
height: 88rpx;
padding: 0 48rpx;
border-radius: 999rpx;
font-size: 30rpx;
font-weight: 600;
}