/* pages/order/list.wxss */ .container { min-height: 100vh; background: #f7f9fe; padding-bottom: env(safe-area-inset-bottom); } /* 标签栏样式 */ .tab-bar { position: fixed; top: 0; left: 0; right: 0; height: 100rpx; background: rgba(255, 255, 255, 0.98); display: flex; align-items: center; z-index: 100; padding: 0 24rpx; backdrop-filter: blur(10px); } .tab-item { flex: 1; height: 72rpx; display: flex; align-items: center; justify-content: center; font-size: 28rpx; color: #8c8c8c; position: relative; margin: 0 8rpx; border-radius: 36rpx; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .tab-item.active { color: #fff; font-weight: 600; background: linear-gradient(135deg, #ff4d4f, #ff7875); box-shadow: 0 6rpx 16rpx rgba(255, 77, 79, 0.3); transform: translateY(-2rpx); } /* 订单列表样式 */ .order-list { margin-top: 116rpx; height: calc(100vh - 116rpx); box-sizing: border-box; padding: 24rpx; } .order-item { background: #fff; border-radius: 24rpx; margin-bottom: 24rpx; padding: 30rpx; box-shadow: 0 8rpx 24rpx rgba(140, 149, 159, 0.1); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 2rpx solid rgba(255, 77, 79, 0.1); } .order-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24rpx; margin-bottom: 24rpx; position: relative; } .order-header::after { content: ''; position: absolute; bottom: 0; left: -30rpx; right: -30rpx; height: 2rpx; background: linear-gradient(90deg, transparent, rgba(255, 77, 79, 0.1) 20%, rgba(255, 77, 79, 0.1) 80%, transparent ); } .order-time { font-size: 26rpx; color: #8c8c8c; display: flex; align-items: center; background: rgba(255, 77, 79, 0.08); padding: 6rpx 16rpx; border-radius: 20rpx; } .order-status { font-size: 28rpx; font-weight: 600; padding: 6rpx 20rpx; border-radius: 20rpx; } .order-status.pending { color: #f59e0b; background: rgba(245, 158, 11, 0.1); } .order-status.settled { color: #10b981; background: rgba(16, 185, 129, 0.1); } .order-status.invalid { color: #6b7280; background: rgba(107, 114, 128, 0.1); } .goods-list { padding: 12rpx 0; } .goods-item { display: flex; margin-bottom: 24rpx; background: #f8faff; padding: 24rpx; border-radius: 20rpx; position: relative; overflow: hidden; } .goods-item::before { content: ''; position: absolute; top: 0; left: 0; width: 6rpx; height: 100%; background: linear-gradient(135deg, #ff4d4f, #ff7875); border-radius: 0 3rpx 3rpx 0; } .goods-image { width: 180rpx; height: 180rpx; border-radius: 16rpx; margin-right: 24rpx; box-shadow: 0 8rpx 24rpx rgba(140, 149, 159, 0.15); } .goods-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; } .goods-name { font-size: 30rpx; color: #1f2937; font-weight: 600; margin-bottom: 16rpx; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.4; } .goods-price-count { display: flex; justify-content: space-between; align-items: center; } .goods-price { font-size: 36rpx; background: linear-gradient(135deg, #ff4d4f, #ff7875); -webkit-background-clip: text; color: transparent; font-weight: 600; } .goods-count { font-size: 26rpx; color: #6b7280; background: rgba(255, 77, 79, 0.08); padding: 6rpx 16rpx; border-radius: 20rpx; } .order-footer { padding-top: 24rpx; margin-top: 24rpx; position: relative; } .order-footer::before { content: ''; position: absolute; top: 0; left: -30rpx; right: -30rpx; height: 2rpx; background: linear-gradient(90deg, transparent, rgba(255, 77, 79, 0.1) 20%, rgba(255, 77, 79, 0.1) 80%, transparent ); } .commission-info { display: flex; align-items: center; margin-bottom: 16rpx; background: rgba(255, 77, 79, 0.04); padding: 16rpx 24rpx; border-radius: 16rpx; } .commission-info .label { font-size: 28rpx; color: #6b7280; } .commission-info .commission { font-size: 36rpx; background: linear-gradient(135deg, #ff4d4f, #ff7875); -webkit-background-clip: text; color: transparent; font-weight: 600; margin: 0 12rpx; } .commission-info .rate { font-size: 26rpx; color: #ff4d4f; background: rgba(255, 77, 79, 0.1); padding: 4rpx 12rpx; border-radius: 12rpx; } .settlement-info, .invalid-reason { font-size: 26rpx; color: #6b7280; display: flex; align-items: center; gap: 12rpx; padding: 12rpx 0; } .settlement-info .label, .invalid-reason .label { color: #8c8c8c; } /* 加载更多和空状态 */ .loading, .no-more { text-align: center; padding: 30rpx; color: #8c8c8c; font-size: 26rpx; } .empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120rpx 0; color: #8c8c8c; font-size: 28rpx; text-align: center; line-height: 1.6; } .empty-icon { width: 240rpx; height: 240rpx; margin-bottom: 30rpx; opacity: 0.8; } /* 深色模式 */ @media (prefers-color-scheme: dark) { .container { background: #111827; } .tab-bar { background: rgba(17, 24, 39, 0.98); } .tab-item { color: #9ca3af; } .tab-item.active { background: linear-gradient(135deg, #ff4d4f, #ff7875); } .order-item { background: #1f2937; border-color: rgba(255, 77, 79, 0.2); } .goods-item { background: #374151; } .order-time { background: rgba(255, 77, 79, 0.15); } .goods-count { background: rgba(255, 77, 79, 0.15); } .commission-info { background: rgba(255, 77, 79, 0.1); } .commission-info .label { color: #9ca3af; } .settlement-info, .invalid-reason { color: #9ca3af; } .settlement-info .label, .invalid-reason .label { color: #6b7280; } }