You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

454 lines
6.9 KiB

/* pages/order/index.wxss */
.order-page {
min-height: 100vh;
background-color: #f5f5f5;
}
/* 订单状态标签栏 */
.order-tabs {
display: flex;
background-color: #fff;
border-bottom: 1rpx solid #e0e0e0;
}
.tab-item {
flex: 1;
text-align: center;
padding: 20rpx 0;
font-size: 28rpx;
color: #666;
position: relative;
transition: all 0.2s ease;
}
.tab-item:hover {
color: #1677ff;
}
.tab-item.active {
color: #1677ff;
font-weight: 500;
}
.tab-item.active::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 50rpx;
height: 5rpx;
background-color: #1677ff;
border-radius: 3rpx;
transition: all 0.2s ease;
}
/* 时间筛选组件 */
.date-filter {
background-color: #fff;
padding: 16rpx;
margin: 8rpx;
border-radius: 10rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
}
.date-filter-row {
display: flex;
justify-content: space-between;
margin-bottom: 16rpx;
gap: 12rpx;
}
.date-picker {
flex: 1;
display: flex;
flex-direction: column;
}
.date-label {
font-size: 22rpx;
color: #666;
margin-bottom: 6rpx;
font-weight: 500;
}
.picker {
border: 1rpx solid #e8e8e8;
border-radius: 6rpx;
padding: 14rpx;
font-size: 22rpx;
color: #333;
background-color: #f9f9f9;
transition: all 0.2s ease;
}
.picker:hover {
border-color: #1677ff;
background-color: #f0f7ff;
}
.filter-actions {
display: flex;
justify-content: flex-end;
gap: 12rpx;
padding-top: 12rpx;
border-top: 1rpx solid #f5f5f5;
}
.reset-btn {
padding: 12rpx 32rpx;
border-radius: 24rpx;
font-size: 22rpx;
border: 1rpx solid #d9d9d9;
color: #666;
background-color: #f9f9f9;
transition: all 0.2s ease;
}
.reset-btn:hover {
border-color: #999;
background-color: #f0f0f0;
}
.apply-btn {
padding: 12rpx 32rpx;
border-radius: 24rpx;
font-size: 22rpx;
border: 1rpx solid #1677ff;
color: #1677ff;
background-color: #fff;
font-weight: 500;
transition: all 0.2s ease;
}
.apply-btn:hover {
background-color: #1677ff;
color: #fff;
}
/* 统计信息卡片 */
.statistics-card {
background-color: #fff;
margin: 10rpx;
border-radius: 12rpx;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
overflow: hidden;
}
.statistics-header {
background-color: #1677ff;
color: #fff;
padding: 20rpx;
font-size: 28rpx;
font-weight: bold;
}
.statistics-body {
padding: 20rpx;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20rpx;
}
.stat-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15rpx;
background-color: #f9f9f9;
border-radius: 8rpx;
}
.stat-label {
font-size: 24rpx;
color: #666;
font-weight: 500;
}
.stat-value {
font-size: 28rpx;
font-weight: bold;
color: #333;
}
.stat-value.unpaid {
color: #ff4d4f;
}
.stat-value.paid {
color: #52c41a;
}
/* 响应式设计 */
@media (max-width: 375px) {
.date-filter-row {
flex-direction: column;
}
.date-picker {
flex-direction: row;
align-items: center;
}
.date-label {
margin-bottom: 0;
margin-right: 10rpx;
min-width: 120rpx;
}
.picker {
flex: 1;
}
.statistics-body {
grid-template-columns: 1fr;
}
.stat-item {
padding: 12rpx;
}
.stat-label {
font-size: 22rpx;
}
.stat-value {
font-size: 26rpx;
}
}
/* 订单列表 */
.order-list {
padding: 20rpx;
}
/* 加载中 */
.loading {
display: flex;
justify-content: center;
align-items: center;
padding: 120rpx 0;
background-color: #fff;
border-radius: 12rpx;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
font-size: 32rpx;
color: #666;
}
/* 错误提示 */
.error {
display: flex;
justify-content: center;
align-items: center;
padding: 120rpx 40rpx;
background-color: #fff;
border-radius: 12rpx;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
font-size: 32rpx;
color: #ff4d4f;
text-align: center;
}
/* 暂无订单提示 */
.no-orders {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 120rpx 0;
background-color: #fff;
border-radius: 12rpx;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
}
.no-orders-icon {
font-size: 160rpx;
margin-bottom: 40rpx;
}
.no-orders-title {
font-size: 36rpx;
font-weight: bold;
color: #333;
margin-bottom: 20rpx;
}
.no-orders-subtitle {
font-size: 28rpx;
color: #999;
margin-bottom: 60rpx;
}
.go-shopping-btn {
background-color: #1677ff;
color: #fff;
border: none;
padding: 20rpx 80rpx;
border-radius: 60rpx;
font-size: 32rpx;
font-weight: bold;
}
/* 订单卡片样式 */
.order-card {
background-color: #fff;
border-radius: 12rpx;
padding: 30rpx;
margin-bottom: 20rpx;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.order-card:active {
transform: translateY(2rpx);
box-shadow: 0 1rpx 5rpx rgba(0, 0, 0, 0.05);
}
.order-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20rpx;
padding-bottom: 20rpx;
border-bottom: 1rpx solid #f0f0f0;
}
.order-no {
font-size: 28rpx;
color: #333;
font-weight: bold;
}
.order-date {
font-size: 26rpx;
color: #999;
}
.order-body {
margin-bottom: 20rpx;
}
.customer-info {
margin-bottom: 20rpx;
}
.customer-company {
font-size: 30rpx;
color: #333;
font-weight: bold;
margin-bottom: 10rpx;
}
.contact-person {
font-size: 26rpx;
color: #666;
}
.order-summary {
display: flex;
flex-wrap: wrap;
gap: 30rpx;
padding: 20rpx;
background-color: #f9f9f9;
border-radius: 8rpx;
}
.total-amount {
font-size: 28rpx;
color: #333;
font-weight: bold;
}
.total-amount::before {
content: "💰 ";
font-size: 24rpx;
}
.total-pieces {
font-size: 28rpx;
color: #666;
}
.total-pieces::before {
content: "📦 ";
font-size: 24rpx;
}
.total-weight {
font-size: 28rpx;
color: #666;
}
.total-weight::before {
content: "⚖️ ";
font-size: 24rpx;
}
.order-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 20rpx;
border-top: 1rpx solid #f0f0f0;
}
.status-container {
display: flex;
gap: 20rpx;
align-items: center;
}
.payment-status {
font-size: 26rpx;
color: #52c41a;
font-weight: bold;
padding: 6rpx 16rpx;
background-color: #f6ffed;
border-radius: 20rpx;
border: 1rpx solid #b7eb8f;
}
.order-status {
font-size: 26rpx;
color: #1677ff;
font-weight: bold;
padding: 6rpx 16rpx;
background-color: #e6f7ff;
border-radius: 20rpx;
border: 1rpx solid #91d5ff;
}
.arrow-icon {
font-size: 32rpx;
color: #999;
font-weight: bold;
}
/* 分页加载相关样式 */
.load-more {
padding: 30rpx 0;
text-align: center;
}
.loading-more {
display: flex;
justify-content: center;
align-items: center;
padding: 20rpx 0;
}
.loading-more text {
font-size: 28rpx;
color: #666;
}
.no-more {
padding: 20rpx 0;
}
.no-more text {
font-size: 26rpx;
color: #999;
}