This commit is contained in:
lik
2026-06-14 11:46:10 +08:00
parent 894a9881d7
commit f8f7afceb8
14 changed files with 1340 additions and 509 deletions

View File

@@ -1,106 +1,106 @@
/* pages/home/index.wxss */
.container {
padding: 20rpx;
background-color: #f5f6fa;
.page {
min-height: 100vh;
background: #f7f8fc;
padding-bottom: 40rpx;
}
/* 统计卡片 */
.stats-section {
display: flex;
justify-content: space-between;
margin-bottom: 20rpx;
/* === 顶部问候 === */
.header {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
padding: 60rpx 40rpx 80rpx;
position: relative;
overflow: hidden;
}
.stats-card {
flex: 1;
background: #fff;
border-radius: 16rpx;
padding: 30rpx 0;
margin: 0 10rpx;
text-align: center;
box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.04);
.header::after {
content: '';
position: absolute;
top: -60rpx;
right: -40rpx;
width: 280rpx;
height: 280rpx;
border-radius: 50%;
background: rgba(255, 255, 255, 0.03);
}
.stats-card:first-child {
margin-left: 0;
.header::before {
content: '';
position: absolute;
bottom: -100rpx;
right: 80rpx;
width: 200rpx;
height: 200rpx;
border-radius: 50%;
background: rgba(255, 255, 255, 0.02);
}
.stats-card:last-child {
margin-right: 0;
.greeting {
position: relative;
z-index: 1;
}
.stats-num {
.greeting-text {
display: block;
font-size: 48rpx;
font-weight: 600;
color: #2c3e50;
margin-bottom: 8rpx;
}
.stats-label {
display: block;
font-size: 26rpx;
color: #7f8c8d;
}
/* 功能菜单 */
.menu-section {
background: #fff;
border-radius: 16rpx;
padding: 30rpx;
margin-bottom: 20rpx;
box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.04);
}
.section-title {
font-size: 32rpx;
font-weight: 600;
color: #2c3e50;
margin-bottom: 24rpx;
}
.menu-grid {
display: flex;
flex-wrap: wrap;
}
.menu-item {
width: 25%;
display: flex;
flex-direction: column;
align-items: center;
padding: 20rpx 0;
}
.menu-icon {
width: 88rpx;
height: 88rpx;
background: #e8f4fd;
border-radius: 20rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 44rpx;
font-weight: 700;
color: #ffffff;
letter-spacing: 2rpx;
margin-bottom: 12rpx;
}
.icon-text {
font-size: 36rpx;
color: #3498db;
font-weight: 600;
}
.menu-name {
.greeting-sub {
display: block;
font-size: 26rpx;
color: #555;
color: rgba(255, 255, 255, 0.5);
font-weight: 300;
letter-spacing: 1rpx;
}
/* 今日订单 */
.order-section {
background: #fff;
border-radius: 16rpx;
padding: 30rpx;
box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.04);
/* === 数据统计 === */
.stats-container {
margin: -40rpx 30rpx 0;
position: relative;
z-index: 2;
}
.stats-grid {
display: flex;
gap: 16rpx;
}
.stat-card {
flex: 1;
background: #ffffff;
border-radius: 20rpx;
padding: 28rpx 16rpx;
text-align: center;
box-shadow: 0 4rpx 24rpx rgba(0, 0, 0, 0.06);
transition: transform 0.2s;
}
.stat-value {
display: block;
font-size: 48rpx;
font-weight: 700;
color: #1a1a2e;
line-height: 1.2;
margin-bottom: 8rpx;
font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
}
.stat-label {
display: block;
font-size: 22rpx;
color: #a0a3bd;
font-weight: 400;
letter-spacing: 1rpx;
}
/* === 通用 Section === */
.section {
margin: 32rpx 30rpx 0;
}
.section-header {
@@ -110,99 +110,183 @@
margin-bottom: 24rpx;
}
.section-header .section-title {
margin-bottom: 0;
.section-title {
font-size: 32rpx;
font-weight: 700;
color: #1a1a2e;
letter-spacing: 1rpx;
}
.view-all {
font-size: 26rpx;
color: #3498db;
display: flex;
align-items: center;
gap: 6rpx;
font-size: 24rpx;
color: #a0a3bd;
}
.view-all .arrow {
font-size: 28rpx;
color: #a0a3bd;
}
/* === 功能菜单 === */
.menu-grid {
display: flex;
gap: 16rpx;
}
.menu-card {
flex: 1;
background: #ffffff;
border-radius: 20rpx;
padding: 32rpx 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 16rpx;
box-shadow: 0 4rpx 24rpx rgba(0, 0, 0, 0.04);
}
.menu-icon-wrap {
width: 80rpx;
height: 80rpx;
border-radius: 20rpx;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
}
.menu-icon-text {
font-size: 32rpx;
font-weight: 700;
color: #ffffff;
}
.menu-name {
font-size: 24rpx;
color: #5a5d7a;
font-weight: 500;
}
/* === 订单列表 === */
.order-list {
display: flex;
flex-direction: column;
gap: 20rpx;
}
.order-item {
background: #f8f9fa;
border-radius: 12rpx;
padding: 24rpx;
.order-card {
background: #ffffff;
border-radius: 20rpx;
padding: 28rpx 32rpx;
box-shadow: 0 4rpx 24rpx rgba(0, 0, 0, 0.04);
}
.order-header {
.order-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16rpx;
padding-bottom: 20rpx;
border-bottom: 1rpx solid #f0f1f5;
}
.order-id {
font-size: 26rpx;
color: #7f8c8d;
}
.order-status {
.order-no {
font-size: 24rpx;
padding: 4rpx 16rpx;
border-radius: 8rpx;
color: #a0a3bd;
font-weight: 500;
font-family: 'DIN Alternate', 'Helvetica Neue', monospace;
}
.status-tag {
font-size: 22rpx;
padding: 6rpx 20rpx;
border-radius: 30rpx;
font-weight: 500;
}
.status-pending {
background: #fff3e0;
color: #f39c12;
}
.status-in_progress {
background: #e8f5e9;
color: #27ae60;
background: #fff8e6;
color: #e6a23c;
}
.status-confirmed {
background: #e3f2fd;
color: #2980b9;
background: #ecf5ff;
color: #409eff;
}
.status-pending {
background: #fff3e0;
color: #f39c12;
.status-in_progress {
background: #f0f9eb;
color: #67c23a;
}
.status-completed {
background: #f3e5f5;
color: #8e44ad;
background: #f4f0ff;
color: #7c5cfc;
}
.status-cancelled {
background: #fafafa;
color: #95a5a6;
background: #f5f5f5;
color: #b0b0b0;
}
.order-info {
.order-body {
padding: 20rpx 0;
display: flex;
flex-direction: column;
gap: 10rpx;
gap: 14rpx;
}
.info-row {
.order-row {
display: flex;
align-items: center;
align-items: baseline;
}
.info-label {
font-size: 26rpx;
color: #95a5a6;
width: 80rpx;
.row-label {
font-size: 24rpx;
color: #a0a3bd;
width: 72rpx;
flex-shrink: 0;
}
.info-value {
font-size: 28rpx;
color: #2c3e50;
.row-value {
font-size: 26rpx;
color: #3a3d5c;
flex: 1;
}
.order-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 20rpx;
border-top: 1rpx solid #f0f1f5;
}
.fee-label {
font-size: 24rpx;
color: #a0a3bd;
}
.fee-value {
color: #e74c3c;
font-weight: 600;
font-size: 34rpx;
font-weight: 700;
color: #1a1a2e;
font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
}
/* === 空状态 === */
.empty-state {
background: #ffffff;
border-radius: 20rpx;
padding: 80rpx 0;
text-align: center;
box-shadow: 0 4rpx 24rpx rgba(0, 0, 0, 0.04);
}
.empty-text {
font-size: 28rpx;
color: #c0c3d4;
font-weight: 400;
}