运营报表

This commit is contained in:
liu
2026-08-21 12:04:39 +08:00
parent ffe983b9da
commit 69b72a9c1c
7 changed files with 571 additions and 0 deletions
+222
View File
@@ -0,0 +1,222 @@
.report-page {
min-height: 100vh;
background: #f7f8fa;
padding: 20rpx 24rpx 60rpx;
box-sizing: border-box;
// ===== 周期切换 =====
.period-bar {
display: flex;
gap: 16rpx;
}
.period-chip {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 14rpx 0;
border-radius: 999rpx;
background: #fff;
font-size: 26rpx;
color: #323233;
&.active {
background: #ee0a24;
color: #fff;
font-weight: 600;
}
}
// ===== 汇总卡片 =====
.report-summary {
margin-top: 20rpx;
background: linear-gradient(135deg, #ee0a24, #ff4d4f);
border-radius: 20rpx;
padding: 32rpx 28rpx;
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
&__label {
font-size: 24rpx;
opacity: 0.85;
}
&__amount {
margin-top: 12rpx;
font-size: 56rpx;
font-weight: 700;
line-height: 1.2;
}
&__range {
margin-top: 12rpx;
font-size: 22rpx;
opacity: 0.85;
}
&__meta {
margin-top: 28rpx;
width: 100%;
display: flex;
border-top: 1rpx solid rgba(255, 255, 255, 0.25);
padding-top: 24rpx;
}
&__meta-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
}
&__meta-value {
font-size: 34rpx;
font-weight: 600;
}
&__meta-label {
margin-top: 6rpx;
font-size: 22rpx;
opacity: 0.85;
}
}
// ===== 单品排行 =====
.report-list {
margin-top: 20rpx;
background: #fff;
border-radius: 20rpx;
padding: 24rpx 28rpx 8rpx;
&__header {
display: flex;
align-items: baseline;
justify-content: space-between;
margin-bottom: 8rpx;
}
&__title {
font-size: 30rpx;
font-weight: 600;
}
&__desc {
font-size: 22rpx;
color: #969799;
}
}
.report-item {
display: flex;
padding: 24rpx 0;
border-bottom: 1rpx solid #f2f3f5;
&:last-child {
border-bottom: none;
}
&__rank {
width: 44rpx;
height: 44rpx;
border-radius: 12rpx;
background: #f2f3f5;
color: #969799;
font-size: 24rpx;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-top: 4rpx;
&--top {
background: #fff0f0;
color: #ee0a24;
font-weight: 600;
}
}
&__main {
flex: 1;
min-width: 0;
margin-left: 20rpx;
}
&__row {
display: flex;
align-items: center;
justify-content: space-between;
}
&__name {
font-size: 28rpx;
color: #323233;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&__amount {
font-size: 30rpx;
color: #ee0a24;
font-weight: 600;
margin-left: 16rpx;
flex-shrink: 0;
}
&__spec {
margin-top: 8rpx;
font-size: 22rpx;
color: #969799;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&__percent {
margin-top: 8rpx;
font-size: 24rpx;
color: #323233;
margin-left: 16rpx;
flex-shrink: 0;
}
&__bar {
margin-top: 14rpx;
height: 8rpx;
border-radius: 999rpx;
background: #f2f3f5;
overflow: hidden;
}
&__bar-inner {
height: 100%;
border-radius: 999rpx;
background: linear-gradient(90deg, #ff8a8f, #ee0a24);
}
}
// ===== 空态 / 加载中 =====
.report-empty {
margin-top: 60rpx;
&__btn {
margin-top: 20rpx;
font-size: 26rpx;
padding: 14rpx 48rpx;
border-radius: 999rpx;
background: #ee0a24;
color: #fff;
}
}
.report-loading {
padding: 60rpx 0;
text-align: center;
font-size: 26rpx;
color: #969799;
}
}