yingsa/miniprogram/pages/points/order/index.wxss

518 lines
8.9 KiB
Plaintext

/* ==========================================
兑换订单页面 - 浅色高级感设计
========================================== */
.page-container {
min-height: 100vh;
background: var(--bg-page);
position: relative;
padding-bottom: 40rpx;
}
/* 顶部装饰背景 */
.hero-bg {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 280rpx;
background: linear-gradient(180deg, #FFF5F0 0%, var(--bg-page) 100%);
pointer-events: none;
}
.hero-pattern {
position: absolute;
top: -60rpx;
right: -40rpx;
width: 220rpx;
height: 220rpx;
background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
border-radius: 50%;
}
/* 页面标题 */
.page-header {
position: relative;
z-index: 1;
text-align: center;
padding: 32rpx 24rpx 20rpx;
animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-title {
display: block;
font-size: 36rpx;
font-weight: 700;
color: var(--text-primary);
letter-spacing: 2rpx;
}
/* 状态筛选标签 */
.status-tabs {
position: relative;
z-index: 1;
display: flex;
gap: 12rpx;
padding: 0 24rpx 20rpx;
animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s backwards;
}
.status-tab {
flex: 1;
padding: 16rpx;
background: var(--bg-white);
border-radius: var(--radius-full);
text-align: center;
font-size: 26rpx;
color: var(--text-secondary);
box-shadow: var(--shadow-sm);
transition: all 0.3s ease;
}
.status-tab.active {
background: var(--primary-gradient);
color: var(--text-white);
box-shadow: var(--shadow-primary);
}
.status-tab:active {
transform: scale(0.96);
}
/* 订单列表区域 */
.order-section {
position: relative;
z-index: 1;
padding: 0 24rpx;
}
.order-list {
}
.order-card {
background: var(--bg-white);
border-radius: var(--radius-lg);
margin-bottom: 16rpx;
box-shadow: var(--shadow-card);
overflow: hidden;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}
.order-card:active {
transform: scale(0.98);
}
/* 订单头部 */
.order-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16rpx 20rpx;
background: linear-gradient(90deg, #FAFBFC, var(--bg-white));
border-bottom: 1rpx solid var(--border-soft);
}
.order-no {
font-size: 22rpx;
color: var(--text-muted);
}
.order-status {
padding: 6rpx 14rpx;
border-radius: var(--radius-full);
font-size: 22rpx;
font-weight: 600;
}
.order-status.pending {
background: #FFF8E1;
color: #F9A825;
}
.order-status.completed {
background: var(--accent-light);
color: var(--accent);
}
.order-status.cancelled {
background: var(--bg-soft);
color: var(--text-muted);
}
/* 订单内容 */
.order-content {
display: flex;
padding: 20rpx;
gap: 16rpx;
}
.product-image {
width: 120rpx;
height: 120rpx;
border-radius: var(--radius-md);
background: var(--bg-soft);
flex-shrink: 0;
}
.order-info {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
min-width: 0;
}
.product-name {
display: block;
font-size: 26rpx;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 6rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.store-name {
font-size: 22rpx;
color: var(--text-muted);
margin-bottom: 8rpx;
}
.order-price-row {
display: flex;
align-items: center;
justify-content: space-between;
}
.order-price {
display: flex;
align-items: baseline;
gap: 4rpx;
}
.price-value {
font-size: 30rpx;
font-weight: 700;
color: var(--primary);
}
.price-unit {
font-size: 20rpx;
color: var(--primary);
}
/* 订单底部 */
.order-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14rpx 20rpx;
background: var(--bg-soft);
border-top: 1rpx solid var(--border-soft);
}
.order-time {
font-size: 22rpx;
color: var(--text-muted);
}
.order-actions {
display: flex;
gap: 12rpx;
}
.action-btn {
padding: 10rpx 20rpx;
border-radius: var(--radius-full);
font-size: 22rpx;
font-weight: 500;
transition: all 0.3s ease;
}
.action-btn.primary {
background: var(--primary-gradient);
color: var(--text-white);
box-shadow: var(--shadow-primary);
}
.action-btn.primary:active {
transform: scale(0.96);
}
/* 空状态 */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
padding: 80rpx 48rpx;
animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.15s backwards;
}
.empty-icon {
width: 160rpx;
height: 160rpx;
margin-bottom: 24rpx;
opacity: 0.7;
}
.empty-title {
font-size: 28rpx;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 8rpx;
}
.empty-desc {
font-size: 24rpx;
color: var(--text-muted);
margin-bottom: 28rpx;
}
.empty-btn {
padding: 16rpx 48rpx;
background: var(--primary-gradient);
color: var(--text-white);
border-radius: var(--radius-full);
font-size: 28rpx;
font-weight: 500;
box-shadow: var(--shadow-primary);
}
.empty-btn:active {
transform: scale(0.96);
}
/* 加载状态 */
.loading-state {
display: flex;
align-items: center;
justify-content: center;
padding: 40rpx;
color: var(--text-muted);
font-size: 26rpx;
}
/* 底部安全区域 */
.safe-bottom {
height: 80rpx;
}
/* ==========================================
订单详情弹窗
========================================== */
.order-detail-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0);
display: flex;
align-items: flex-end;
z-index: 999;
visibility: hidden;
transition: all 0.35s ease;
}
.order-detail-overlay.show {
visibility: visible;
background: rgba(0, 0, 0, 0.5);
}
.order-detail-modal {
width: 100%;
max-height: 85vh;
background: var(--bg-white);
border-radius: var(--radius-xl) var(--radius-xl) 0 0;
transform: translateY(100%);
transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.order-detail-modal.show {
transform: translateY(0);
}
.detail-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 24rpx;
border-bottom: 1rpx solid var(--border-soft);
}
.detail-title {
font-size: 30rpx;
font-weight: 600;
color: var(--text-primary);
}
.detail-close {
width: 52rpx;
height: 52rpx;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg-soft);
border-radius: 50%;
font-size: 32rpx;
color: var(--text-muted);
}
.detail-close:active {
transform: scale(0.9);
}
.detail-content {
padding: 20rpx 24rpx;
max-height: 70vh;
overflow-y: auto;
}
/* 商品信息 */
.detail-product {
display: flex;
gap: 16rpx;
padding-bottom: 20rpx;
border-bottom: 1rpx solid var(--border-soft);
margin-bottom: 20rpx;
}
.detail-product-image {
width: 100rpx;
height: 100rpx;
border-radius: var(--radius-md);
background: var(--bg-soft);
flex-shrink: 0;
}
.detail-product-info {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
.detail-product-name {
font-size: 28rpx;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 8rpx;
}
.detail-product-price {
display: flex;
align-items: baseline;
gap: 4rpx;
}
.detail-price-value {
font-size: 32rpx;
font-weight: 700;
color: var(--primary);
}
.detail-price-unit {
font-size: 22rpx;
color: var(--primary);
}
/* 二维码区域 */
.qrcode-section {
display: flex;
flex-direction: column;
align-items: center;
padding: 28rpx 20rpx;
background: var(--bg-soft);
border-radius: var(--radius-lg);
margin-bottom: 20rpx;
}
.qrcode-wrapper {
width: 280rpx;
height: 280rpx;
background: #FFFFFF;
border-radius: var(--radius-md);
padding: 16rpx;
box-shadow: var(--shadow-sm);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 16rpx;
}
.qrcode-image {
width: 248rpx;
height: 248rpx;
}
.qrcode-loading {
display: flex;
align-items: center;
justify-content: center;
width: 248rpx;
height: 248rpx;
color: var(--text-muted);
font-size: 24rpx;
}
.qrcode-code {
font-size: 32rpx;
font-weight: 700;
color: var(--text-primary);
letter-spacing: 4rpx;
margin-bottom: 8rpx;
}
.qrcode-tip {
font-size: 24rpx;
color: var(--primary);
}
/* 详情区块 */
.detail-section {
margin-bottom: 20rpx;
}
.detail-section-title {
display: block;
font-size: 26rpx;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 12rpx;
padding-bottom: 8rpx;
border-bottom: 1rpx solid var(--border-soft);
}
.detail-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
padding: 10rpx 0;
}
.detail-label {
font-size: 24rpx;
color: var(--text-muted);
flex-shrink: 0;
}
.detail-value {
font-size: 24rpx;
color: var(--text-primary);
text-align: right;
flex: 1;
margin-left: 20rpx;
word-break: break-all;
}
.detail-value.status-pending {
color: #F9A825;
}
.detail-value.status-completed {
color: var(--accent);
}