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.
store_node/miniprogram/pages/profile/orders.wxss

187 lines
2.7 KiB

.orders-container {
display: flex;
flex-direction: column;
height: 100vh;
background-color: #f7f7f7;
}
/* 选项卡样式 */
.tabs {
display: flex;
background-color: #ffffff;
border-bottom: 1rpx solid #eeeeee;
position: sticky;
top: 0;
z-index: 10;
}
.tab-item {
flex: 1;
text-align: center;
padding: 24rpx 0;
font-size: 28rpx;
color: #666666;
position: relative;
}
.tab-item.active {
color: #3A86FF;
font-weight: bold;
}
.tab-item.active::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 40rpx;
height: 4rpx;
background-color: #3A86FF;
border-radius: 2rpx;
}
/* 订单列表样式 */
.order-list {
flex: 1;
padding: 20rpx;
}
.empty-tip {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 100rpx 0;
}
.empty-icon {
width: 200rpx;
height: 200rpx;
margin-bottom: 20rpx;
}
.empty-tip text {
font-size: 28rpx;
color: #999999;
}
.order-item {
background-color: #ffffff;
border-radius: 12rpx;
margin-bottom: 20rpx;
overflow: hidden;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
}
.order-header {
display: flex;
justify-content: space-between;
padding: 20rpx;
border-bottom: 1rpx solid #f2f2f2;
}
.order-type {
font-size: 28rpx;
color: #333333;
}
.order-status {
font-size: 28rpx;
}
.order-status.waiting {
color: #FF9800;
}
.order-status.processing {
color: #3A86FF;
}
.order-status.completed {
color: #4CAF50;
}
.order-status.refund {
color: #9E9E9E;
}
.order-content {
display: flex;
padding: 20rpx;
border-bottom: 1rpx solid #f2f2f2;
}
.order-image {
width: 160rpx;
height: 160rpx;
border-radius: 8rpx;
margin-right: 20rpx;
}
.order-info {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.order-title {
font-size: 28rpx;
color: #333333;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.order-price {
font-size: 32rpx;
color: #FF5252;
font-weight: bold;
}
.order-time {
font-size: 24rpx;
color: #999999;
}
.order-footer {
display: flex;
justify-content: flex-end;
padding: 20rpx;
}
.order-btn {
margin-left: 20rpx;
padding: 0 30rpx;
height: 60rpx;
line-height: 60rpx;
font-size: 26rpx;
color: #666666;
background-color: #f7f7f7;
border-radius: 30rpx;
min-width: 120rpx;
}
.order-btn.primary {
background-color: #3A86FF;
color: #ffffff;
}
.order-btn.cancel {
background-color: #ffffff;
color: #999999;
border: 1rpx solid #eeeeee;
}
.order-btn::after {
border: none;
}
.loading-more, .no-more {
text-align: center;
padding: 20rpx 0;
font-size: 24rpx;
color: #999999;
}