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.
 
 

197 lines
3.0 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;
overflow-x: auto;
white-space: nowrap;
}
.tab-item {
flex: 1;
min-width: 160rpx;
text-align: center;
padding: 24rpx 0;
font-size: 32rpx;
color: #666;
position: relative;
}
.tab-item.active {
color: #1677ff;
font-weight: bold;
}
.tab-item.active::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 60rpx;
height: 6rpx;
background-color: #1677ff;
border-radius: 3rpx;
}
/* 订单列表 */
.order-list {
padding: 20rpx;
}
/* 暂无订单提示 */
.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);
}
.order-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20rpx;
padding-bottom: 20rpx;
border-bottom: 1rpx solid #f0f0f0;
}
.order-info {
font-size: 28rpx;
color: #666;
}
.order-status {
font-size: 28rpx;
color: #1677ff;
font-weight: bold;
}
.order-goods {
margin-bottom: 20rpx;
}
.goods-item {
display: flex;
margin-bottom: 20rpx;
}
.goods-image {
width: 120rpx;
height: 120rpx;
border-radius: 8rpx;
margin-right: 20rpx;
}
.goods-info {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.goods-name {
font-size: 32rpx;
color: #333;
margin-bottom: 10rpx;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.goods-spec {
font-size: 26rpx;
color: #999;
margin-bottom: 10rpx;
}
.goods-price {
font-size: 32rpx;
color: #ff4d4f;
font-weight: bold;
}
.order-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 20rpx;
border-top: 1rpx solid #f0f0f0;
}
.total-price {
font-size: 32rpx;
color: #333;
}
.total-price .price {
color: #ff4d4f;
font-weight: bold;
}
.order-actions {
display: flex;
}
.action-btn {
padding: 12rpx 30rpx;
border-radius: 40rpx;
font-size: 28rpx;
margin-left: 20rpx;
border: 2rpx solid #1677ff;
color: #1677ff;
background-color: #fff;
}
.action-btn.primary {
background-color: #1677ff;
color: #fff;
}